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 <algorithm> |
21 | | |
22 | | #include "common/status.h" |
23 | | #include "exec/common/util.hpp" |
24 | | #include "exec/exchange/local_exchange_sink_operator.h" |
25 | | #include "exec/exchange/local_exchange_source_operator.h" |
26 | | #include "exec/operator/aggregation_sink_operator.h" |
27 | | #include "exec/operator/aggregation_source_operator.h" |
28 | | #include "exec/operator/analytic_sink_operator.h" |
29 | | #include "exec/operator/analytic_source_operator.h" |
30 | | #include "exec/operator/assert_num_rows_operator.h" |
31 | | #include "exec/operator/blackhole_sink_operator.h" |
32 | | #include "exec/operator/bucketed_aggregation_sink_operator.h" |
33 | | #include "exec/operator/bucketed_aggregation_source_operator.h" |
34 | | #include "exec/operator/cache_sink_operator.h" |
35 | | #include "exec/operator/cache_source_operator.h" |
36 | | #include "exec/operator/datagen_operator.h" |
37 | | #include "exec/operator/dict_sink_operator.h" |
38 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
39 | | #include "exec/operator/empty_set_operator.h" |
40 | | #include "exec/operator/exchange_sink_operator.h" |
41 | | #include "exec/operator/exchange_source_operator.h" |
42 | | #include "exec/operator/file_scan_operator.h" |
43 | | #include "exec/operator/group_commit_block_sink_operator.h" |
44 | | #include "exec/operator/group_commit_scan_operator.h" |
45 | | #include "exec/operator/hashjoin_build_sink.h" |
46 | | #include "exec/operator/hashjoin_probe_operator.h" |
47 | | #include "exec/operator/hive_table_sink_operator.h" |
48 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
49 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
50 | | #include "exec/operator/iceberg_table_sink_operator.h" |
51 | | #include "exec/operator/jdbc_scan_operator.h" |
52 | | #include "exec/operator/jdbc_table_sink_operator.h" |
53 | | #include "exec/operator/local_merge_sort_source_operator.h" |
54 | | #include "exec/operator/materialization_opertor.h" |
55 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
56 | | #include "exec/operator/memory_scratch_sink_operator.h" |
57 | | #include "exec/operator/meta_scan_operator.h" |
58 | | #include "exec/operator/mock_operator.h" |
59 | | #include "exec/operator/mock_scan_operator.h" |
60 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
61 | | #include "exec/operator/multi_cast_data_stream_source.h" |
62 | | #include "exec/operator/nested_loop_join_build_operator.h" |
63 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
64 | | #include "exec/operator/olap_scan_operator.h" |
65 | | #include "exec/operator/olap_table_sink_operator.h" |
66 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
67 | | #include "exec/operator/partition_sort_sink_operator.h" |
68 | | #include "exec/operator/partition_sort_source_operator.h" |
69 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
70 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
71 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
72 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
73 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_scan_operator.h" |
75 | | #include "exec/operator/rec_cte_sink_operator.h" |
76 | | #include "exec/operator/rec_cte_source_operator.h" |
77 | | #include "exec/operator/repeat_operator.h" |
78 | | #include "exec/operator/result_file_sink_operator.h" |
79 | | #include "exec/operator/result_sink_operator.h" |
80 | | #include "exec/operator/schema_scan_operator.h" |
81 | | #include "exec/operator/select_operator.h" |
82 | | #include "exec/operator/set_probe_sink_operator.h" |
83 | | #include "exec/operator/set_sink_operator.h" |
84 | | #include "exec/operator/set_source_operator.h" |
85 | | #include "exec/operator/sort_sink_operator.h" |
86 | | #include "exec/operator/sort_source_operator.h" |
87 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
88 | | #include "exec/operator/spill_sort_sink_operator.h" |
89 | | #include "exec/operator/spill_sort_source_operator.h" |
90 | | #include "exec/operator/streaming_aggregation_operator.h" |
91 | | #include "exec/operator/table_function_operator.h" |
92 | | #include "exec/operator/tvf_table_sink_operator.h" |
93 | | #include "exec/operator/union_sink_operator.h" |
94 | | #include "exec/operator/union_source_operator.h" |
95 | | #include "exec/pipeline/dependency.h" |
96 | | #include "exec/pipeline/pipeline.h" |
97 | | #include "exprs/vexpr.h" |
98 | | #include "exprs/vexpr_context.h" |
99 | | #include "runtime/runtime_profile.h" |
100 | | #include "runtime/runtime_profile_counter_names.h" |
101 | | #include "util/debug_util.h" |
102 | | #include "util/string_util.h" |
103 | | |
104 | | namespace doris { |
105 | | class RowDescriptor; |
106 | | class RuntimeState; |
107 | | } // namespace doris |
108 | | |
109 | | namespace doris { |
110 | | |
111 | 0 | Status OperatorBase::close(RuntimeState* state) { |
112 | 0 | if (_is_closed) { |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | 0 | _is_closed = true; |
116 | 0 | return Status::OK(); |
117 | 0 | } |
118 | | |
119 | | template <typename SharedStateArg> |
120 | 1.46M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.46M | if (_parent->nereids_id() == -1) { |
122 | 752k | return fmt::format("(id={})", _parent->node_id()); |
123 | 752k | } else { |
124 | 707k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 707k | } |
126 | 1.46M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 63.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 63.1k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 63.1k | } else { | 124 | 63.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 63.1k | } | 126 | 63.1k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 1 | if (_parent->nereids_id() == -1) { | 122 | 1 | return fmt::format("(id={})", _parent->node_id()); | 123 | 1 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 156k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 156k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 156k | } else { | 124 | 156k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 156k | } | 126 | 156k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 23 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 23 | } else { | 124 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 23 | } | 126 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.40k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.40k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.40k | } else { | 124 | 5.40k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.40k | } | 126 | 5.40k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.34k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.34k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.33k | } else { | 124 | 7.33k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.33k | } | 126 | 7.34k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 81.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 81.0k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 81.0k | } else { | 124 | 81.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 81.0k | } | 126 | 81.0k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 77.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 77.4k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 77.4k | } else { | 124 | 77.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 77.4k | } | 126 | 77.4k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 122 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 122 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 122 | } else { | 124 | 122 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 122 | } | 126 | 122 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 493k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 493k | if (_parent->nereids_id() == -1) { | 122 | 233k | return fmt::format("(id={})", _parent->node_id()); | 123 | 259k | } else { | 124 | 259k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 259k | } | 126 | 493k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 50.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 50.7k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 50.7k | } else { | 124 | 50.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 50.7k | } | 126 | 50.7k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.05k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.05k | if (_parent->nereids_id() == -1) { | 122 | 5.04k | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.04k | } else { | 124 | 6 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6 | } | 126 | 5.05k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 436 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 436 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 334 | } else { | 124 | 334 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 334 | } | 126 | 436 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.94k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.94k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.93k | } else { | 124 | 4.93k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.93k | } | 126 | 4.94k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 513k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 513k | if (_parent->nereids_id() == -1) { | 122 | 513k | return fmt::format("(id={})", _parent->node_id()); | 123 | 513k | } else { | 124 | 212 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 212 | } | 126 | 513k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 164 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 164 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 164 | } else { | 124 | 164 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 164 | } | 126 | 164 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.04M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.04M | if (_parent->nereids_id() == -1) { |
131 | 600k | return fmt::format("(id={})", _parent->node_id()); |
132 | 600k | } else { |
133 | 446k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 446k | } |
135 | 1.04M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 111k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 111k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 111k | } else { | 133 | 111k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 111k | } | 135 | 111k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 158k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 158k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 158k | } else { | 133 | 158k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 158k | } | 135 | 158k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 30 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 30 | } else { | 133 | 30 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 30 | } | 135 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 5.44k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 5.44k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 5.44k | } else { | 133 | 5.44k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 5.44k | } | 135 | 5.44k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.38k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.38k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.37k | } else { | 133 | 7.37k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.37k | } | 135 | 7.38k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 81.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 81.7k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 81.7k | } else { | 133 | 81.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 81.7k | } | 135 | 81.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 77.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 77.0k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 77.0k | } else { | 133 | 77.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 77.0k | } | 135 | 77.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 132 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 132 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 132 | } else { | 133 | 132 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 132 | } | 135 | 132 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 24 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 24 | if (_parent->nereids_id() == -1) { | 131 | 24 | return fmt::format("(id={})", _parent->node_id()); | 132 | 24 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 24 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 4.86k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 4.86k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 4.86k | } else { | 133 | 4.86k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 4.86k | } | 135 | 4.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 436 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 436 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 334 | } else { | 133 | 334 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 334 | } | 135 | 436 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.7k | if (_parent->nereids_id() == -1) { | 131 | 12.7k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 211k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 211k | if (_parent->nereids_id() == -1) { | 131 | 211k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 211k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 376k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 376k | if (_parent->nereids_id() == -1) { | 131 | 376k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 376k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 328 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 328 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 328 | } else { | 133 | 328 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 328 | } | 135 | 328 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 30.3k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 30.3k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 30.3k | _terminated = true; |
143 | 30.3k | return Status::OK(); |
144 | 30.3k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.55k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.55k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.55k | _terminated = true; | 143 | 2.55k | return Status::OK(); | 144 | 2.55k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.74k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.74k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.74k | _terminated = true; | 143 | 1.74k | return Status::OK(); | 144 | 1.74k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 922 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 922 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 922 | _terminated = true; | 143 | 922 | return Status::OK(); | 144 | 922 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 462 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 462 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 462 | _terminated = true; | 143 | 462 | return Status::OK(); | 144 | 462 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 37 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 37 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 37 | _terminated = true; | 143 | 37 | return Status::OK(); | 144 | 37 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 9 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 9 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 9 | _terminated = true; | 143 | 9 | return Status::OK(); | 144 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 237 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 237 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 237 | _terminated = true; | 143 | 237 | return Status::OK(); | 144 | 237 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 15 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 15 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 15 | _terminated = true; | 143 | 15 | return Status::OK(); | 144 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 170 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 170 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 170 | _terminated = true; | 143 | 170 | return Status::OK(); | 144 | 170 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 129 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 129 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 129 | _terminated = true; | 143 | 129 | return Status::OK(); | 144 | 129 | } |
|
145 | | |
146 | 269k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 269k | return _child && _child->is_serial_operator() && !is_source() |
148 | 269k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 269k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 269k | } |
151 | | |
152 | 17.8k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 17.8k | if (!_child) { |
154 | 16.6k | return false; |
155 | 16.6k | } |
156 | 1.16k | if (_child->is_serial_operator()) { |
157 | 167 | return true; |
158 | 167 | } |
159 | 993 | const auto child_distribution = _child->required_data_distribution(state); |
160 | 993 | return child_distribution.need_local_exchange() && |
161 | 993 | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.16k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 19.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 19.8k | fmt::memory_buffer debug_string_buffer; |
167 | 19.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 19.8k | return fmt::to_string(debug_string_buffer); |
169 | 19.8k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 3 | fmt::memory_buffer debug_string_buffer; | 167 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 3 | return fmt::to_string(debug_string_buffer); | 169 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 19.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 19.8k | fmt::memory_buffer debug_string_buffer; | 167 | 19.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 19.8k | return fmt::to_string(debug_string_buffer); | 169 | 19.8k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 1 | fmt::memory_buffer debug_string_buffer; | 167 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 1 | return fmt::to_string(debug_string_buffer); | 169 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 19.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 19.8k | fmt::memory_buffer debug_string_buffer; |
174 | 19.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 19.8k | return fmt::to_string(debug_string_buffer); |
176 | 19.8k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 19.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 19.8k | fmt::memory_buffer debug_string_buffer; | 174 | 19.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 19.8k | return fmt::to_string(debug_string_buffer); | 176 | 19.8k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 19.9k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 19.9k | fmt::memory_buffer debug_string_buffer; |
180 | 19.9k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 19.9k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 19.9k | _is_serial_operator); |
183 | 19.9k | return fmt::to_string(debug_string_buffer); |
184 | 19.9k | } |
185 | | |
186 | 19.8k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 19.8k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 19.8k | } |
189 | | |
190 | 585k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 585k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 585k | _nereids_id = tnode.nereids_id; |
193 | 585k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.22k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.22k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.22k | tnode.intermediate_projections_list.size()) { |
199 | 0 | return Status::InternalError( |
200 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
201 | 0 | "intermediate_projections_list size:{}", |
202 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
203 | 0 | tnode.intermediate_projections_list.size()); |
204 | 0 | } |
205 | 3.22k | } |
206 | 585k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 585k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 585k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 585k | } else if (tnode.__isset.conjuncts) { |
212 | 254k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 254k | VExprContextSPtr context; |
214 | 254k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 254k | _conjuncts.emplace_back(context); |
216 | 254k | } |
217 | 86.6k | } |
218 | | |
219 | | // create the projections expr |
220 | 585k | if (tnode.__isset.projections) { |
221 | 235k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 235k | } |
223 | 585k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.22k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.22k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 4.30k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 4.30k | VExprContextSPtrs projections; |
228 | 4.30k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 4.30k | _projection->intermediate_projections.push_back(projections); |
230 | 4.30k | } |
231 | 3.22k | } |
232 | 585k | return Status::OK(); |
233 | 585k | } |
234 | | |
235 | 613k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 613k | for (auto& conjunct : _conjuncts) { |
237 | 253k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 253k | } |
239 | 613k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 562k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 328k | return a->execute_cost() < b->execute_cost(); |
242 | 328k | }); |
243 | 562k | }; |
244 | | |
245 | 613k | if (has_projection()) { |
246 | 235k | auto& projection = *_projection; |
247 | 239k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 4.29k | const auto& input_row_desc = |
249 | 4.29k | i == 0 ? operator_row_desc_before_projection() |
250 | 4.29k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 4.29k | RETURN_IF_ERROR( |
252 | 4.29k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 4.29k | } |
254 | 235k | const auto& final_projection_input_row_desc = |
255 | 235k | projection.intermediate_output_row_descriptors.empty() |
256 | 235k | ? operator_row_desc_before_projection() |
257 | 235k | : projection.intermediate_output_row_descriptors.back(); |
258 | 235k | RETURN_IF_ERROR( |
259 | 235k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 235k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 235k | projection.output_row_descriptor)); |
262 | 235k | } |
263 | | |
264 | 613k | for (auto& conjunct : _conjuncts) { |
265 | 253k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 253k | } |
267 | 613k | if (has_projection()) { |
268 | 235k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 235k | for (auto& projections : _projection->intermediate_projections) { |
270 | 4.30k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 4.30k | } |
272 | 235k | } |
273 | 613k | if (_child && !is_source()) { |
274 | 86.8k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 86.8k | } |
276 | | |
277 | 613k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 613k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 613k | return Status::OK(); |
283 | 613k | } |
284 | | |
285 | 7.22k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 7.22k | if (_child && !is_source()) { |
287 | 927 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 927 | } |
289 | 7.22k | auto result = state->get_local_state_result(operator_id()); |
290 | 7.22k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 7.22k | return result.value()->terminate(state); |
294 | 7.22k | } |
295 | | |
296 | 4.00M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.00M | if (_child && !is_source()) { |
298 | 644k | RETURN_IF_ERROR(_child->close(state)); |
299 | 644k | } |
300 | 4.00M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.00M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.00M | return result.value()->close(state); |
305 | 4.00M | } |
306 | | |
307 | 245k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 245k | _origin_block.clear_column_data( |
309 | 245k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 245k | } |
311 | | |
312 | 729k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 729k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 729k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 729k | return Status::OK(); |
317 | 729k | } |
318 | | |
319 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
320 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
321 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
322 | 0 | } |
323 | | |
324 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
325 | 245k | Block* output_block) const { |
326 | 245k | auto* local_state = state->get_local_state(operator_id()); |
327 | 245k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 245k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 245k | const size_t rows = origin_block->rows(); |
330 | 245k | if (rows == 0) { |
331 | 127k | return Status::OK(); |
332 | 127k | } |
333 | 118k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 118k | { |
336 | 118k | Block input_block = *origin_block; |
337 | | |
338 | 118k | ColumnsWithTypeAndName new_columns; |
339 | 118k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 1.34k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 1.34k | new_columns.resize(projections.size()); |
345 | 8.52k | for (int i = 0; i < projections.size(); i++) { |
346 | 7.17k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 7.17k | if (new_columns[i].column->size() != rows) { |
348 | 0 | return Status::InternalError( |
349 | 0 | "intermediate projection result column size {} not equal input rows " |
350 | 0 | "{}, expr: {}", |
351 | 0 | new_columns[i].column->size(), rows, |
352 | 0 | projections[i]->root()->debug_string()); |
353 | 0 | } |
354 | 7.17k | } |
355 | 1.34k | Block tmp_block {new_columns}; |
356 | 1.34k | input_block.swap(tmp_block); |
357 | 1.34k | } |
358 | | |
359 | 118k | if (input_block.rows() != rows) { |
360 | 0 | return Status::InternalError( |
361 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
362 | 0 | "input_block: {}", |
363 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
364 | 0 | } |
365 | | |
366 | 118k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 118k | output_block, _projection->output_row_descriptor); |
368 | 118k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 118k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 118k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 664k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 546k | ColumnPtr column_ptr; |
374 | 546k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 546k | if (column_ptr->size() != rows) { |
376 | 0 | return Status::InternalError( |
377 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
378 | 0 | column_ptr->size(), rows, |
379 | 0 | local_state->_projections[i]->root()->debug_string()); |
380 | 0 | } |
381 | 546k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 546k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 546k | if (column_ptr->is_exclusive()) { |
386 | 196k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 349k | } else { |
388 | 349k | shared_columns[i] = std::move(column_ptr); |
389 | 349k | } |
390 | 546k | } |
391 | | |
392 | 118k | scoped_mutable_block.restore(); |
393 | 664k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 546k | if (shared_columns[i]) { |
395 | 350k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 350k | } |
397 | 546k | } |
398 | 118k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 118k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 118k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 118k | return Status::OK(); |
405 | 118k | } |
406 | | |
407 | 3.97M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 3.97M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 3.97M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 3.97M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 3.97M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 3.97M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 3.97M | if (_debug_point_count++ % 2 == 0) { |
414 | 3.97M | return Status::OK(); |
415 | 3.97M | } |
416 | 3.97M | } |
417 | 3.97M | }); |
418 | | |
419 | 3.97M | Status status; |
420 | 3.97M | auto* local_state = state->get_local_state(operator_id()); |
421 | 3.97M | Defer defer([&]() { |
422 | 3.97M | if (status.ok()) { |
423 | 3.97M | local_state->update_output_block_counters(*block); |
424 | 3.97M | } |
425 | 3.97M | }); |
426 | 3.97M | if (has_projection()) { |
427 | 245k | local_state->clear_origin_block(); |
428 | 245k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 245k | if (UNLIKELY(!status.ok())) { |
430 | 24 | return status; |
431 | 24 | } |
432 | 245k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 245k | return status; |
434 | 245k | } |
435 | 3.72M | status = get_block(state, block, eos); |
436 | 3.72M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.72M | return status; |
438 | 3.72M | } |
439 | | |
440 | 2.42M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.42M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 3.55k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 3.55k | *eos = true; |
444 | 3.55k | } |
445 | | |
446 | 2.42M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.42M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.42M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.42M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.42M | if (op_name == arg_op_name) { |
452 | 2.42M | *eos = true; |
453 | 2.42M | } |
454 | 2.42M | }); |
455 | | |
456 | 2.42M | if (auto rows = block->rows()) { |
457 | 654k | _num_rows_returned += rows; |
458 | 654k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 654k | } |
460 | 2.42M | } |
461 | | |
462 | 30.3k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 30.3k | auto result = state->get_sink_local_state_result(); |
464 | 30.3k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 30.3k | return result.value()->terminate(state); |
468 | 30.3k | } |
469 | | |
470 | 19.8k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 19.8k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 19.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 19.8k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 19.8k | return fmt::to_string(debug_string_buffer); |
476 | 19.8k | } |
477 | | |
478 | 19.8k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 19.8k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 19.8k | } |
481 | | |
482 | 309k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 309k | std::string op_name = "UNKNOWN_SINK"; |
484 | 309k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 310k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 310k | op_name = it->second; |
488 | 310k | } |
489 | 309k | _name = op_name + "_OPERATOR"; |
490 | 309k | return Status::OK(); |
491 | 309k | } |
492 | | |
493 | 262k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 262k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 262k | _nereids_id = tnode.nereids_id; |
496 | 262k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 262k | _name = substr + "_SINK_OPERATOR"; |
498 | 262k | return Status::OK(); |
499 | 262k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.44M | LocalSinkStateInfo& info) { |
504 | 1.44M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.44M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.44M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.44M | return Status::OK(); |
508 | 1.44M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 111k | LocalSinkStateInfo& info) { | 504 | 111k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 111k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 111k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 111k | return Status::OK(); | 508 | 111k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 335k | LocalSinkStateInfo& info) { | 504 | 335k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 335k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 335k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 335k | return Status::OK(); | 508 | 335k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3 | LocalSinkStateInfo& info) { | 504 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3 | return Status::OK(); | 508 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 356 | LocalSinkStateInfo& info) { | 504 | 356 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 356 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 356 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 356 | return Status::OK(); | 508 | 356 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 42.7k | LocalSinkStateInfo& info) { | 504 | 42.7k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 42.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 42.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 42.7k | return Status::OK(); | 508 | 42.7k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 30 | LocalSinkStateInfo& info) { | 504 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 30 | return Status::OK(); | 508 | 30 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 7.39k | LocalSinkStateInfo& info) { | 504 | 7.39k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 7.39k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 7.39k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 7.39k | return Status::OK(); | 508 | 7.39k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 21 | LocalSinkStateInfo& info) { | 504 | 21 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 21 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 21 | return Status::OK(); | 508 | 21 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 159k | LocalSinkStateInfo& info) { | 504 | 159k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 159k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 159k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 159k | return Status::OK(); | 508 | 159k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 30 | LocalSinkStateInfo& info) { | 504 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 30 | return Status::OK(); | 508 | 30 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 211k | LocalSinkStateInfo& info) { | 504 | 211k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 211k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 211k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 211k | return Status::OK(); | 508 | 211k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 82.0k | LocalSinkStateInfo& info) { | 504 | 82.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 82.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 82.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 82.0k | return Status::OK(); | 508 | 82.0k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 76.5k | LocalSinkStateInfo& info) { | 504 | 76.5k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 76.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 76.5k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 76.5k | return Status::OK(); | 508 | 76.5k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 132 | LocalSinkStateInfo& info) { | 504 | 132 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 132 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 132 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 132 | return Status::OK(); | 508 | 132 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 396k | LocalSinkStateInfo& info) { | 504 | 396k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 396k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 396k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 396k | return Status::OK(); | 508 | 396k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 5.45k | LocalSinkStateInfo& info) { | 504 | 5.45k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 5.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 5.45k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 5.45k | return Status::OK(); | 508 | 5.45k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.86k | LocalSinkStateInfo& info) { | 504 | 4.86k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.86k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.86k | return Status::OK(); | 508 | 4.86k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.22k | LocalSinkStateInfo& info) { | 504 | 2.22k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.22k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.22k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.22k | return Status::OK(); | 508 | 2.22k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 335 | LocalSinkStateInfo& info) { | 504 | 335 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 335 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 335 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 335 | return Status::OK(); | 508 | 335 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.83k | LocalSinkStateInfo& info) { | 504 | 4.83k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.83k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.83k | return Status::OK(); | 508 | 4.83k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.63k | LocalSinkStateInfo& info) { | 504 | 2.63k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.63k | return Status::OK(); | 508 | 2.63k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.57k | LocalSinkStateInfo& info) { | 504 | 2.57k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.57k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.57k | return Status::OK(); | 508 | 2.57k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.44k | LocalSinkStateInfo& info) { | 504 | 2.44k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.44k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.44k | return Status::OK(); | 508 | 2.44k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1 | LocalSinkStateInfo& info) { | 504 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1 | return Status::OK(); | 508 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 564 | LocalSinkStateInfo& info) { | 504 | 564 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 564 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 564 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 564 | return Status::OK(); | 508 | 564 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 102 | LocalSinkStateInfo& info) { | 504 | 102 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 102 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 102 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 102 | return Status::OK(); | 508 | 102 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 164 | LocalSinkStateInfo& info) { | 504 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 164 | return Status::OK(); | 508 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 164 | LocalSinkStateInfo& info) { | 504 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 164 | return Status::OK(); | 508 | 164 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.13M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
513 | 0 | LocalExchangeSharedState>) { |
514 | 0 | return nullptr; |
515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
516 | 0 | MultiCastSharedState>) { |
517 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
518 | 1.13M | } else { |
519 | 1.13M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.13M | ss->id = operator_id(); |
521 | 1.13M | for (auto& dest : dests_id()) { |
522 | 1.12M | ss->related_op_ids.insert(dest); |
523 | 1.12M | } |
524 | 1.13M | return ss; |
525 | 1.13M | } |
526 | 1.13M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 96.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 96.1k | } else { | 519 | 96.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 96.1k | ss->id = operator_id(); | 521 | 96.1k | for (auto& dest : dests_id()) { | 522 | 95.9k | ss->related_op_ids.insert(dest); | 523 | 95.9k | } | 524 | 96.1k | return ss; | 525 | 96.1k | } | 526 | 96.1k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 335k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 335k | } else { | 519 | 335k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 335k | ss->id = operator_id(); | 521 | 335k | for (auto& dest : dests_id()) { | 522 | 333k | ss->related_op_ids.insert(dest); | 523 | 333k | } | 524 | 335k | return ss; | 525 | 335k | } | 526 | 335k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 3 | } else { | 519 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 3 | ss->id = operator_id(); | 521 | 3 | for (auto& dest : dests_id()) { | 522 | 3 | ss->related_op_ids.insert(dest); | 523 | 3 | } | 524 | 3 | return ss; | 525 | 3 | } | 526 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 355 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 355 | } else { | 519 | 355 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 355 | ss->id = operator_id(); | 521 | 358 | for (auto& dest : dests_id()) { | 522 | 358 | ss->related_op_ids.insert(dest); | 523 | 358 | } | 524 | 355 | return ss; | 525 | 355 | } | 526 | 355 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 42.8k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 42.8k | } else { | 519 | 42.8k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 42.8k | ss->id = operator_id(); | 521 | 42.8k | for (auto& dest : dests_id()) { | 522 | 42.4k | ss->related_op_ids.insert(dest); | 523 | 42.4k | } | 524 | 42.8k | return ss; | 525 | 42.8k | } | 526 | 42.8k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 30 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 30 | } else { | 519 | 30 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 30 | ss->id = operator_id(); | 521 | 30 | for (auto& dest : dests_id()) { | 522 | 30 | ss->related_op_ids.insert(dest); | 523 | 30 | } | 524 | 30 | return ss; | 525 | 30 | } | 526 | 30 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 7.41k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 7.41k | } else { | 519 | 7.41k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 7.41k | ss->id = operator_id(); | 521 | 7.42k | for (auto& dest : dests_id()) { | 522 | 7.42k | ss->related_op_ids.insert(dest); | 523 | 7.42k | } | 524 | 7.41k | return ss; | 525 | 7.41k | } | 526 | 7.41k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 21 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 21 | } else { | 519 | 21 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 21 | ss->id = operator_id(); | 521 | 21 | for (auto& dest : dests_id()) { | 522 | 21 | ss->related_op_ids.insert(dest); | 523 | 21 | } | 524 | 21 | return ss; | 525 | 21 | } | 526 | 21 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 159k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 159k | } else { | 519 | 159k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 159k | ss->id = operator_id(); | 521 | 159k | for (auto& dest : dests_id()) { | 522 | 159k | ss->related_op_ids.insert(dest); | 523 | 159k | } | 524 | 159k | return ss; | 525 | 159k | } | 526 | 159k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 32 | } else { | 519 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 32 | ss->id = operator_id(); | 521 | 32 | for (auto& dest : dests_id()) { | 522 | 32 | ss->related_op_ids.insert(dest); | 523 | 32 | } | 524 | 32 | return ss; | 525 | 32 | } | 526 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 82.2k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 82.2k | } else { | 519 | 82.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 82.2k | ss->id = operator_id(); | 521 | 82.2k | for (auto& dest : dests_id()) { | 522 | 82.2k | ss->related_op_ids.insert(dest); | 523 | 82.2k | } | 524 | 82.2k | return ss; | 525 | 82.2k | } | 526 | 82.2k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 131 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 131 | } else { | 519 | 131 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 131 | ss->id = operator_id(); | 521 | 131 | for (auto& dest : dests_id()) { | 522 | 131 | ss->related_op_ids.insert(dest); | 523 | 131 | } | 524 | 131 | return ss; | 525 | 131 | } | 526 | 131 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 397k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 397k | } else { | 519 | 397k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 397k | ss->id = operator_id(); | 521 | 397k | for (auto& dest : dests_id()) { | 522 | 391k | ss->related_op_ids.insert(dest); | 523 | 391k | } | 524 | 397k | return ss; | 525 | 397k | } | 526 | 397k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 5.48k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 5.48k | } else { | 519 | 5.48k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 5.48k | ss->id = operator_id(); | 521 | 5.48k | for (auto& dest : dests_id()) { | 522 | 5.46k | ss->related_op_ids.insert(dest); | 523 | 5.46k | } | 524 | 5.48k | return ss; | 525 | 5.48k | } | 526 | 5.48k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 436 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 436 | } else { | 519 | 436 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 436 | ss->id = operator_id(); | 521 | 436 | for (auto& dest : dests_id()) { | 522 | 435 | ss->related_op_ids.insert(dest); | 523 | 435 | } | 524 | 436 | return ss; | 525 | 436 | } | 526 | 436 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.58k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.58k | } else { | 519 | 2.58k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.58k | ss->id = operator_id(); | 521 | 2.59k | for (auto& dest : dests_id()) { | 522 | 2.59k | ss->related_op_ids.insert(dest); | 523 | 2.59k | } | 524 | 2.58k | return ss; | 525 | 2.58k | } | 526 | 2.58k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.46k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.46k | } else { | 519 | 2.46k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.46k | ss->id = operator_id(); | 521 | 2.49k | for (auto& dest : dests_id()) { | 522 | 2.49k | ss->related_op_ids.insert(dest); | 523 | 2.49k | } | 524 | 2.46k | return ss; | 525 | 2.46k | } | 526 | 2.46k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 568 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 568 | } else { | 519 | 568 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 568 | ss->id = operator_id(); | 521 | 568 | for (auto& dest : dests_id()) { | 522 | 559 | ss->related_op_ids.insert(dest); | 523 | 559 | } | 524 | 568 | return ss; | 525 | 568 | } | 526 | 568 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 101 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 101 | } else { | 519 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 101 | ss->id = operator_id(); | 521 | 102 | for (auto& dest : dests_id()) { | 522 | 102 | ss->related_op_ids.insert(dest); | 523 | 102 | } | 524 | 101 | return ss; | 525 | 101 | } | 526 | 101 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 1.70M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 1.70M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 1.70M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 1.70M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 1.70M | return Status::OK(); |
534 | 1.70M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 63.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 63.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 63.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 63.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 63.4k | return Status::OK(); | 534 | 63.4k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 225k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 225k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 225k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 225k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 225k | return Status::OK(); | 534 | 225k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 137 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 137 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 137 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 137 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 137 | return Status::OK(); | 534 | 137 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.07k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.07k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.07k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.07k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.07k | return Status::OK(); | 534 | 3.07k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.37k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.37k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.37k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.37k | return Status::OK(); | 534 | 7.37k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.33k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.33k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.33k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.33k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.33k | return Status::OK(); | 534 | 7.33k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 23 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 23 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 23 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 23 | return Status::OK(); | 534 | 23 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 151k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 151k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 151k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 151k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 151k | return Status::OK(); | 534 | 151k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 81.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 81.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 81.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 81.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 81.8k | return Status::OK(); | 534 | 81.8k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 77.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 77.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 77.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 77.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 77.5k | return Status::OK(); | 534 | 77.5k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 122 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 122 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 122 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 122 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 122 | return Status::OK(); | 534 | 122 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.35k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.35k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.35k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.35k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.35k | return Status::OK(); | 534 | 4.35k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 234k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 234k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 234k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 234k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 234k | return Status::OK(); | 534 | 234k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.36k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.36k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.36k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.36k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.36k | return Status::OK(); | 534 | 1.36k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.45k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.45k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.45k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.45k | return Status::OK(); | 534 | 5.45k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 27 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 27 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 27 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 27 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 27 | return Status::OK(); | 534 | 27 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.53k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.53k | return Status::OK(); | 534 | 1.53k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 50.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 50.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 50.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 50.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 50.8k | return Status::OK(); | 534 | 50.8k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.09k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.09k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.09k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.09k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.09k | return Status::OK(); | 534 | 5.09k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 335 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 335 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 335 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 335 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 335 | return Status::OK(); | 534 | 335 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.53k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.53k | return Status::OK(); | 534 | 2.53k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.41k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.41k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.41k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.41k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.41k | return Status::OK(); | 534 | 2.41k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 311 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 311 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 311 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 311 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 311 | return Status::OK(); | 534 | 311 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.58k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.58k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.58k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.58k | return Status::OK(); | 534 | 1.58k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.28k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.28k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.28k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.28k | return Status::OK(); | 534 | 4.28k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 520k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 520k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 520k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 520k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 520k | return Status::OK(); | 534 | 520k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 14 | return Status::OK(); | 534 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 164 | return Status::OK(); | 534 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.18k | return Status::OK(); | 534 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 779 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 779 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 779 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 779 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 779 | return Status::OK(); | 534 | 779 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.02k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.02k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.02k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.02k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.02k | return Status::OK(); | 534 | 1.02k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.00k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.00k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.00k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.00k | return Status::OK(); | 534 | 6.00k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 237k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 237k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 237k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 237k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 237k | return Status::OK(); | 534 | 237k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.44M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 1.69M | : _num_rows_returned(0), |
542 | 1.69M | _rows_returned_counter(nullptr), |
543 | 1.69M | _parent(parent), |
544 | 1.69M | _state(state), |
545 | 1.69M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 1.70M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 1.70M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 1.70M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 1.70M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 1.70M | _operator_profile->set_metadata(_parent->node_id()); |
553 | | // indent is false so that source operator will have same |
554 | | // indentation_level with its parent operator. |
555 | 1.70M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 1.70M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 1.70M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 1.70M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 1.70M | if constexpr (!is_fake_shared) { |
560 | 979k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 609k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 609k | .first.get() |
563 | 609k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 609k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 609k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 609k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 609k | } else if (info.shared_state) { |
569 | 308k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
570 | 0 | DCHECK(false); |
571 | 0 | } |
572 | | // For UnionSourceOperator without children, there is no shared state. |
573 | 308k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 308k | _dependency = _shared_state->create_source_dependency( |
576 | 308k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 308k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 308k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 308k | } else { |
580 | 61.6k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 5.83k | DCHECK(false); |
582 | 5.83k | } |
583 | 61.6k | } |
584 | 979k | } |
585 | | |
586 | 1.70M | if (must_set_shared_state() && _shared_state == nullptr) { |
587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
588 | 0 | } |
589 | | |
590 | 1.70M | _rows_returned_counter = |
591 | 1.70M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 1.70M | _blocks_returned_counter = |
593 | 1.70M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 1.70M | _output_block_bytes_counter = |
595 | 1.70M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 1.70M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 1.70M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 1.70M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 1.70M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 1.70M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 1.70M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 1.70M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 1.70M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 1.70M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 1.70M | _memory_used_counter = |
606 | 1.70M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 1.70M | _common_profile->add_info_string("IsColocate", |
608 | 1.70M | std::to_string(_parent->is_colocated_operator())); |
609 | 1.70M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 1.70M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 1.70M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 1.70M | return Status::OK(); |
613 | 1.70M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 63.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 63.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 63.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 63.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 63.6k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 63.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 63.6k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 63.6k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 63.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 63.6k | if constexpr (!is_fake_shared) { | 560 | 63.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 15.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 15.2k | .first.get() | 563 | 15.2k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 15.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 15.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 15.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 48.3k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 47.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 47.6k | _dependency = _shared_state->create_source_dependency( | 576 | 47.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 47.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 47.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 47.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 665 | } | 584 | 63.6k | } | 585 | | | 586 | 63.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 63.6k | _rows_returned_counter = | 591 | 63.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 63.6k | _blocks_returned_counter = | 593 | 63.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 63.6k | _output_block_bytes_counter = | 595 | 63.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 63.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 63.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 63.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 63.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 63.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 63.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 63.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 63.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 63.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 63.6k | _memory_used_counter = | 606 | 63.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 63.6k | _common_profile->add_info_string("IsColocate", | 608 | 63.6k | std::to_string(_parent->is_colocated_operator())); | 609 | 63.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 63.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 63.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 63.6k | return Status::OK(); | 613 | 63.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 1 | if constexpr (!is_fake_shared) { | 560 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 1 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 1 | _dependency = _shared_state->create_source_dependency( | 576 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 1 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 1 | } | 585 | | | 586 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 1 | _rows_returned_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 1 | _blocks_returned_counter = | 593 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 1 | _output_block_bytes_counter = | 595 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 1 | _memory_used_counter = | 606 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 1 | _common_profile->add_info_string("IsColocate", | 608 | 1 | std::to_string(_parent->is_colocated_operator())); | 609 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 1 | return Status::OK(); | 613 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 159k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 159k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 159k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 159k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 159k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 159k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 159k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 159k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 159k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 159k | if constexpr (!is_fake_shared) { | 560 | 159k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 159k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 154k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 154k | _dependency = _shared_state->create_source_dependency( | 576 | 154k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 154k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 154k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 154k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 4.87k | } | 584 | 159k | } | 585 | | | 586 | 159k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 159k | _rows_returned_counter = | 591 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 159k | _blocks_returned_counter = | 593 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 159k | _output_block_bytes_counter = | 595 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 159k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 159k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 159k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 159k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 159k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 159k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 159k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 159k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 159k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 159k | _memory_used_counter = | 606 | 159k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 159k | _common_profile->add_info_string("IsColocate", | 608 | 159k | std::to_string(_parent->is_colocated_operator())); | 609 | 159k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 159k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 159k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 159k | return Status::OK(); | 613 | 159k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 23 | if constexpr (!is_fake_shared) { | 560 | 23 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 23 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 23 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 23 | _dependency = _shared_state->create_source_dependency( | 576 | 23 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 23 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 23 | } | 585 | | | 586 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 23 | _rows_returned_counter = | 591 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 23 | _blocks_returned_counter = | 593 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 23 | _output_block_bytes_counter = | 595 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 23 | _memory_used_counter = | 606 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 23 | _common_profile->add_info_string("IsColocate", | 608 | 23 | std::to_string(_parent->is_colocated_operator())); | 609 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 23 | return Status::OK(); | 613 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.48k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.48k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.48k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.48k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.48k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.48k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.48k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.48k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.48k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.48k | if constexpr (!is_fake_shared) { | 560 | 5.48k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.48k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 5.36k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.36k | _dependency = _shared_state->create_source_dependency( | 576 | 5.36k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.36k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.36k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.36k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 117 | } | 584 | 5.48k | } | 585 | | | 586 | 5.48k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.48k | _rows_returned_counter = | 591 | 5.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.48k | _blocks_returned_counter = | 593 | 5.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.48k | _output_block_bytes_counter = | 595 | 5.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.48k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.48k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.48k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.48k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.48k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.48k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.48k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.48k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.48k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.48k | _memory_used_counter = | 606 | 5.48k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.48k | _common_profile->add_info_string("IsColocate", | 608 | 5.48k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.48k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.48k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.48k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.48k | return Status::OK(); | 613 | 5.48k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 7.42k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 7.42k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 7.42k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 7.42k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 7.42k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 7.42k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 7.42k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 7.42k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 7.42k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 7.42k | if constexpr (!is_fake_shared) { | 560 | 7.42k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 7.42k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 7.34k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 7.34k | _dependency = _shared_state->create_source_dependency( | 576 | 7.34k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 7.34k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 7.34k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 7.34k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 80 | } | 584 | 7.42k | } | 585 | | | 586 | 7.42k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 7.42k | _rows_returned_counter = | 591 | 7.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 7.42k | _blocks_returned_counter = | 593 | 7.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 7.42k | _output_block_bytes_counter = | 595 | 7.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.42k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 7.42k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 7.42k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 7.42k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 7.42k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 7.42k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 7.42k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 7.42k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 7.42k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 7.42k | _memory_used_counter = | 606 | 7.42k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 7.42k | _common_profile->add_info_string("IsColocate", | 608 | 7.42k | std::to_string(_parent->is_colocated_operator())); | 609 | 7.42k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 7.42k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 7.42k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 7.42k | return Status::OK(); | 613 | 7.42k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 82.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 82.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 82.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 82.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 82.1k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 82.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 82.1k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 82.1k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 82.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 82.1k | if constexpr (!is_fake_shared) { | 560 | 82.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 82.1k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 80.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 80.7k | _dependency = _shared_state->create_source_dependency( | 576 | 80.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 80.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 80.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 80.7k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.44k | } | 584 | 82.1k | } | 585 | | | 586 | 82.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 82.1k | _rows_returned_counter = | 591 | 82.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 82.1k | _blocks_returned_counter = | 593 | 82.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 82.1k | _output_block_bytes_counter = | 595 | 82.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 82.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 82.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 82.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 82.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 82.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 82.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 82.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 82.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 82.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 82.1k | _memory_used_counter = | 606 | 82.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 82.1k | _common_profile->add_info_string("IsColocate", | 608 | 82.1k | std::to_string(_parent->is_colocated_operator())); | 609 | 82.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 82.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 82.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 82.1k | return Status::OK(); | 613 | 82.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 77.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 77.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 77.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 77.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 77.5k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 77.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 77.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 77.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 77.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 77.5k | if constexpr (!is_fake_shared) { | 560 | 77.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 77.5k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 77.5k | .first.get() | 563 | 77.5k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 77.5k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 77.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 77.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 77.5k | } | 585 | | | 586 | 77.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 77.5k | _rows_returned_counter = | 591 | 77.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 77.5k | _blocks_returned_counter = | 593 | 77.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 77.5k | _output_block_bytes_counter = | 595 | 77.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 77.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 77.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 77.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 77.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 77.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 77.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 77.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 77.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 77.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 77.5k | _memory_used_counter = | 606 | 77.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 77.5k | _common_profile->add_info_string("IsColocate", | 608 | 77.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 77.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 77.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 77.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 77.5k | return Status::OK(); | 613 | 77.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 122 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 122 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 122 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 122 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 122 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 122 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 122 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 122 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 122 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 122 | if constexpr (!is_fake_shared) { | 560 | 122 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 122 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 122 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 122 | _dependency = _shared_state->create_source_dependency( | 576 | 122 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 122 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 122 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 122 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 122 | } | 585 | | | 586 | 122 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 122 | _rows_returned_counter = | 591 | 122 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 122 | _blocks_returned_counter = | 593 | 122 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 122 | _output_block_bytes_counter = | 595 | 122 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 122 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 122 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 122 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 122 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 122 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 122 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 122 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 122 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 122 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 122 | _memory_used_counter = | 606 | 122 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 122 | _common_profile->add_info_string("IsColocate", | 608 | 122 | std::to_string(_parent->is_colocated_operator())); | 609 | 122 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 122 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 122 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 122 | return Status::OK(); | 613 | 122 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 722k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 722k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 722k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 722k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 722k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 722k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 722k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 722k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 722k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | | if constexpr (!is_fake_shared) { | 560 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | | .first.get() | 563 | | ->template cast<SharedStateArg>(); | 564 | | | 565 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | | _dependency = _shared_state->create_source_dependency( | 576 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | | } | 584 | | } | 585 | | | 586 | 722k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 722k | _rows_returned_counter = | 591 | 722k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 722k | _blocks_returned_counter = | 593 | 722k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 722k | _output_block_bytes_counter = | 595 | 722k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 722k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 722k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 722k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 722k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 722k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 722k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 722k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 722k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 722k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 722k | _memory_used_counter = | 606 | 722k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 722k | _common_profile->add_info_string("IsColocate", | 608 | 722k | std::to_string(_parent->is_colocated_operator())); | 609 | 722k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 722k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 722k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 722k | return Status::OK(); | 613 | 722k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 50.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 50.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 50.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 50.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 50.7k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 50.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 50.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 50.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 50.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 50.7k | if constexpr (!is_fake_shared) { | 560 | 50.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 50.7k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 2.31k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 2.31k | _dependency = _shared_state->create_source_dependency( | 576 | 2.31k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 2.31k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 2.31k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 48.4k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 48.4k | } | 584 | 50.7k | } | 585 | | | 586 | 50.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 50.7k | _rows_returned_counter = | 591 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 50.7k | _blocks_returned_counter = | 593 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 50.7k | _output_block_bytes_counter = | 595 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 50.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 50.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 50.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 50.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 50.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 50.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 50.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 50.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 50.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 50.7k | _memory_used_counter = | 606 | 50.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 50.7k | _common_profile->add_info_string("IsColocate", | 608 | 50.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 50.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 50.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 50.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 50.7k | return Status::OK(); | 613 | 50.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 26 | if constexpr (!is_fake_shared) { | 560 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 26 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 26 | _dependency = _shared_state->create_source_dependency( | 576 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 26 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 26 | } | 585 | | | 586 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 26 | _rows_returned_counter = | 591 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 26 | _blocks_returned_counter = | 593 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 26 | _output_block_bytes_counter = | 595 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 26 | _memory_used_counter = | 606 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 26 | _common_profile->add_info_string("IsColocate", | 608 | 26 | std::to_string(_parent->is_colocated_operator())); | 609 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 26 | return Status::OK(); | 613 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.10k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.10k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.10k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.10k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.10k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.10k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.10k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.10k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.10k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.10k | if constexpr (!is_fake_shared) { | 560 | 5.10k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.10k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 5.01k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.01k | _dependency = _shared_state->create_source_dependency( | 576 | 5.01k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.01k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.01k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.01k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 88 | } | 584 | 5.10k | } | 585 | | | 586 | 5.10k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.10k | _rows_returned_counter = | 591 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.10k | _blocks_returned_counter = | 593 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.10k | _output_block_bytes_counter = | 595 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.10k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.10k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.10k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.10k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.10k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.10k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.10k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.10k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.10k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.10k | _memory_used_counter = | 606 | 5.10k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.10k | _common_profile->add_info_string("IsColocate", | 608 | 5.10k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.10k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.10k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.10k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.10k | return Status::OK(); | 613 | 5.10k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 436 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 436 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 436 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 436 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 436 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 436 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 436 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 436 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 436 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 436 | if constexpr (!is_fake_shared) { | 560 | 436 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 436 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 433 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 433 | _dependency = _shared_state->create_source_dependency( | 576 | 433 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 433 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 433 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 433 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 3 | } | 584 | 436 | } | 585 | | | 586 | 436 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 436 | _rows_returned_counter = | 591 | 436 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 436 | _blocks_returned_counter = | 593 | 436 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 436 | _output_block_bytes_counter = | 595 | 436 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 436 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 436 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 436 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 436 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 436 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 436 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 436 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 436 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 436 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 436 | _memory_used_counter = | 606 | 436 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 436 | _common_profile->add_info_string("IsColocate", | 608 | 436 | std::to_string(_parent->is_colocated_operator())); | 609 | 436 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 436 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 436 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 436 | return Status::OK(); | 613 | 436 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.07k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.07k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.07k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.07k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.07k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.07k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.07k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.07k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.07k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.07k | if constexpr (!is_fake_shared) { | 560 | 5.07k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.07k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.96k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.96k | _dependency = _shared_state->create_source_dependency( | 576 | 4.96k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.96k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.96k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.96k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 115 | } | 584 | 5.07k | } | 585 | | | 586 | 5.07k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.07k | _rows_returned_counter = | 591 | 5.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.07k | _blocks_returned_counter = | 593 | 5.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.07k | _output_block_bytes_counter = | 595 | 5.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.07k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.07k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.07k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.07k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.07k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.07k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.07k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.07k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.07k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.07k | _memory_used_counter = | 606 | 5.07k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.07k | _common_profile->add_info_string("IsColocate", | 608 | 5.07k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.07k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.07k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.07k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.07k | return Status::OK(); | 613 | 5.07k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 522k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 522k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 522k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 522k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 522k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 522k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 522k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 522k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 522k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 522k | if constexpr (!is_fake_shared) { | 560 | 522k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 517k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 517k | .first.get() | 563 | 517k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 517k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 517k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 517k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 517k | } else if (info.shared_state) { | 569 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | 0 | DCHECK(false); | 571 | 0 | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.83k | } else { | 580 | 5.83k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 5.83k | DCHECK(false); | 582 | 5.83k | } | 583 | 5.83k | } | 584 | 522k | } | 585 | | | 586 | 522k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 522k | _rows_returned_counter = | 591 | 522k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 522k | _blocks_returned_counter = | 593 | 522k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 522k | _output_block_bytes_counter = | 595 | 522k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 522k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 522k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 522k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 522k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 522k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 522k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 522k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 522k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 522k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 522k | _memory_used_counter = | 606 | 522k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 522k | _common_profile->add_info_string("IsColocate", | 608 | 522k | std::to_string(_parent->is_colocated_operator())); | 609 | 522k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 522k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 522k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 522k | return Status::OK(); | 613 | 522k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 164 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 164 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 164 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 164 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 164 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 164 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 164 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 164 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 164 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 164 | if constexpr (!is_fake_shared) { | 560 | 164 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 164 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 164 | _dependency = _shared_state->create_source_dependency( | 576 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 164 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 164 | } | 585 | | | 586 | 164 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 164 | _rows_returned_counter = | 591 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 164 | _blocks_returned_counter = | 593 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 164 | _output_block_bytes_counter = | 595 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 164 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 164 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 164 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 164 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 164 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 164 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 164 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 164 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 164 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 164 | _memory_used_counter = | 606 | 164 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 164 | _common_profile->add_info_string("IsColocate", | 608 | 164 | std::to_string(_parent->is_colocated_operator())); | 609 | 164 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 164 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 164 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 164 | return Status::OK(); | 613 | 164 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 1.71M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 1.71M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 1.98M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 276k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 276k | } |
621 | 1.71M | if (_parent->has_projection()) { |
622 | 339k | const auto& projection = *_parent->_projection; |
623 | 339k | _projections.resize(projection.projections.size()); |
624 | 2.09M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.75M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.75M | } |
627 | 339k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 346k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 6.65k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 41.3k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 34.7k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 34.7k | state, _intermediate_projections[i][j])); |
633 | 34.7k | } |
634 | 6.65k | } |
635 | 339k | } |
636 | 1.71M | return Status::OK(); |
637 | 1.71M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 63.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 63.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 64.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 691 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 691 | } | 621 | 63.7k | if (_parent->has_projection()) { | 622 | 63.7k | const auto& projection = *_parent->_projection; | 623 | 63.7k | _projections.resize(projection.projections.size()); | 624 | 312k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 248k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 248k | } | 627 | 63.7k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 64.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 828 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 6.31k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 5.49k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 5.49k | state, _intermediate_projections[i][j])); | 633 | 5.49k | } | 634 | 828 | } | 635 | 63.7k | } | 636 | 63.7k | return Status::OK(); | 637 | 63.7k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.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 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 160k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 160k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 160k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 160k | if (_parent->has_projection()) { | 622 | 74 | const auto& projection = *_parent->_projection; | 623 | 74 | _projections.resize(projection.projections.size()); | 624 | 366 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 292 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 292 | } | 627 | 74 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 74 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 74 | } | 636 | 160k | return Status::OK(); | 637 | 160k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 23 | _conjuncts.resize(_parent->_conjuncts.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 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 23 | return Status::OK(); | 637 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.50k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.50k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.56k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 65 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 65 | } | 621 | 5.50k | if (_parent->has_projection()) { | 622 | 5.50k | const auto& projection = *_parent->_projection; | 623 | 5.50k | _projections.resize(projection.projections.size()); | 624 | 23.3k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 17.8k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 17.8k | } | 627 | 5.50k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.53k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 28 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 309 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 281 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 281 | state, _intermediate_projections[i][j])); | 633 | 281 | } | 634 | 28 | } | 635 | 5.50k | } | 636 | 5.50k | return Status::OK(); | 637 | 5.50k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 7.43k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 7.43k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.22k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 790 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 790 | } | 621 | 7.43k | if (_parent->has_projection()) { | 622 | 3.93k | const auto& projection = *_parent->_projection; | 623 | 3.93k | _projections.resize(projection.projections.size()); | 624 | 16.3k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 12.4k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 12.4k | } | 627 | 3.93k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.01k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 85 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 635 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 550 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 550 | state, _intermediate_projections[i][j])); | 633 | 550 | } | 634 | 85 | } | 635 | 3.93k | } | 636 | 7.43k | return Status::OK(); | 637 | 7.43k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 82.5k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 82.5k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 84.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 2.16k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 2.16k | } | 621 | 82.5k | if (_parent->has_projection()) { | 622 | 27.5k | const auto& projection = *_parent->_projection; | 623 | 27.5k | _projections.resize(projection.projections.size()); | 624 | 239k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 212k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 212k | } | 627 | 27.5k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 27.7k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 201 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.43k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.23k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.23k | state, _intermediate_projections[i][j])); | 633 | 1.23k | } | 634 | 201 | } | 635 | 27.5k | } | 636 | 82.5k | return Status::OK(); | 637 | 82.5k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 77.5k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 77.5k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 77.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 33 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 33 | } | 621 | 77.5k | if (_parent->has_projection()) { | 622 | 157 | const auto& projection = *_parent->_projection; | 623 | 157 | _projections.resize(projection.projections.size()); | 624 | 539 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 382 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 382 | } | 627 | 157 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 157 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 157 | } | 636 | 77.5k | return Status::OK(); | 637 | 77.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 126 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 126 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 126 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 126 | if (_parent->has_projection()) { | 622 | 108 | const auto& projection = *_parent->_projection; | 623 | 108 | _projections.resize(projection.projections.size()); | 624 | 324 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 216 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 216 | } | 627 | 108 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 108 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 108 | } | 636 | 126 | return Status::OK(); | 637 | 126 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 725k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 725k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 998k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 272k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 272k | } | 621 | 725k | if (_parent->has_projection()) { | 622 | 228k | const auto& projection = *_parent->_projection; | 623 | 228k | _projections.resize(projection.projections.size()); | 624 | 1.40M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.17M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.17M | } | 627 | 228k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 234k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 5.51k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 32.6k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 27.1k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 27.1k | state, _intermediate_projections[i][j])); | 633 | 27.1k | } | 634 | 5.51k | } | 635 | 228k | } | 636 | 725k | return Status::OK(); | 637 | 725k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 51.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 51.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 51.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 51.0k | if (_parent->has_projection()) { | 622 | 9.69k | const auto& projection = *_parent->_projection; | 623 | 9.69k | _projections.resize(projection.projections.size()); | 624 | 94.8k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 85.1k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 85.1k | } | 627 | 9.69k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 9.69k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 9.69k | } | 636 | 51.0k | return Status::OK(); | 637 | 51.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.10k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.10k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.65k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 547 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 547 | } | 621 | 5.10k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 5.10k | return Status::OK(); | 637 | 5.10k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 437 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 437 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 437 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 437 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 437 | return Status::OK(); | 637 | 437 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.14k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.14k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.14k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 5.14k | if (_parent->has_projection()) { | 622 | 59 | const auto& projection = *_parent->_projection; | 623 | 59 | _projections.resize(projection.projections.size()); | 624 | 224 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 165 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 165 | } | 627 | 59 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 59 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 59 | } | 636 | 5.14k | return Status::OK(); | 637 | 5.14k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 526k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 526k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 526k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 526k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 526k | return Status::OK(); | 637 | 526k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 164 | if (_parent->has_projection()) { | 622 | 161 | const auto& projection = *_parent->_projection; | 623 | 161 | _projections.resize(projection.projections.size()); | 624 | 480 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 319 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 319 | } | 627 | 161 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 164 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 161 | } | 636 | 164 | return Status::OK(); | 637 | 164 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 7.23k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.23k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 7.23k | _terminated = true; |
645 | 7.23k | return Status::OK(); |
646 | 7.23k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 455 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 455 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 455 | _terminated = true; | 645 | 455 | return Status::OK(); | 646 | 455 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 22 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 22 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 22 | _terminated = true; | 645 | 22 | return Status::OK(); | 646 | 22 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 104 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 104 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 104 | _terminated = true; | 645 | 104 | return Status::OK(); | 646 | 104 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 4 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 4 | _terminated = true; | 645 | 4 | return Status::OK(); | 646 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 27 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 27 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 27 | _terminated = true; | 645 | 27 | return Status::OK(); | 646 | 27 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.54k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.54k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5.54k | _terminated = true; | 645 | 5.54k | return Status::OK(); | 646 | 5.54k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 20 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 20 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 20 | _terminated = true; | 645 | 20 | return Status::OK(); | 646 | 20 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 162 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 162 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 162 | _terminated = true; | 645 | 162 | return Status::OK(); | 646 | 162 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 864 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 864 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 864 | _terminated = true; | 645 | 864 | return Status::OK(); | 646 | 864 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 30 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 30 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 30 | _terminated = true; | 645 | 30 | return Status::OK(); | 646 | 30 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 1.89M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 1.89M | if (_closed) { |
651 | 188k | return Status::OK(); |
652 | 188k | } |
653 | 1.70M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 983k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 983k | } |
656 | 1.70M | _closed = true; |
657 | 1.70M | return Status::OK(); |
658 | 1.89M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 63.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 63.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 63.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 63.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 63.6k | } | 656 | 63.6k | _closed = true; | 657 | 63.6k | return Status::OK(); | 658 | 63.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 318k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 318k | if (_closed) { | 651 | 159k | return Status::OK(); | 652 | 159k | } | 653 | 158k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 158k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 158k | } | 656 | 158k | _closed = true; | 657 | 158k | return Status::OK(); | 658 | 318k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 23 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 23 | } | 656 | 23 | _closed = true; | 657 | 23 | return Status::OK(); | 658 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.49k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.49k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.49k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.49k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.49k | } | 656 | 5.49k | _closed = true; | 657 | 5.49k | return Status::OK(); | 658 | 5.49k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 15.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 15.0k | if (_closed) { | 651 | 7.60k | return Status::OK(); | 652 | 7.60k | } | 653 | 7.41k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 7.41k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 7.41k | } | 656 | 7.41k | _closed = true; | 657 | 7.41k | return Status::OK(); | 658 | 15.0k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 82.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 82.2k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 82.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 82.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 82.2k | } | 656 | 82.2k | _closed = true; | 657 | 82.2k | return Status::OK(); | 658 | 82.2k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 77.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 77.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 77.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 77.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 77.1k | } | 656 | 77.1k | _closed = true; | 657 | 77.1k | return Status::OK(); | 658 | 77.1k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 121 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 121 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 121 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 121 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 121 | } | 656 | 121 | _closed = true; | 657 | 121 | return Status::OK(); | 658 | 121 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 741k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 741k | if (_closed) { | 651 | 15.2k | return Status::OK(); | 652 | 15.2k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 726k | _closed = true; | 657 | 726k | return Status::OK(); | 658 | 741k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 51.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 51.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 51.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 51.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 51.0k | } | 656 | 51.0k | _closed = true; | 657 | 51.0k | return Status::OK(); | 658 | 51.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 14 | return Status::OK(); | 652 | 14 | } | 653 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 14 | } | 656 | 14 | _closed = true; | 657 | 14 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.08k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.08k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.08k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.08k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.08k | } | 656 | 5.08k | _closed = true; | 657 | 5.08k | return Status::OK(); | 658 | 5.08k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 667 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 667 | if (_closed) { | 651 | 334 | return Status::OK(); | 652 | 334 | } | 653 | 333 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 333 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 333 | } | 656 | 333 | _closed = true; | 657 | 333 | return Status::OK(); | 658 | 667 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.5k | if (_closed) { | 651 | 5.39k | return Status::OK(); | 652 | 5.39k | } | 653 | 5.13k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.13k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.13k | } | 656 | 5.13k | _closed = true; | 657 | 5.13k | return Status::OK(); | 658 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 527k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 527k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 527k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 527k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 527k | } | 656 | 527k | _closed = true; | 657 | 527k | return Status::OK(); | 658 | 527k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 325 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 325 | if (_closed) { | 651 | 170 | return Status::OK(); | 652 | 170 | } | 653 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 155 | } | 656 | 155 | _closed = true; | 657 | 155 | return Status::OK(); | 658 | 325 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.45M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.45M | _operator_profile = |
664 | 1.45M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.45M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.45M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
667 | | |
668 | | // indentation is true |
669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
670 | | // So we should set the indentation to true. |
671 | 1.45M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.45M | _operator_profile->add_child(_common_profile, true); |
673 | 1.45M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.45M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.45M | _wait_for_finish_dependency_timer = |
677 | 1.45M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.45M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.45M | if constexpr (!is_fake_shared) { |
680 | 1.05M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.05M | info.shared_state_map.end()) { |
682 | 304k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 211k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 211k | } |
685 | 304k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 304k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 304k | ? 0 |
688 | 304k | : info.task_idx] |
689 | 304k | .get(); |
690 | 304k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 748k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 748k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 748k | _dependency = _shared_state->create_sink_dependency( |
697 | 748k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 748k | } |
699 | 1.05M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.05M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.05M | } |
702 | | |
703 | 1.45M | if (must_set_shared_state() && _shared_state == nullptr) { |
704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
705 | 0 | } |
706 | | |
707 | 1.45M | _rows_input_counter = |
708 | 1.45M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.45M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.45M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.45M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.45M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.45M | _memory_used_counter = |
714 | 1.45M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.45M | _common_profile->add_info_string("IsColocate", |
716 | 1.45M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.45M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.45M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.45M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.45M | return Status::OK(); |
721 | 1.45M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 111k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 111k | _operator_profile = | 664 | 111k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 111k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 111k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 111k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 111k | _operator_profile->add_child(_common_profile, true); | 673 | 111k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 111k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 111k | _wait_for_finish_dependency_timer = | 677 | 111k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 111k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 111k | if constexpr (!is_fake_shared) { | 680 | 111k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 111k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 15.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 15.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 15.4k | ? 0 | 688 | 15.4k | : info.task_idx] | 689 | 15.4k | .get(); | 690 | 15.4k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 96.0k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 96.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 96.0k | _dependency = _shared_state->create_sink_dependency( | 697 | 96.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 96.0k | } | 699 | 111k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 111k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 111k | } | 702 | | | 703 | 111k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 111k | _rows_input_counter = | 708 | 111k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 111k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 111k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 111k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 111k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 111k | _memory_used_counter = | 714 | 111k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 111k | _common_profile->add_info_string("IsColocate", | 716 | 111k | std::to_string(_parent->is_colocated_operator())); | 717 | 111k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 111k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 111k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 111k | return Status::OK(); | 721 | 111k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 159k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 159k | _operator_profile = | 664 | 159k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 159k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 159k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 159k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 159k | _operator_profile->add_child(_common_profile, true); | 673 | 159k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 159k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 159k | _wait_for_finish_dependency_timer = | 677 | 159k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 159k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 159k | if constexpr (!is_fake_shared) { | 680 | 159k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 159k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 159k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 159k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 159k | _dependency = _shared_state->create_sink_dependency( | 697 | 159k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 159k | } | 699 | 159k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 159k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 159k | } | 702 | | | 703 | 159k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 159k | _rows_input_counter = | 708 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 159k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 159k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 159k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 159k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 159k | _memory_used_counter = | 714 | 159k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 159k | _common_profile->add_info_string("IsColocate", | 716 | 159k | std::to_string(_parent->is_colocated_operator())); | 717 | 159k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 159k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 159k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 159k | return Status::OK(); | 721 | 159k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 30 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 30 | _operator_profile = | 664 | 30 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 30 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 30 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 30 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 30 | _operator_profile->add_child(_common_profile, true); | 673 | 30 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 30 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 30 | _wait_for_finish_dependency_timer = | 677 | 30 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 30 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 30 | if constexpr (!is_fake_shared) { | 680 | 30 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 30 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 30 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 30 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 30 | _dependency = _shared_state->create_sink_dependency( | 697 | 30 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 30 | } | 699 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 30 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 30 | } | 702 | | | 703 | 30 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 30 | _rows_input_counter = | 708 | 30 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 30 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 30 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 30 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 30 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 30 | _memory_used_counter = | 714 | 30 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 30 | _common_profile->add_info_string("IsColocate", | 716 | 30 | std::to_string(_parent->is_colocated_operator())); | 717 | 30 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 30 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 30 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 30 | return Status::OK(); | 721 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 5.47k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 5.47k | _operator_profile = | 664 | 5.47k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 5.47k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 5.47k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 5.47k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 5.47k | _operator_profile->add_child(_common_profile, true); | 673 | 5.47k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 5.47k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 5.47k | _wait_for_finish_dependency_timer = | 677 | 5.47k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 5.47k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 5.47k | if constexpr (!is_fake_shared) { | 680 | 5.47k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 5.47k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 5.47k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 5.47k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 5.47k | _dependency = _shared_state->create_sink_dependency( | 697 | 5.47k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 5.47k | } | 699 | 5.47k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 5.47k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 5.47k | } | 702 | | | 703 | 5.47k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 5.47k | _rows_input_counter = | 708 | 5.47k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 5.47k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 5.47k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 5.47k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 5.47k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 5.47k | _memory_used_counter = | 714 | 5.47k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 5.47k | _common_profile->add_info_string("IsColocate", | 716 | 5.47k | std::to_string(_parent->is_colocated_operator())); | 717 | 5.47k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 5.47k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 5.47k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 5.47k | return Status::OK(); | 721 | 5.47k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 7.41k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 7.41k | _operator_profile = | 664 | 7.41k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 7.41k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 7.41k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 7.41k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 7.41k | _operator_profile->add_child(_common_profile, true); | 673 | 7.41k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 7.41k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 7.41k | _wait_for_finish_dependency_timer = | 677 | 7.41k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 7.41k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 7.41k | if constexpr (!is_fake_shared) { | 680 | 7.41k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 7.41k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 7.41k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 7.41k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 7.41k | _dependency = _shared_state->create_sink_dependency( | 697 | 7.41k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 7.41k | } | 699 | 7.41k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 7.41k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 7.41k | } | 702 | | | 703 | 7.41k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 7.41k | _rows_input_counter = | 708 | 7.41k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 7.41k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 7.41k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 7.41k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 7.41k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 7.41k | _memory_used_counter = | 714 | 7.41k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 7.41k | _common_profile->add_info_string("IsColocate", | 716 | 7.41k | std::to_string(_parent->is_colocated_operator())); | 717 | 7.41k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 7.41k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 7.41k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 7.41k | return Status::OK(); | 721 | 7.41k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 82.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 82.1k | _operator_profile = | 664 | 82.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 82.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 82.1k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 82.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 82.1k | _operator_profile->add_child(_common_profile, true); | 673 | 82.1k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 82.1k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 82.1k | _wait_for_finish_dependency_timer = | 677 | 82.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 82.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 82.1k | if constexpr (!is_fake_shared) { | 680 | 82.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 82.1k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 82.1k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 82.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 82.1k | _dependency = _shared_state->create_sink_dependency( | 697 | 82.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 82.1k | } | 699 | 82.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 82.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 82.1k | } | 702 | | | 703 | 82.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 82.1k | _rows_input_counter = | 708 | 82.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 82.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 82.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 82.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 82.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 82.1k | _memory_used_counter = | 714 | 82.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 82.1k | _common_profile->add_info_string("IsColocate", | 716 | 82.1k | std::to_string(_parent->is_colocated_operator())); | 717 | 82.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 82.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 82.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 82.1k | return Status::OK(); | 721 | 82.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 77.2k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 77.2k | _operator_profile = | 664 | 77.2k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 77.2k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 77.2k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 77.2k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 77.2k | _operator_profile->add_child(_common_profile, true); | 673 | 77.2k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 77.2k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 77.2k | _wait_for_finish_dependency_timer = | 677 | 77.2k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 77.2k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 77.2k | if constexpr (!is_fake_shared) { | 680 | 77.2k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 77.4k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 77.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 77.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 77.4k | ? 0 | 688 | 77.4k | : info.task_idx] | 689 | 77.4k | .get(); | 690 | 77.4k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 77.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 77.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 77.2k | } | 702 | | | 703 | 77.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 77.2k | _rows_input_counter = | 708 | 77.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 77.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 77.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 77.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 77.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 77.2k | _memory_used_counter = | 714 | 77.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 77.2k | _common_profile->add_info_string("IsColocate", | 716 | 77.2k | std::to_string(_parent->is_colocated_operator())); | 717 | 77.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 77.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 77.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 77.2k | return Status::OK(); | 721 | 77.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 132 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 132 | _operator_profile = | 664 | 132 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 132 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 132 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 132 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 132 | _operator_profile->add_child(_common_profile, true); | 673 | 132 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 132 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 132 | _wait_for_finish_dependency_timer = | 677 | 132 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 132 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 132 | if constexpr (!is_fake_shared) { | 680 | 132 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 132 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 132 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 132 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 132 | _dependency = _shared_state->create_sink_dependency( | 697 | 132 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 132 | } | 699 | 132 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 132 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 132 | } | 702 | | | 703 | 132 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 132 | _rows_input_counter = | 708 | 132 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 132 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 132 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 132 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 132 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 132 | _memory_used_counter = | 714 | 132 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 132 | _common_profile->add_info_string("IsColocate", | 716 | 132 | std::to_string(_parent->is_colocated_operator())); | 717 | 132 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 132 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 132 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 132 | return Status::OK(); | 721 | 132 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 397k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 397k | _operator_profile = | 664 | 397k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 397k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 397k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 397k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 397k | _operator_profile->add_child(_common_profile, true); | 673 | 397k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 397k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 397k | _wait_for_finish_dependency_timer = | 677 | 397k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 397k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | | if constexpr (!is_fake_shared) { | 680 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | | ? 0 | 688 | | : info.task_idx] | 689 | | .get(); | 690 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | | _dependency = _shared_state->create_sink_dependency( | 697 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | | } | 699 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | | } | 702 | | | 703 | 397k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 397k | _rows_input_counter = | 708 | 397k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 397k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 397k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 397k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 397k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 397k | _memory_used_counter = | 714 | 397k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 397k | _common_profile->add_info_string("IsColocate", | 716 | 397k | std::to_string(_parent->is_colocated_operator())); | 717 | 397k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 397k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 397k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 397k | return Status::OK(); | 721 | 397k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 4.88k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 4.88k | _operator_profile = | 664 | 4.88k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 4.88k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 4.88k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 4.88k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 4.88k | _operator_profile->add_child(_common_profile, true); | 673 | 4.88k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 4.88k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 4.88k | _wait_for_finish_dependency_timer = | 677 | 4.88k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 4.88k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 4.88k | if constexpr (!is_fake_shared) { | 680 | 4.88k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 4.88k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 4.88k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 4.88k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 4.88k | _dependency = _shared_state->create_sink_dependency( | 697 | 4.88k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 4.88k | } | 699 | 4.88k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 4.88k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 4.88k | } | 702 | | | 703 | 4.88k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 4.88k | _rows_input_counter = | 708 | 4.88k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 4.88k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 4.88k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 4.88k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 4.88k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 4.88k | _memory_used_counter = | 714 | 4.88k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 4.88k | _common_profile->add_info_string("IsColocate", | 716 | 4.88k | std::to_string(_parent->is_colocated_operator())); | 717 | 4.88k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 4.88k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 4.88k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 4.88k | return Status::OK(); | 721 | 4.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 437 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 437 | _operator_profile = | 664 | 437 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 437 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 437 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 437 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 437 | _operator_profile->add_child(_common_profile, true); | 673 | 437 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 437 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 437 | _wait_for_finish_dependency_timer = | 677 | 437 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 437 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 437 | if constexpr (!is_fake_shared) { | 680 | 437 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 437 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 437 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 437 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 437 | _dependency = _shared_state->create_sink_dependency( | 697 | 437 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 437 | } | 699 | 437 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 437 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 437 | } | 702 | | | 703 | 437 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 437 | _rows_input_counter = | 708 | 437 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 437 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 437 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 437 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 437 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 437 | _memory_used_counter = | 714 | 437 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 437 | _common_profile->add_info_string("IsColocate", | 716 | 437 | std::to_string(_parent->is_colocated_operator())); | 717 | 437 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 437 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 437 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 437 | return Status::OK(); | 721 | 437 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.23k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.23k | _operator_profile = | 664 | 2.23k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.23k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.23k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2.23k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.23k | _operator_profile->add_child(_common_profile, true); | 673 | 2.23k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.23k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.23k | _wait_for_finish_dependency_timer = | 677 | 2.23k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.23k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.23k | if constexpr (!is_fake_shared) { | 680 | 2.23k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.23k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2.23k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.23k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.23k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.23k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.23k | } | 699 | 2.23k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.23k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.23k | } | 702 | | | 703 | 2.23k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2.23k | _rows_input_counter = | 708 | 2.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.23k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.23k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.23k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.23k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.23k | _memory_used_counter = | 714 | 2.23k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.23k | _common_profile->add_info_string("IsColocate", | 716 | 2.23k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.23k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.23k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.23k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.23k | return Status::OK(); | 721 | 2.23k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.6k | _operator_profile = | 664 | 12.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.6k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.6k | _operator_profile->add_child(_common_profile, true); | 673 | 12.6k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.6k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.6k | _wait_for_finish_dependency_timer = | 677 | 12.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.6k | if constexpr (!is_fake_shared) { | 680 | 12.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.6k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.6k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.6k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.6k | } | 699 | 12.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.6k | } | 702 | | | 703 | 12.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.6k | _rows_input_counter = | 708 | 12.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.6k | _memory_used_counter = | 714 | 12.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.6k | _common_profile->add_info_string("IsColocate", | 716 | 12.6k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.6k | return Status::OK(); | 721 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 211k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 211k | _operator_profile = | 664 | 211k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 211k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 211k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 211k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 211k | _operator_profile->add_child(_common_profile, true); | 673 | 211k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 211k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 211k | _wait_for_finish_dependency_timer = | 677 | 211k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 211k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 211k | if constexpr (!is_fake_shared) { | 680 | 211k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 211k | info.shared_state_map.end()) { | 682 | 211k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 211k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 211k | } | 685 | 211k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 211k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 211k | ? 0 | 688 | 211k | : info.task_idx] | 689 | 211k | .get(); | 690 | 211k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | 18.4E | DCHECK(false); | 694 | 18.4E | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 211k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 211k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 211k | } | 702 | | | 703 | 211k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 211k | _rows_input_counter = | 708 | 211k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 211k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 211k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 211k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 211k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 211k | _memory_used_counter = | 714 | 211k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 211k | _common_profile->add_info_string("IsColocate", | 716 | 211k | std::to_string(_parent->is_colocated_operator())); | 717 | 211k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 211k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 211k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 211k | return Status::OK(); | 721 | 211k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 378k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 378k | _operator_profile = | 664 | 378k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 378k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 378k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 378k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 378k | _operator_profile->add_child(_common_profile, true); | 673 | 378k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 378k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 378k | _wait_for_finish_dependency_timer = | 677 | 378k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 378k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 378k | if constexpr (!is_fake_shared) { | 680 | 378k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 378k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 378k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 378k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 378k | _dependency = _shared_state->create_sink_dependency( | 697 | 378k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 378k | } | 699 | 378k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 378k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 378k | } | 702 | | | 703 | 378k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 378k | _rows_input_counter = | 708 | 378k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 378k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 378k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 378k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 378k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 378k | _memory_used_counter = | 714 | 378k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 378k | _common_profile->add_info_string("IsColocate", | 716 | 378k | std::to_string(_parent->is_colocated_operator())); | 717 | 378k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 378k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 378k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 378k | return Status::OK(); | 721 | 378k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 25 | _operator_profile = | 664 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 25 | _operator_profile->add_child(_common_profile, true); | 673 | 25 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 25 | _wait_for_finish_dependency_timer = | 677 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 25 | if constexpr (!is_fake_shared) { | 680 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 25 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 25 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 25 | _dependency = _shared_state->create_sink_dependency( | 697 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 25 | } | 699 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 25 | } | 702 | | | 703 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 25 | _rows_input_counter = | 708 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 25 | _memory_used_counter = | 714 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 25 | _common_profile->add_info_string("IsColocate", | 716 | 25 | std::to_string(_parent->is_colocated_operator())); | 717 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 25 | return Status::OK(); | 721 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 328 | _operator_profile = | 664 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 328 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 328 | _operator_profile->add_child(_common_profile, true); | 673 | 328 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 328 | _wait_for_finish_dependency_timer = | 677 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 328 | if constexpr (!is_fake_shared) { | 680 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 328 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 328 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 328 | _dependency = _shared_state->create_sink_dependency( | 697 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 328 | } | 699 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 328 | } | 702 | | | 703 | 328 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 328 | _rows_input_counter = | 708 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 328 | _memory_used_counter = | 714 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 328 | _common_profile->add_info_string("IsColocate", | 716 | 328 | std::to_string(_parent->is_colocated_operator())); | 717 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 328 | return Status::OK(); | 721 | 328 | } |
|
722 | | |
723 | | template <typename SharedState> |
724 | 1.45M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.45M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.45M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.05M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.05M | } |
731 | 1.45M | _closed = true; |
732 | 1.45M | return Status::OK(); |
733 | 1.45M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 111k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 111k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 111k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 111k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 111k | } | 731 | 111k | _closed = true; | 732 | 111k | return Status::OK(); | 733 | 111k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 159k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 159k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 159k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 159k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 159k | } | 731 | 159k | _closed = true; | 732 | 159k | return Status::OK(); | 733 | 159k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 21 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 19 | } | 731 | 19 | _closed = true; | 732 | 19 | return Status::OK(); | 733 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 5.48k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 5.48k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 5.48k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 5.48k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 5.48k | } | 731 | 5.48k | _closed = true; | 732 | 5.48k | return Status::OK(); | 733 | 5.48k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 7.39k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 7.39k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 7.39k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 7.39k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 7.39k | } | 731 | 7.39k | _closed = true; | 732 | 7.39k | return Status::OK(); | 733 | 7.39k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 82.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 82.1k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 82.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 82.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 82.1k | } | 731 | 82.1k | _closed = true; | 732 | 82.1k | return Status::OK(); | 733 | 82.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 77.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 77.1k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 77.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 77.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 77.1k | } | 731 | 77.1k | _closed = true; | 732 | 77.1k | return Status::OK(); | 733 | 77.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 121 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 121 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 121 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 121 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 121 | } | 731 | 121 | _closed = true; | 732 | 121 | return Status::OK(); | 733 | 121 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 400k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 400k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | | } | 731 | 400k | _closed = true; | 732 | 400k | return Status::OK(); | 733 | 400k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 4.91k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 4.91k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 4.91k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 4.91k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 4.91k | } | 731 | 4.91k | _closed = true; | 732 | 4.91k | return Status::OK(); | 733 | 4.91k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 334 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 334 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 334 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 334 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 334 | } | 731 | 334 | _closed = true; | 732 | 334 | return Status::OK(); | 733 | 334 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.26k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.26k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.26k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.26k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.26k | } | 731 | 2.26k | _closed = true; | 732 | 2.26k | return Status::OK(); | 733 | 2.26k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.7k | } | 731 | 12.7k | _closed = true; | 732 | 12.7k | return Status::OK(); | 733 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 212k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 212k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 212k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 212k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 212k | } | 731 | 212k | _closed = true; | 732 | 212k | return Status::OK(); | 733 | 212k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 382k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 382k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 382k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 382k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 382k | } | 731 | 382k | _closed = true; | 732 | 382k | return Status::OK(); | 733 | 382k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 14 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 14 | } | 731 | 14 | _closed = true; | 732 | 14 | return Status::OK(); | 733 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 328 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 328 | } | 731 | 328 | _closed = true; | 732 | 328 | return Status::OK(); | 733 | 328 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 8.65k | bool* eos) { |
738 | 8.65k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 8.65k | return pull(state, block, eos); |
740 | 8.65k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 37 | bool* eos) { | 738 | 37 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 37 | return pull(state, block, eos); | 740 | 37 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 8.61k | bool* eos) { | 738 | 8.61k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 8.61k | return pull(state, block, eos); | 740 | 8.61k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 448k | bool* eos) { |
745 | 448k | auto& local_state = get_local_state(state); |
746 | 448k | if (need_more_input_data(state)) { |
747 | 419k | local_state._child_block->clear_column_data( |
748 | 419k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 419k | .num_materialized_slots()); |
750 | 419k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 419k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 419k | *eos = local_state._child_eos; |
753 | 419k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 51.2k | return Status::OK(); |
755 | 51.2k | } |
756 | 368k | { |
757 | 368k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 368k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 368k | } |
760 | 368k | } |
761 | | |
762 | 397k | if (!need_more_input_data(state)) { |
763 | 369k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 369k | bool new_eos = false; |
765 | 369k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 369k | if (new_eos) { |
767 | 295k | *eos = true; |
768 | 295k | } else if (!need_more_input_data(state)) { |
769 | 23.2k | *eos = false; |
770 | 23.2k | } |
771 | 369k | } |
772 | 397k | return Status::OK(); |
773 | 397k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 126k | bool* eos) { | 745 | 126k | auto& local_state = get_local_state(state); | 746 | 126k | if (need_more_input_data(state)) { | 747 | 109k | local_state._child_block->clear_column_data( | 748 | 109k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 109k | .num_materialized_slots()); | 750 | 109k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 109k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 109k | *eos = local_state._child_eos; | 753 | 109k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 31.1k | return Status::OK(); | 755 | 31.1k | } | 756 | 78.4k | { | 757 | 78.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 78.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 78.4k | } | 760 | 78.4k | } | 761 | | | 762 | 95.2k | if (!need_more_input_data(state)) { | 763 | 95.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 95.2k | bool new_eos = false; | 765 | 95.2k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 95.2k | if (new_eos) { | 767 | 39.3k | *eos = true; | 768 | 55.8k | } else if (!need_more_input_data(state)) { | 769 | 10.6k | *eos = false; | 770 | 10.6k | } | 771 | 95.2k | } | 772 | 95.2k | return Status::OK(); | 773 | 95.2k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.19k | bool* eos) { | 745 | 4.19k | auto& local_state = get_local_state(state); | 746 | 4.19k | if (need_more_input_data(state)) { | 747 | 2.30k | local_state._child_block->clear_column_data( | 748 | 2.30k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.30k | .num_materialized_slots()); | 750 | 2.30k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.30k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.30k | *eos = local_state._child_eos; | 753 | 2.30k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 437 | return Status::OK(); | 755 | 437 | } | 756 | 1.86k | { | 757 | 1.86k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.86k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.86k | } | 760 | 1.86k | } | 761 | | | 762 | 3.77k | if (!need_more_input_data(state)) { | 763 | 3.77k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.77k | bool new_eos = false; | 765 | 3.77k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.77k | if (new_eos) { | 767 | 1.35k | *eos = true; | 768 | 2.41k | } else if (!need_more_input_data(state)) { | 769 | 1.89k | *eos = false; | 770 | 1.89k | } | 771 | 3.77k | } | 772 | 3.76k | return Status::OK(); | 773 | 3.76k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.82k | bool* eos) { | 745 | 1.82k | auto& local_state = get_local_state(state); | 746 | 1.82k | if (need_more_input_data(state)) { | 747 | 1.82k | local_state._child_block->clear_column_data( | 748 | 1.82k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.82k | .num_materialized_slots()); | 750 | 1.82k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.82k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.82k | *eos = local_state._child_eos; | 753 | 1.82k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 769 | return Status::OK(); | 755 | 769 | } | 756 | 1.05k | { | 757 | 1.05k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.05k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.05k | } | 760 | 1.05k | } | 761 | | | 762 | 1.05k | if (!need_more_input_data(state)) { | 763 | 1.05k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.05k | bool new_eos = false; | 765 | 1.05k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.05k | if (new_eos) { | 767 | 779 | *eos = true; | 768 | 779 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.05k | } | 772 | 1.05k | return Status::OK(); | 773 | 1.05k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 16.7k | bool* eos) { | 745 | 16.7k | auto& local_state = get_local_state(state); | 746 | 16.7k | if (need_more_input_data(state)) { | 747 | 16.7k | local_state._child_block->clear_column_data( | 748 | 16.7k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 16.7k | .num_materialized_slots()); | 750 | 16.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 16.7k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 16.7k | *eos = local_state._child_eos; | 753 | 16.7k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.87k | return Status::OK(); | 755 | 4.87k | } | 756 | 11.8k | { | 757 | 11.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 11.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 11.8k | } | 760 | 11.8k | } | 761 | | | 762 | 11.8k | if (!need_more_input_data(state)) { | 763 | 6.03k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.03k | bool new_eos = false; | 765 | 6.03k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.03k | if (new_eos) { | 767 | 5.97k | *eos = true; | 768 | 5.97k | } else if (!need_more_input_data(state)) { | 769 | 3 | *eos = false; | 770 | 3 | } | 771 | 6.03k | } | 772 | 11.8k | return Status::OK(); | 773 | 11.8k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 272k | bool* eos) { | 745 | 272k | auto& local_state = get_local_state(state); | 746 | 272k | if (need_more_input_data(state)) { | 747 | 272k | local_state._child_block->clear_column_data( | 748 | 272k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 272k | .num_materialized_slots()); | 750 | 272k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 272k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 272k | *eos = local_state._child_eos; | 753 | 272k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 12.4k | return Status::OK(); | 755 | 12.4k | } | 756 | 260k | { | 757 | 260k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 260k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 260k | } | 760 | 260k | } | 761 | | | 762 | 259k | if (!need_more_input_data(state)) { | 763 | 238k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 238k | bool new_eos = false; | 765 | 238k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 238k | if (new_eos) { | 767 | 237k | *eos = true; | 768 | 237k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 238k | } | 772 | 259k | return Status::OK(); | 773 | 259k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 20.5k | bool* eos) { | 745 | 20.5k | auto& local_state = get_local_state(state); | 746 | 20.5k | if (need_more_input_data(state)) { | 747 | 10.2k | local_state._child_block->clear_column_data( | 748 | 10.2k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 10.2k | .num_materialized_slots()); | 750 | 10.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 10.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 10.2k | *eos = local_state._child_eos; | 753 | 10.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 1.09k | return Status::OK(); | 755 | 1.09k | } | 756 | 9.18k | { | 757 | 9.18k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 9.18k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 9.18k | } | 760 | 9.18k | } | 761 | | | 762 | 19.4k | if (!need_more_input_data(state)) { | 763 | 18.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 18.9k | bool new_eos = false; | 765 | 18.9k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 18.9k | if (new_eos) { | 767 | 5.47k | *eos = true; | 768 | 13.4k | } else if (!need_more_input_data(state)) { | 769 | 10.2k | *eos = false; | 770 | 10.2k | } | 771 | 18.9k | } | 772 | 19.4k | return Status::OK(); | 773 | 19.4k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 6.95k | bool* eos) { | 745 | 6.95k | auto& local_state = get_local_state(state); | 746 | 6.95k | if (need_more_input_data(state)) { | 747 | 6.60k | local_state._child_block->clear_column_data( | 748 | 6.60k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 6.60k | .num_materialized_slots()); | 750 | 6.60k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 6.60k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 6.60k | *eos = local_state._child_eos; | 753 | 6.60k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 545 | return Status::OK(); | 755 | 545 | } | 756 | 6.06k | { | 757 | 6.06k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.06k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.06k | } | 760 | 6.06k | } | 761 | | | 762 | 6.42k | if (!need_more_input_data(state)) { | 763 | 6.42k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.42k | bool new_eos = false; | 765 | 6.42k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.42k | if (new_eos) { | 767 | 4.30k | *eos = true; | 768 | 4.30k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 6.42k | } | 772 | 6.40k | return Status::OK(); | 773 | 6.40k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 42.8k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 42.8k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 42.8k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 42.8k | "AsyncWriterDependency", true); |
781 | 42.8k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 42.8k | _finish_dependency)); |
783 | | |
784 | 42.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 42.8k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 42.8k | return Status::OK(); |
787 | 42.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 358 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 358 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 358 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 358 | "AsyncWriterDependency", true); | 781 | 358 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 358 | _finish_dependency)); | 783 | | | 784 | 358 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 358 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 358 | return Status::OK(); | 787 | 358 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 42.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 42.4k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 42.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 42.4k | "AsyncWriterDependency", true); | 781 | 42.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 42.4k | _finish_dependency)); | 783 | | | 784 | 42.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 42.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 42.4k | return Status::OK(); | 787 | 42.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 30 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 30 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 30 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 30 | "AsyncWriterDependency", true); | 781 | 30 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 30 | _finish_dependency)); | 783 | | | 784 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 30 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 30 | return Status::OK(); | 787 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
788 | | |
789 | | template <typename Writer, typename Parent> |
790 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
791 | 43.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 43.3k | RETURN_IF_ERROR(Base::open(state)); |
793 | 43.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 346k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 303k | RETURN_IF_ERROR( |
796 | 303k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 303k | } |
798 | 43.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 43.3k | return Status::OK(); |
800 | 43.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 359 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 359 | RETURN_IF_ERROR(Base::open(state)); | 793 | 359 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.85k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.49k | RETURN_IF_ERROR( | 796 | 1.49k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.49k | } | 798 | 359 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 359 | return Status::OK(); | 800 | 359 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 42.9k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 42.9k | RETURN_IF_ERROR(Base::open(state)); | 793 | 42.9k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 344k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 301k | RETURN_IF_ERROR( | 796 | 301k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 301k | } | 798 | 42.9k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 42.9k | return Status::OK(); | 800 | 42.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 30 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 30 | RETURN_IF_ERROR(Base::open(state)); | 793 | 30 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 540 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 510 | RETURN_IF_ERROR( | 796 | 510 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 510 | } | 798 | 30 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 30 | return Status::OK(); | 800 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 58.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 58.7k | return _writer->sink(block, eos); |
806 | 58.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.49k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.49k | return _writer->sink(block, eos); | 806 | 1.49k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 57.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 57.2k | return _writer->sink(block, eos); | 806 | 57.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 30 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 30 | return _writer->sink(block, eos); | 806 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
807 | | |
808 | | template <typename Writer, typename Parent> |
809 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
810 | 43.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 43.4k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 43.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 43.4k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
816 | | // if the init failed, the _writer may be nullptr. so here need check |
817 | 43.4k | if (_writer) { |
818 | 43.4k | Status st = _writer->get_writer_status(); |
819 | 43.4k | if (exec_status.ok()) { |
820 | 43.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 43.3k | : Status::Cancelled("force close")); |
822 | 43.3k | } else { |
823 | 62 | _writer->force_close(exec_status); |
824 | 62 | } |
825 | | // If there is an error in process_block thread, then we should get the writer |
826 | | // status before call force_close. For example, the thread may failed in commit |
827 | | // transaction. |
828 | 43.4k | RETURN_IF_ERROR(st); |
829 | 43.4k | } |
830 | 43.3k | return Base::close(state, exec_status); |
831 | 43.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 347 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 347 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 347 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 347 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 347 | if (_writer) { | 818 | 347 | Status st = _writer->get_writer_status(); | 819 | 347 | if (exec_status.ok()) { | 820 | 347 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 347 | : Status::Cancelled("force close")); | 822 | 347 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 347 | RETURN_IF_ERROR(st); | 829 | 347 | } | 830 | 347 | return Base::close(state, exec_status); | 831 | 347 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 43.0k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 43.0k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 43.0k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 43.0k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 43.0k | if (_writer) { | 818 | 43.0k | Status st = _writer->get_writer_status(); | 819 | 43.0k | if (exec_status.ok()) { | 820 | 43.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 43.0k | : Status::Cancelled("force close")); | 822 | 43.0k | } else { | 823 | 62 | _writer->force_close(exec_status); | 824 | 62 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 43.0k | RETURN_IF_ERROR(st); | 829 | 43.0k | } | 830 | 42.9k | return Base::close(state, exec_status); | 831 | 43.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 30 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 30 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 30 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 30 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 30 | if (_writer) { | 818 | 30 | Status st = _writer->get_writer_status(); | 819 | 30 | if (exec_status.ok()) { | 820 | 30 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 30 | : Status::Cancelled("force close")); | 822 | 30 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 30 | RETURN_IF_ERROR(st); | 829 | 30 | } | 830 | 30 | return Base::close(state, exec_status); | 831 | 30 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
832 | | |
833 | | // An instantiation added outside the macros below needs the matching |
834 | | // 'extern template' declaration in the operator's header (enforced by |
835 | | // build-support/check-extern-template-pairing.py). Instantiations expanded |
836 | | // through DECLARE_OPERATOR are invisible to that check -- macro bodies are |
837 | | // skipped -- so their extern pairing has to be kept in sync by hand. |
838 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
839 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
840 | | DECLARE_OPERATOR(ResultSinkLocalState) |
841 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
842 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
843 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
844 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
845 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
846 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
847 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
848 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
849 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
850 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
852 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
853 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
854 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
855 | | DECLARE_OPERATOR(SortSinkLocalState) |
856 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
857 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
858 | | DECLARE_OPERATOR(AggSinkLocalState) |
859 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
860 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
862 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
863 | | DECLARE_OPERATOR(UnionSinkLocalState) |
864 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
865 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
866 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
868 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
870 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
871 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
872 | | DECLARE_OPERATOR(CacheSinkLocalState) |
873 | | DECLARE_OPERATOR(DictSinkLocalState) |
874 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
876 | | |
877 | | #undef DECLARE_OPERATOR |
878 | | |
879 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
880 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
881 | | DECLARE_OPERATOR(OlapScanLocalState) |
882 | | DECLARE_OPERATOR(GroupCommitLocalState) |
883 | | DECLARE_OPERATOR(JDBCScanLocalState) |
884 | | DECLARE_OPERATOR(FileScanLocalState) |
885 | | DECLARE_OPERATOR(AnalyticLocalState) |
886 | | DECLARE_OPERATOR(SortLocalState) |
887 | | DECLARE_OPERATOR(SpillSortLocalState) |
888 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
889 | | DECLARE_OPERATOR(AggLocalState) |
890 | | DECLARE_OPERATOR(BucketedAggLocalState) |
891 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
892 | | DECLARE_OPERATOR(TableFunctionLocalState) |
893 | | DECLARE_OPERATOR(ExchangeLocalState) |
894 | | DECLARE_OPERATOR(RepeatLocalState) |
895 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
896 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
897 | | DECLARE_OPERATOR(EmptySetLocalState) |
898 | | DECLARE_OPERATOR(UnionSourceLocalState) |
899 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
900 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
901 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
903 | | DECLARE_OPERATOR(DataGenLocalState) |
904 | | DECLARE_OPERATOR(SchemaScanLocalState) |
905 | | DECLARE_OPERATOR(MetaScanLocalState) |
906 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
907 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
908 | | DECLARE_OPERATOR(CacheSourceLocalState) |
909 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
911 | | |
912 | | #ifdef BE_TEST |
913 | | DECLARE_OPERATOR(MockLocalState) |
914 | | DECLARE_OPERATOR(MockScanLocalState) |
915 | | #endif |
916 | | #undef DECLARE_OPERATOR |
917 | | |
918 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
919 | | template class StreamingOperatorX<SelectLocalState>; |
920 | | |
921 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
922 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<RepeatLocalState>; |
924 | | template class StatefulOperatorX<MaterializationLocalState>; |
925 | | template class StatefulOperatorX<StreamingAggLocalState>; |
926 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
927 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
928 | | template class StatefulOperatorX<TableFunctionLocalState>; |
929 | | |
930 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
931 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<SortSharedState>; |
933 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
934 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
935 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
936 | | template class PipelineXSinkLocalState<AggSharedState>; |
937 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
938 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<FakeSharedState>; |
940 | | template class PipelineXSinkLocalState<UnionSharedState>; |
941 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
942 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
943 | | template class PipelineXSinkLocalState<SetSharedState>; |
944 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
945 | | template class PipelineXSinkLocalState<BasicSharedState>; |
946 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
947 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
948 | | |
949 | | template class PipelineXLocalState<HashJoinSharedState>; |
950 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
951 | | template class PipelineXLocalState<SortSharedState>; |
952 | | template class PipelineXLocalState<SpillSortSharedState>; |
953 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
954 | | template class PipelineXLocalState<AnalyticSharedState>; |
955 | | template class PipelineXLocalState<AggSharedState>; |
956 | | template class PipelineXLocalState<BucketedAggSharedState>; |
957 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
958 | | template class PipelineXLocalState<FakeSharedState>; |
959 | | template class PipelineXLocalState<UnionSharedState>; |
960 | | template class PipelineXLocalState<DataQueueSharedState>; |
961 | | template class PipelineXLocalState<MultiCastSharedState>; |
962 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
963 | | template class PipelineXLocalState<SetSharedState>; |
964 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
965 | | template class PipelineXLocalState<BasicSharedState>; |
966 | | template class PipelineXLocalState<RecCTESharedState>; |
967 | | |
968 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
969 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
972 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
973 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
979 | | |
980 | | #ifdef BE_TEST |
981 | | template class OperatorX<DummyOperatorLocalState>; |
982 | | template class DataSinkOperatorX<DummySinkLocalState>; |
983 | | #endif |
984 | | |
985 | | } // namespace doris |