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.89M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.89M | if (_parent->nereids_id() == -1) { |
122 | 980k | return fmt::format("(id={})", _parent->node_id()); |
123 | 980k | } else { |
124 | 912k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 912k | } |
126 | 1.89M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 69.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 69.1k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 69.1k | } else { | 124 | 69.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 69.1k | } | 126 | 69.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 | 190k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 190k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 190k | } else { | 124 | 190k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 190k | } | 126 | 190k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 26 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 26 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.26k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.26k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.26k | } else { | 124 | 7.26k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.26k | } | 126 | 7.26k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.99k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.99k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.98k | } else { | 124 | 7.98k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.98k | } | 126 | 7.99k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 89.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 89.5k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 89.4k | } else { | 124 | 89.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 89.4k | } | 126 | 89.5k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 99.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 99.3k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 99.3k | } else { | 124 | 99.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 99.3k | } | 126 | 99.3k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 228 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 228 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 228 | } else { | 124 | 228 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 228 | } | 126 | 228 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 700k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 700k | if (_parent->nereids_id() == -1) { | 122 | 311k | return fmt::format("(id={})", _parent->node_id()); | 123 | 389k | } else { | 124 | 389k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 389k | } | 126 | 700k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 53.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 53.5k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 53.5k | } else { | 124 | 53.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 53.5k | } | 126 | 53.5k | } |
_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 | 6.30k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.30k | if (_parent->nereids_id() == -1) { | 122 | 6.30k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 6.30k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 412 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 412 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 310 | } else { | 124 | 310 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 310 | } | 126 | 412 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.93k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.93k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.92k | } else { | 124 | 4.92k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.92k | } | 126 | 4.93k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 662k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 663k | if (_parent->nereids_id() == -1) { | 122 | 663k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 662k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 169 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 169 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 169 | } else { | 124 | 169 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 169 | } | 126 | 169 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.25M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.25M | if (_parent->nereids_id() == -1) { |
131 | 727k | return fmt::format("(id={})", _parent->node_id()); |
132 | 727k | } else { |
133 | 525k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 525k | } |
135 | 1.25M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 117k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 117k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 117k | } else { | 133 | 117k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 117k | } | 135 | 117k | } |
_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 | 194k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 194k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 194k | } else { | 133 | 194k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 194k | } | 135 | 194k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 33 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 33 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 33 | } else { | 133 | 33 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 33 | } | 135 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.28k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.28k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.28k | } else { | 133 | 7.28k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.28k | } | 135 | 7.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.02k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.02k | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.00k | } else { | 133 | 8.00k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.00k | } | 135 | 8.02k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 90.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 90.0k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 90.0k | } else { | 133 | 90.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 90.0k | } | 135 | 90.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 98.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 98.5k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 98.5k | } else { | 133 | 98.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 98.5k | } | 135 | 98.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 238 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 238 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 238 | } else { | 133 | 238 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 238 | } | 135 | 238 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12 | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 12 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.73k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.73k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.72k | } else { | 133 | 8.72k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.72k | } | 135 | 8.73k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 412 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 412 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 310 | } else { | 133 | 310 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 310 | } | 135 | 412 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.5k | if (_parent->nereids_id() == -1) { | 131 | 12.5k | 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.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 239k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 239k | if (_parent->nereids_id() == -1) { | 131 | 239k | 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 | 239k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 474k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 475k | if (_parent->nereids_id() == -1) { | 131 | 475k | 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 | 474k | } |
_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 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 338 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 338 | } else { | 133 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 338 | } | 135 | 338 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 32.1k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 32.1k | if (_terminated) { |
140 | 2 | return Status::OK(); |
141 | 2 | } |
142 | 32.1k | _terminated = true; |
143 | 32.1k | return Status::OK(); |
144 | 32.1k | } _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 | 3.97k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3.97k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3.97k | _terminated = true; | 143 | 3.97k | return Status::OK(); | 144 | 3.97k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 4 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 4 | _terminated = true; | 143 | 4 | return Status::OK(); | 144 | 4 | } |
_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 | 2.17k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.17k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.17k | _terminated = true; | 143 | 2.17k | return Status::OK(); | 144 | 2.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 491 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 491 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 491 | _terminated = true; | 143 | 491 | return Status::OK(); | 144 | 491 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 600 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 600 | if (_terminated) { | 140 | 2 | return Status::OK(); | 141 | 2 | } | 142 | 598 | _terminated = true; | 143 | 598 | return Status::OK(); | 144 | 600 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 161 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 161 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 161 | _terminated = true; | 143 | 161 | return Status::OK(); | 144 | 161 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 8 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 8 | _terminated = true; | 143 | 8 | return Status::OK(); | 144 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 253 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 253 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 253 | _terminated = true; | 143 | 253 | return Status::OK(); | 144 | 253 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 13 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 13 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 13 | _terminated = true; | 143 | 13 | return Status::OK(); | 144 | 13 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 275 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 275 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 275 | _terminated = true; | 143 | 275 | return Status::OK(); | 144 | 275 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 133 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 133 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 133 | _terminated = true; | 143 | 133 | return Status::OK(); | 144 | 133 | } |
|
145 | | |
146 | 312k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 312k | return _child && _child->is_serial_operator() && !is_source() |
148 | 312k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 312k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 312k | } |
151 | | |
152 | 26.5k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 26.5k | if (!_child) { |
154 | 25.0k | return false; |
155 | 25.0k | } |
156 | 1.45k | if (_child->is_serial_operator()) { |
157 | 210 | return true; |
158 | 210 | } |
159 | 1.24k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 1.24k | return child_distribution.need_local_exchange() && |
161 | 1.24k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.45k | } |
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.8k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 19.8k | fmt::memory_buffer debug_string_buffer; |
180 | 19.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 19.8k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 19.8k | _is_serial_operator); |
183 | 19.8k | return fmt::to_string(debug_string_buffer); |
184 | 19.8k | } |
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 | 658k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 658k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 658k | _nereids_id = tnode.nereids_id; |
193 | 658k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.88k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.88k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.88k | 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.88k | } |
206 | 658k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 658k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 658k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 658k | } else if (tnode.__isset.conjuncts) { |
212 | 271k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 271k | VExprContextSPtr context; |
214 | 271k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 271k | _conjuncts.emplace_back(context); |
216 | 271k | } |
217 | 98.7k | } |
218 | | |
219 | | // create the projections expr |
220 | 658k | if (tnode.__isset.projections) { |
221 | 261k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 261k | } |
223 | 658k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.88k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.88k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 6.61k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 6.61k | VExprContextSPtrs projections; |
228 | 6.61k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 6.61k | _projection->intermediate_projections.push_back(projections); |
230 | 6.61k | } |
231 | 3.88k | } |
232 | 658k | return Status::OK(); |
233 | 658k | } |
234 | | |
235 | 686k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 686k | for (auto& conjunct : _conjuncts) { |
237 | 271k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 271k | } |
239 | 686k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 635k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 337k | return a->execute_cost() < b->execute_cost(); |
242 | 337k | }); |
243 | 635k | }; |
244 | | |
245 | 686k | if (has_projection()) { |
246 | 261k | auto& projection = *_projection; |
247 | 267k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 6.61k | const auto& input_row_desc = |
249 | 6.61k | i == 0 ? operator_row_desc_before_projection() |
250 | 6.61k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 6.61k | RETURN_IF_ERROR( |
252 | 6.61k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 6.61k | } |
254 | 261k | const auto& final_projection_input_row_desc = |
255 | 261k | projection.intermediate_output_row_descriptors.empty() |
256 | 261k | ? operator_row_desc_before_projection() |
257 | 261k | : projection.intermediate_output_row_descriptors.back(); |
258 | 261k | RETURN_IF_ERROR( |
259 | 261k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 261k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 261k | projection.output_row_descriptor)); |
262 | 261k | } |
263 | | |
264 | 686k | for (auto& conjunct : _conjuncts) { |
265 | 271k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 271k | } |
267 | 686k | if (has_projection()) { |
268 | 261k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 261k | for (auto& projections : _projection->intermediate_projections) { |
270 | 6.61k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 6.61k | } |
272 | 261k | } |
273 | 686k | if (_child && !is_source()) { |
274 | 99.6k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 99.6k | } |
276 | | |
277 | 686k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 686k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 686k | return Status::OK(); |
283 | 686k | } |
284 | | |
285 | 8.96k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 8.96k | if (_child && !is_source()) { |
287 | 838 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 838 | } |
289 | 8.96k | auto result = state->get_local_state_result(operator_id()); |
290 | 8.96k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 8.96k | return result.value()->terminate(state); |
294 | 8.96k | } |
295 | | |
296 | 5.19M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 5.19M | if (_child && !is_source()) { |
298 | 917k | RETURN_IF_ERROR(_child->close(state)); |
299 | 917k | } |
300 | 5.19M | auto result = state->get_local_state_result(operator_id()); |
301 | 5.19M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 5.19M | return result.value()->close(state); |
305 | 5.19M | } |
306 | | |
307 | 305k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 305k | _origin_block.clear_column_data( |
309 | 305k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 305k | } |
311 | | |
312 | 976k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 976k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 976k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 976k | return Status::OK(); |
317 | 976k | } |
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 | 305k | Block* output_block) const { |
326 | 305k | auto* local_state = state->get_local_state(operator_id()); |
327 | 305k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 305k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 305k | const size_t rows = origin_block->rows(); |
330 | 305k | if (rows == 0) { |
331 | 162k | return Status::OK(); |
332 | 162k | } |
333 | 142k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 142k | { |
336 | 142k | Block input_block = *origin_block; |
337 | | |
338 | 142k | ColumnsWithTypeAndName new_columns; |
339 | 142k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.82k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.82k | new_columns.resize(projections.size()); |
345 | 71.7k | for (int i = 0; i < projections.size(); i++) { |
346 | 67.9k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 67.9k | 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 | 67.9k | } |
355 | 3.81k | Block tmp_block {new_columns}; |
356 | 3.81k | input_block.swap(tmp_block); |
357 | 3.81k | } |
358 | | |
359 | 142k | 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 | 142k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 142k | output_block, _projection->output_row_descriptor); |
368 | 142k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 142k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 142k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 803k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 661k | ColumnPtr column_ptr; |
374 | 661k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 661k | 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 | 661k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 661k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 661k | if (column_ptr->is_exclusive()) { |
386 | 238k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 423k | } else { |
388 | 423k | shared_columns[i] = std::move(column_ptr); |
389 | 423k | } |
390 | 661k | } |
391 | | |
392 | 142k | scoped_mutable_block.restore(); |
393 | 804k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 661k | if (shared_columns[i]) { |
395 | 423k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 423k | } |
397 | 661k | } |
398 | 142k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 142k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 142k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 142k | return Status::OK(); |
405 | 142k | } |
406 | | |
407 | 4.63M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.63M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.63M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.63M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.63M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.63M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.63M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.63M | return Status::OK(); |
415 | 4.63M | } |
416 | 4.63M | } |
417 | 4.63M | }); |
418 | | |
419 | 4.63M | Status status; |
420 | 4.63M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.63M | Defer defer([&]() { |
422 | 4.63M | if (status.ok()) { |
423 | 4.63M | local_state->update_output_block_counters(*block); |
424 | 4.63M | } |
425 | 4.63M | }); |
426 | 4.63M | if (has_projection()) { |
427 | 305k | local_state->clear_origin_block(); |
428 | 305k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 305k | if (UNLIKELY(!status.ok())) { |
430 | 26 | return status; |
431 | 26 | } |
432 | 305k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 305k | return status; |
434 | 305k | } |
435 | 4.33M | status = get_block(state, block, eos); |
436 | 4.33M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 4.33M | return status; |
438 | 4.33M | } |
439 | | |
440 | 2.89M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.89M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.73k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.73k | *eos = true; |
444 | 9.73k | } |
445 | | |
446 | 2.89M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.89M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.89M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.89M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.89M | if (op_name == arg_op_name) { |
452 | 2.89M | *eos = true; |
453 | 2.89M | } |
454 | 2.89M | }); |
455 | | |
456 | 2.89M | if (auto rows = block->rows()) { |
457 | 735k | _num_rows_returned += rows; |
458 | 735k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 735k | } |
460 | 2.89M | } |
461 | | |
462 | 32.1k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 32.1k | auto result = state->get_sink_local_state_result(); |
464 | 32.1k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 32.1k | return result.value()->terminate(state); |
468 | 32.1k | } |
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 | 341k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 341k | std::string op_name = "UNKNOWN_SINK"; |
484 | 341k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 342k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 342k | op_name = it->second; |
488 | 342k | } |
489 | 341k | _name = op_name + "_OPERATOR"; |
490 | 341k | return Status::OK(); |
491 | 341k | } |
492 | | |
493 | 291k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 291k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 291k | _nereids_id = tnode.nereids_id; |
496 | 291k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 291k | _name = substr + "_SINK_OPERATOR"; |
498 | 291k | return Status::OK(); |
499 | 291k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.77M | LocalSinkStateInfo& info) { |
504 | 1.77M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.77M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.77M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.77M | return Status::OK(); |
508 | 1.77M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 117k | LocalSinkStateInfo& info) { | 504 | 117k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 117k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 117k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 117k | return Status::OK(); | 508 | 117k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 430k | LocalSinkStateInfo& info) { | 504 | 430k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 430k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 430k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 430k | return Status::OK(); | 508 | 430k | } |
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 | 374 | LocalSinkStateInfo& info) { | 504 | 374 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 374 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 374 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 374 | return Status::OK(); | 508 | 374 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 46.8k | LocalSinkStateInfo& info) { | 504 | 46.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 46.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 46.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 46.8k | return Status::OK(); | 508 | 46.8k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 66 | LocalSinkStateInfo& info) { | 504 | 66 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 66 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 66 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 66 | return Status::OK(); | 508 | 66 | } |
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 | 8.02k | LocalSinkStateInfo& info) { | 504 | 8.02k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.02k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.02k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.02k | return Status::OK(); | 508 | 8.02k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9 | LocalSinkStateInfo& info) { | 504 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9 | return Status::OK(); | 508 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 195k | LocalSinkStateInfo& info) { | 504 | 195k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 195k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 195k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 195k | return Status::OK(); | 508 | 195k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 33 | LocalSinkStateInfo& info) { | 504 | 33 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 33 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 33 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 33 | return Status::OK(); | 508 | 33 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 239k | LocalSinkStateInfo& info) { | 504 | 239k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 239k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 239k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 239k | return Status::OK(); | 508 | 239k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 90.1k | LocalSinkStateInfo& info) { | 504 | 90.1k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 90.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 90.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 90.1k | return Status::OK(); | 508 | 90.1k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 98.4k | LocalSinkStateInfo& info) { | 504 | 98.4k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 98.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 98.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 98.4k | return Status::OK(); | 508 | 98.4k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 238 | LocalSinkStateInfo& info) { | 504 | 238 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 238 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 238 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 238 | return Status::OK(); | 508 | 238 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 512k | LocalSinkStateInfo& info) { | 504 | 512k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 512k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 512k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 512k | return Status::OK(); | 508 | 512k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 7.29k | LocalSinkStateInfo& info) { | 504 | 7.29k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 7.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 7.29k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 7.29k | return Status::OK(); | 508 | 7.29k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.73k | LocalSinkStateInfo& info) { | 504 | 8.73k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.73k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.73k | return Status::OK(); | 508 | 8.73k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.54k | LocalSinkStateInfo& info) { | 504 | 2.54k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.54k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.54k | return Status::OK(); | 508 | 2.54k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 310 | LocalSinkStateInfo& info) { | 504 | 310 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 310 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 310 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 310 | return Status::OK(); | 508 | 310 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.80k | LocalSinkStateInfo& info) { | 504 | 4.80k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.80k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.80k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.80k | return Status::OK(); | 508 | 4.80k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.54k | LocalSinkStateInfo& info) { | 504 | 2.54k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.54k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.54k | return Status::OK(); | 508 | 2.54k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.64k | LocalSinkStateInfo& info) { | 504 | 2.64k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.64k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.64k | return Status::OK(); | 508 | 2.64k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.48k | LocalSinkStateInfo& info) { | 504 | 2.48k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.48k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.48k | return Status::OK(); | 508 | 2.48k | } |
_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 | 565 | LocalSinkStateInfo& info) { | 504 | 565 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 565 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 565 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 565 | return Status::OK(); | 508 | 565 | } |
_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 | 107 | LocalSinkStateInfo& info) { | 504 | 107 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 107 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 107 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 107 | return Status::OK(); | 508 | 107 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.40M | 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.40M | } else { |
519 | 1.40M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.40M | ss->id = operator_id(); |
521 | 1.40M | for (auto& dest : dests_id()) { |
522 | 1.39M | ss->related_op_ids.insert(dest); |
523 | 1.39M | } |
524 | 1.40M | return ss; |
525 | 1.40M | } |
526 | 1.40M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 101k | 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 | 101k | } else { | 519 | 101k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 101k | ss->id = operator_id(); | 521 | 101k | for (auto& dest : dests_id()) { | 522 | 101k | ss->related_op_ids.insert(dest); | 523 | 101k | } | 524 | 101k | return ss; | 525 | 101k | } | 526 | 101k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 429k | 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 | 429k | } else { | 519 | 429k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 429k | ss->id = operator_id(); | 521 | 429k | for (auto& dest : dests_id()) { | 522 | 428k | ss->related_op_ids.insert(dest); | 523 | 428k | } | 524 | 429k | return ss; | 525 | 429k | } | 526 | 429k | } |
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 | 379 | 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 | 379 | } else { | 519 | 379 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 379 | ss->id = operator_id(); | 521 | 379 | for (auto& dest : dests_id()) { | 522 | 378 | ss->related_op_ids.insert(dest); | 523 | 378 | } | 524 | 379 | return ss; | 525 | 379 | } | 526 | 379 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 46.9k | 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 | 46.9k | } else { | 519 | 46.9k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 46.9k | ss->id = operator_id(); | 521 | 46.9k | for (auto& dest : dests_id()) { | 522 | 46.5k | ss->related_op_ids.insert(dest); | 523 | 46.5k | } | 524 | 46.9k | return ss; | 525 | 46.9k | } | 526 | 46.9k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 66 | 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 | 66 | } else { | 519 | 66 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 66 | ss->id = operator_id(); | 521 | 66 | for (auto& dest : dests_id()) { | 522 | 66 | ss->related_op_ids.insert(dest); | 523 | 66 | } | 524 | 66 | return ss; | 525 | 66 | } | 526 | 66 | } |
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 | 8.04k | 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 | 8.04k | } else { | 519 | 8.04k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.04k | ss->id = operator_id(); | 521 | 8.05k | for (auto& dest : dests_id()) { | 522 | 8.05k | ss->related_op_ids.insert(dest); | 523 | 8.05k | } | 524 | 8.04k | return ss; | 525 | 8.04k | } | 526 | 8.04k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 9 | 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 | 9 | } else { | 519 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 9 | ss->id = operator_id(); | 521 | 9 | for (auto& dest : dests_id()) { | 522 | 9 | ss->related_op_ids.insert(dest); | 523 | 9 | } | 524 | 9 | return ss; | 525 | 9 | } | 526 | 9 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 195k | 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 | 195k | } else { | 519 | 195k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 195k | ss->id = operator_id(); | 521 | 195k | for (auto& dest : dests_id()) { | 522 | 195k | ss->related_op_ids.insert(dest); | 523 | 195k | } | 524 | 195k | return ss; | 525 | 195k | } | 526 | 195k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 35 | 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 | 35 | } else { | 519 | 35 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 35 | ss->id = operator_id(); | 521 | 35 | for (auto& dest : dests_id()) { | 522 | 35 | ss->related_op_ids.insert(dest); | 523 | 35 | } | 524 | 35 | return ss; | 525 | 35 | } | 526 | 35 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 90.3k | 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 | 90.3k | } else { | 519 | 90.3k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 90.3k | ss->id = operator_id(); | 521 | 90.4k | for (auto& dest : dests_id()) { | 522 | 90.4k | ss->related_op_ids.insert(dest); | 523 | 90.4k | } | 524 | 90.3k | return ss; | 525 | 90.3k | } | 526 | 90.3k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 237 | 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 | 237 | } else { | 519 | 237 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 237 | ss->id = operator_id(); | 521 | 237 | for (auto& dest : dests_id()) { | 522 | 237 | ss->related_op_ids.insert(dest); | 523 | 237 | } | 524 | 237 | return ss; | 525 | 237 | } | 526 | 237 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 512k | 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 | 512k | } else { | 519 | 512k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 512k | ss->id = operator_id(); | 521 | 512k | for (auto& dest : dests_id()) { | 522 | 505k | ss->related_op_ids.insert(dest); | 523 | 505k | } | 524 | 512k | return ss; | 525 | 512k | } | 526 | 512k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 7.30k | 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.30k | } else { | 519 | 7.30k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 7.30k | ss->id = operator_id(); | 521 | 7.30k | for (auto& dest : dests_id()) { | 522 | 7.30k | ss->related_op_ids.insert(dest); | 523 | 7.30k | } | 524 | 7.30k | return ss; | 525 | 7.30k | } | 526 | 7.30k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 412 | 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 | 412 | } else { | 519 | 412 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 412 | ss->id = operator_id(); | 521 | 412 | for (auto& dest : dests_id()) { | 522 | 412 | ss->related_op_ids.insert(dest); | 523 | 412 | } | 524 | 412 | return ss; | 525 | 412 | } | 526 | 412 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.64k | 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.64k | } else { | 519 | 2.64k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.64k | ss->id = operator_id(); | 521 | 2.65k | for (auto& dest : dests_id()) { | 522 | 2.65k | ss->related_op_ids.insert(dest); | 523 | 2.65k | } | 524 | 2.64k | return ss; | 525 | 2.64k | } | 526 | 2.64k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.50k | 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.50k | } else { | 519 | 2.50k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.50k | ss->id = operator_id(); | 521 | 2.51k | for (auto& dest : dests_id()) { | 522 | 2.51k | ss->related_op_ids.insert(dest); | 523 | 2.51k | } | 524 | 2.50k | return ss; | 525 | 2.50k | } | 526 | 2.50k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 567 | 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 | 567 | } else { | 519 | 567 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 567 | ss->id = operator_id(); | 521 | 567 | for (auto& dest : dests_id()) { | 522 | 564 | ss->related_op_ids.insert(dest); | 523 | 564 | } | 524 | 567 | return ss; | 525 | 567 | } | 526 | 567 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 107 | 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 | 107 | } else { | 519 | 107 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 107 | ss->id = operator_id(); | 521 | 107 | for (auto& dest : dests_id()) { | 522 | 107 | ss->related_op_ids.insert(dest); | 523 | 107 | } | 524 | 107 | return ss; | 525 | 107 | } | 526 | 107 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.15M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.15M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.15M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.15M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.15M | return Status::OK(); |
534 | 2.15M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 69.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 69.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 69.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 69.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 69.7k | return Status::OK(); | 534 | 69.7k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 241k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 241k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 241k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 241k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 241k | return Status::OK(); | 534 | 241k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 128 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 128 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 128 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 128 | return Status::OK(); | 534 | 128 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.08k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.08k | return Status::OK(); | 534 | 3.08k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.99k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.99k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.99k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.99k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.99k | return Status::OK(); | 534 | 7.99k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.84k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.84k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.84k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.84k | return Status::OK(); | 534 | 7.84k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 26 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 26 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 26 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 26 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 26 | return Status::OK(); | 534 | 26 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 187k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 187k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 187k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 187k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 187k | return Status::OK(); | 534 | 187k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 90.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 90.1k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 90.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 90.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 90.1k | return Status::OK(); | 534 | 90.1k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 99.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 99.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 99.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 99.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 99.5k | return Status::OK(); | 534 | 99.5k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 228 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 228 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 228 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 228 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 228 | return Status::OK(); | 534 | 228 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.32k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.32k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.32k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.32k | return Status::OK(); | 534 | 3.32k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 312k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 312k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 312k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 312k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 312k | return Status::OK(); | 534 | 312k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.45k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.45k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.45k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.45k | return Status::OK(); | 534 | 1.45k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.29k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.29k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.29k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.29k | return Status::OK(); | 534 | 7.29k | } |
_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.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 53.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 53.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 53.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 53.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 53.7k | return Status::OK(); | 534 | 53.7k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.31k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.31k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.31k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.31k | return Status::OK(); | 534 | 6.31k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 310 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 310 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 310 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 310 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 310 | return Status::OK(); | 534 | 310 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.61k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.61k | return Status::OK(); | 534 | 2.61k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.47k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.47k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.47k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.47k | return Status::OK(); | 534 | 2.47k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 316 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 316 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 316 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 316 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 316 | return Status::OK(); | 534 | 316 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.5k | return Status::OK(); | 534 | 10.5k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 670k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 670k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 670k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 670k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 670k | return Status::OK(); | 534 | 670k | } |
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 | 169 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 169 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 169 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 169 | return Status::OK(); | 534 | 169 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.20k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.20k | return Status::OK(); | 534 | 2.20k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 787 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 787 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 787 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 787 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 787 | return Status::OK(); | 534 | 787 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.19k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.19k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.19k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.19k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.19k | return Status::OK(); | 534 | 1.19k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.13k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.13k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.13k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.13k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.13k | return Status::OK(); | 534 | 6.13k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 364k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 364k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 364k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 364k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 364k | return Status::OK(); | 534 | 364k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.76M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.14M | : _num_rows_returned(0), |
542 | 2.14M | _rows_returned_counter(nullptr), |
543 | 2.14M | _parent(parent), |
544 | 2.14M | _state(state), |
545 | 2.14M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.16M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.16M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.16M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.16M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.16M | _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 | 2.16M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.16M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.16M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.16M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.16M | if constexpr (!is_fake_shared) { |
560 | 1.21M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 776k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 776k | .first.get() |
563 | 776k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 776k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 776k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 776k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 776k | } else if (info.shared_state) { |
569 | 360k | 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 | 360k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 360k | _dependency = _shared_state->create_source_dependency( |
576 | 360k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 360k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 360k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 360k | } else { |
580 | 74.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 12.7k | DCHECK(false); |
582 | 12.7k | } |
583 | 74.3k | } |
584 | 1.21M | } |
585 | | |
586 | 2.16M | 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 | 2.16M | _rows_returned_counter = |
591 | 2.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.16M | _blocks_returned_counter = |
593 | 2.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.16M | _output_block_bytes_counter = |
595 | 2.16M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.16M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.16M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.16M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.16M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.16M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.16M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.16M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.16M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.16M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.16M | _memory_used_counter = |
606 | 2.16M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.16M | _common_profile->add_info_string("IsColocate", |
608 | 2.16M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.16M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.16M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.16M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.16M | return Status::OK(); |
613 | 2.16M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 69.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 69.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 69.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 69.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 69.8k | _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 | 69.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 69.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 69.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 69.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 69.8k | if constexpr (!is_fake_shared) { | 560 | 69.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 15.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 15.7k | .first.get() | 563 | 15.7k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 15.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 15.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 15.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 54.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 | 52.8k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 52.8k | _dependency = _shared_state->create_source_dependency( | 576 | 52.8k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 52.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 52.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 52.8k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.28k | } | 584 | 69.8k | } | 585 | | | 586 | 69.8k | 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 | 69.8k | _rows_returned_counter = | 591 | 69.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 69.8k | _blocks_returned_counter = | 593 | 69.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 69.8k | _output_block_bytes_counter = | 595 | 69.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 69.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 69.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 69.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 69.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 69.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 69.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 69.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 69.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 69.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 69.8k | _memory_used_counter = | 606 | 69.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 69.8k | _common_profile->add_info_string("IsColocate", | 608 | 69.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 69.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 69.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 69.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 69.8k | return Status::OK(); | 613 | 69.8k | } |
_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 | 195k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 195k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 195k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 195k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 195k | _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 | 195k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 195k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 195k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 195k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 195k | if constexpr (!is_fake_shared) { | 560 | 195k | 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 | 195k | } 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 | 187k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 187k | _dependency = _shared_state->create_source_dependency( | 576 | 187k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 187k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 187k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 187k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 7.65k | } | 584 | 195k | } | 585 | | | 586 | 195k | 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 | 195k | _rows_returned_counter = | 591 | 195k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 195k | _blocks_returned_counter = | 593 | 195k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 195k | _output_block_bytes_counter = | 595 | 195k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 195k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 195k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 195k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 195k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 195k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 195k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 195k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 195k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 195k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 195k | _memory_used_counter = | 606 | 195k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 195k | _common_profile->add_info_string("IsColocate", | 608 | 195k | std::to_string(_parent->is_colocated_operator())); | 609 | 195k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 195k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 195k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 195k | return Status::OK(); | 613 | 195k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_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_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 7.30k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 7.30k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 7.30k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 7.30k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 7.30k | _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.30k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 7.30k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 7.30k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 7.30k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 7.30k | if constexpr (!is_fake_shared) { | 560 | 7.30k | 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.30k | } 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.26k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 7.26k | _dependency = _shared_state->create_source_dependency( | 576 | 7.26k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 7.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 7.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 7.26k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 37 | } | 584 | 7.30k | } | 585 | | | 586 | 7.30k | 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.30k | _rows_returned_counter = | 591 | 7.30k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 7.30k | _blocks_returned_counter = | 593 | 7.30k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 7.30k | _output_block_bytes_counter = | 595 | 7.30k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.30k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 7.30k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 7.30k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 7.30k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 7.30k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 7.30k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 7.30k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 7.30k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 7.30k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 7.30k | _memory_used_counter = | 606 | 7.30k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 7.30k | _common_profile->add_info_string("IsColocate", | 608 | 7.30k | std::to_string(_parent->is_colocated_operator())); | 609 | 7.30k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 7.30k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 7.30k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 7.30k | return Status::OK(); | 613 | 7.30k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.06k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.06k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.06k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.06k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.06k | _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 | 8.06k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.06k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.06k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.06k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.06k | if constexpr (!is_fake_shared) { | 560 | 8.06k | 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 | 8.06k | } 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.94k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 7.94k | _dependency = _shared_state->create_source_dependency( | 576 | 7.94k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 7.94k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 7.94k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 7.94k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 115 | } | 584 | 8.06k | } | 585 | | | 586 | 8.06k | 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 | 8.06k | _rows_returned_counter = | 591 | 8.06k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.06k | _blocks_returned_counter = | 593 | 8.06k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.06k | _output_block_bytes_counter = | 595 | 8.06k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.06k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.06k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.06k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.06k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.06k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.06k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.06k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.06k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.06k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.06k | _memory_used_counter = | 606 | 8.06k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.06k | _common_profile->add_info_string("IsColocate", | 608 | 8.06k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.06k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.06k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.06k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.06k | return Status::OK(); | 613 | 8.06k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 90.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 90.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 90.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 90.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 90.4k | _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 | 90.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 90.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 90.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 90.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 90.4k | if constexpr (!is_fake_shared) { | 560 | 90.4k | 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 | 90.4k | } 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 | 88.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 88.6k | _dependency = _shared_state->create_source_dependency( | 576 | 88.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 88.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 88.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 88.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.78k | } | 584 | 90.4k | } | 585 | | | 586 | 90.4k | 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 | 90.4k | _rows_returned_counter = | 591 | 90.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 90.4k | _blocks_returned_counter = | 593 | 90.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 90.4k | _output_block_bytes_counter = | 595 | 90.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 90.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 90.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 90.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 90.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 90.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 90.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 90.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 90.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 90.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 90.4k | _memory_used_counter = | 606 | 90.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 90.4k | _common_profile->add_info_string("IsColocate", | 608 | 90.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 90.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 90.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 90.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 90.4k | return Status::OK(); | 613 | 90.4k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 99.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 99.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 99.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 99.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 99.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 | 99.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 99.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 99.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 99.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 99.5k | if constexpr (!is_fake_shared) { | 560 | 99.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 99.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 99.1k | .first.get() | 563 | 99.1k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 99.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 99.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 99.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 99.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 | 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 | 410 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 410 | } | 584 | 99.5k | } | 585 | | | 586 | 99.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 | 99.5k | _rows_returned_counter = | 591 | 99.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 99.5k | _blocks_returned_counter = | 593 | 99.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 99.5k | _output_block_bytes_counter = | 595 | 99.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 99.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 99.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 99.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 99.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 99.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 99.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 99.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 99.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 99.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 99.5k | _memory_used_counter = | 606 | 99.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 99.5k | _common_profile->add_info_string("IsColocate", | 608 | 99.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 99.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 99.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 99.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 99.5k | return Status::OK(); | 613 | 99.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 228 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 228 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 228 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 228 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 228 | _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 | 228 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 228 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 228 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 228 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 228 | if constexpr (!is_fake_shared) { | 560 | 228 | 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 | 228 | } 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 | 228 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 228 | _dependency = _shared_state->create_source_dependency( | 576 | 228 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 228 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 228 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 228 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 228 | } | 585 | | | 586 | 228 | 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 | 228 | _rows_returned_counter = | 591 | 228 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 228 | _blocks_returned_counter = | 593 | 228 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 228 | _output_block_bytes_counter = | 595 | 228 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 228 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 228 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 228 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 228 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 228 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 228 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 228 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 228 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 228 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 228 | _memory_used_counter = | 606 | 228 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 228 | _common_profile->add_info_string("IsColocate", | 608 | 228 | std::to_string(_parent->is_colocated_operator())); | 609 | 228 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 228 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 228 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 228 | return Status::OK(); | 613 | 228 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 948k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 948k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 948k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 948k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 948k | _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 | 948k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 948k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 948k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 948k | 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 | 948k | 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 | 948k | _rows_returned_counter = | 591 | 948k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 948k | _blocks_returned_counter = | 593 | 948k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 948k | _output_block_bytes_counter = | 595 | 948k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 948k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 948k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 948k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 948k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 948k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 948k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 948k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 948k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 948k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 948k | _memory_used_counter = | 606 | 948k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 948k | _common_profile->add_info_string("IsColocate", | 608 | 948k | std::to_string(_parent->is_colocated_operator())); | 609 | 948k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 948k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 948k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 948k | return Status::OK(); | 613 | 948k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 53.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 53.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 53.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 53.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 53.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 | 53.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 53.6k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 53.6k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 53.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 53.6k | if constexpr (!is_fake_shared) { | 560 | 53.6k | 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 | 53.6k | } 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 | 3.68k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 3.68k | _dependency = _shared_state->create_source_dependency( | 576 | 3.68k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 3.68k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 3.68k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 49.9k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 49.9k | } | 584 | 53.6k | } | 585 | | | 586 | 53.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 | 53.6k | _rows_returned_counter = | 591 | 53.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 53.6k | _blocks_returned_counter = | 593 | 53.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 53.6k | _output_block_bytes_counter = | 595 | 53.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 53.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 53.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 53.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 53.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 53.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 53.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 53.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 53.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 53.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 53.6k | _memory_used_counter = | 606 | 53.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 53.6k | _common_profile->add_info_string("IsColocate", | 608 | 53.6k | std::to_string(_parent->is_colocated_operator())); | 609 | 53.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 53.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 53.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 53.6k | return Status::OK(); | 613 | 53.6k | } |
_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 | 6.31k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.31k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.31k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.31k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.31k | _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 | 6.31k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.31k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.31k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.31k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.31k | if constexpr (!is_fake_shared) { | 560 | 6.31k | 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 | 6.31k | } 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 | 6.30k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.30k | _dependency = _shared_state->create_source_dependency( | 576 | 6.30k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.30k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.30k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.30k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 12 | } | 584 | 6.31k | } | 585 | | | 586 | 6.31k | 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 | 6.31k | _rows_returned_counter = | 591 | 6.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.31k | _blocks_returned_counter = | 593 | 6.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.31k | _output_block_bytes_counter = | 595 | 6.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.31k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.31k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.31k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.31k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.31k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.31k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.31k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.31k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.31k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.31k | _memory_used_counter = | 606 | 6.31k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.31k | _common_profile->add_info_string("IsColocate", | 608 | 6.31k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.31k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.31k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.31k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.31k | return Status::OK(); | 613 | 6.31k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 412 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 412 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 412 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 412 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 412 | _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 | 412 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 412 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 412 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 412 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 412 | if constexpr (!is_fake_shared) { | 560 | 412 | 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 | 412 | } 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 | 412 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 412 | _dependency = _shared_state->create_source_dependency( | 576 | 412 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 412 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 412 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 412 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 412 | } | 585 | | | 586 | 412 | 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 | 412 | _rows_returned_counter = | 591 | 412 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 412 | _blocks_returned_counter = | 593 | 412 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 412 | _output_block_bytes_counter = | 595 | 412 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 412 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 412 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 412 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 412 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 412 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 412 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 412 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 412 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 412 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 412 | _memory_used_counter = | 606 | 412 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 412 | _common_profile->add_info_string("IsColocate", | 608 | 412 | std::to_string(_parent->is_colocated_operator())); | 609 | 412 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 412 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 412 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 412 | return Status::OK(); | 613 | 412 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.12k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.12k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.12k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.12k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.12k | _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.12k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.12k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.12k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.12k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.12k | if constexpr (!is_fake_shared) { | 560 | 5.12k | 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.12k | } 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.78k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.78k | _dependency = _shared_state->create_source_dependency( | 576 | 4.78k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.78k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.78k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.78k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 343 | } | 584 | 5.12k | } | 585 | | | 586 | 5.12k | 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.12k | _rows_returned_counter = | 591 | 5.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.12k | _blocks_returned_counter = | 593 | 5.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.12k | _output_block_bytes_counter = | 595 | 5.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.12k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.12k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.12k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.12k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.12k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.12k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.12k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.12k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.12k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.12k | _memory_used_counter = | 606 | 5.12k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.12k | _common_profile->add_info_string("IsColocate", | 608 | 5.12k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.12k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.12k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.12k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.12k | return Status::OK(); | 613 | 5.12k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 674k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 674k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 674k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 674k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 674k | _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 | 674k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 674k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 674k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 674k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 674k | if constexpr (!is_fake_shared) { | 560 | 674k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 661k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 661k | .first.get() | 563 | 661k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 661k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 661k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 661k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 661k | } 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 | 12.7k | } else { | 580 | 12.7k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 12.7k | DCHECK(false); | 582 | 12.7k | } | 583 | 12.7k | } | 584 | 674k | } | 585 | | | 586 | 674k | 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 | 674k | _rows_returned_counter = | 591 | 674k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 674k | _blocks_returned_counter = | 593 | 674k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 674k | _output_block_bytes_counter = | 595 | 674k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 674k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 674k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 674k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 674k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 674k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 674k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 674k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 674k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 674k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 674k | _memory_used_counter = | 606 | 674k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 674k | _common_profile->add_info_string("IsColocate", | 608 | 674k | std::to_string(_parent->is_colocated_operator())); | 609 | 674k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 674k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 674k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 674k | return Status::OK(); | 613 | 674k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 169 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 169 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 169 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 169 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 169 | _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 | 169 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 169 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 169 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 169 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 169 | if constexpr (!is_fake_shared) { | 560 | 169 | 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 | 169 | } 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 | 169 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 169 | _dependency = _shared_state->create_source_dependency( | 576 | 169 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 169 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 169 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 169 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 169 | } | 585 | | | 586 | 169 | 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 | 169 | _rows_returned_counter = | 591 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 169 | _blocks_returned_counter = | 593 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 169 | _output_block_bytes_counter = | 595 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 169 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 169 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 169 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 169 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 169 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 169 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 169 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 169 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 169 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 169 | _memory_used_counter = | 606 | 169 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 169 | _common_profile->add_info_string("IsColocate", | 608 | 169 | std::to_string(_parent->is_colocated_operator())); | 609 | 169 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 169 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 169 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 169 | return Status::OK(); | 613 | 169 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 2.17M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.17M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.47M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 304k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 304k | } |
621 | 2.17M | if (_parent->has_projection()) { |
622 | 378k | const auto& projection = *_parent->_projection; |
623 | 378k | _projections.resize(projection.projections.size()); |
624 | 2.36M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.98M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.98M | } |
627 | 378k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 393k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 14.1k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 199k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 185k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 185k | state, _intermediate_projections[i][j])); |
633 | 185k | } |
634 | 14.1k | } |
635 | 378k | } |
636 | 2.17M | return Status::OK(); |
637 | 2.17M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 70.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 70.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 71.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.52k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.52k | } | 621 | 70.2k | if (_parent->has_projection()) { | 622 | 70.2k | const auto& projection = *_parent->_projection; | 623 | 70.2k | _projections.resize(projection.projections.size()); | 624 | 382k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 312k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 312k | } | 627 | 70.2k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 76.8k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.58k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 151k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 145k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 145k | state, _intermediate_projections[i][j])); | 633 | 145k | } | 634 | 6.58k | } | 635 | 70.2k | } | 636 | 70.2k | return Status::OK(); | 637 | 70.2k | } |
_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 | 196k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 196k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 196k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 196k | if (_parent->has_projection()) { | 622 | 79 | const auto& projection = *_parent->_projection; | 623 | 79 | _projections.resize(projection.projections.size()); | 624 | 400 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 321 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 321 | } | 627 | 79 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 79 | 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 | 79 | } | 636 | 196k | return Status::OK(); | 637 | 196k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 26 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 26 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 26 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 26 | 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 | 26 | return Status::OK(); | 637 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 7.31k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 7.31k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 7.44k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 130 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 130 | } | 621 | 7.31k | if (_parent->has_projection()) { | 622 | 7.31k | const auto& projection = *_parent->_projection; | 623 | 7.31k | _projections.resize(projection.projections.size()); | 624 | 33.3k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 25.9k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 25.9k | } | 627 | 7.31k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 7.38k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 65 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 539 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 474 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 474 | state, _intermediate_projections[i][j])); | 633 | 474 | } | 634 | 65 | } | 635 | 7.31k | } | 636 | 7.31k | return Status::OK(); | 637 | 7.31k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.08k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.08k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.83k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 754 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 754 | } | 621 | 8.08k | if (_parent->has_projection()) { | 622 | 4.40k | const auto& projection = *_parent->_projection; | 623 | 4.40k | _projections.resize(projection.projections.size()); | 624 | 18.4k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 14.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 14.0k | } | 627 | 4.40k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.49k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 89 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 666 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 577 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 577 | state, _intermediate_projections[i][j])); | 633 | 577 | } | 634 | 89 | } | 635 | 4.40k | } | 636 | 8.08k | return Status::OK(); | 637 | 8.08k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 90.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 90.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 92.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.46k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.46k | } | 621 | 90.7k | if (_parent->has_projection()) { | 622 | 31.3k | const auto& projection = *_parent->_projection; | 623 | 31.3k | _projections.resize(projection.projections.size()); | 624 | 281k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 250k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 250k | } | 627 | 31.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 31.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 178 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.03k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 855 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 855 | state, _intermediate_projections[i][j])); | 633 | 855 | } | 634 | 178 | } | 635 | 31.3k | } | 636 | 90.7k | return Status::OK(); | 637 | 90.7k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 99.5k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 99.5k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 99.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 34 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 34 | } | 621 | 99.5k | if (_parent->has_projection()) { | 622 | 204 | const auto& projection = *_parent->_projection; | 623 | 204 | _projections.resize(projection.projections.size()); | 624 | 761 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 557 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 557 | } | 627 | 204 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 204 | 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 | 204 | } | 636 | 99.5k | return Status::OK(); | 637 | 99.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 232 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 232 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 232 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 232 | if (_parent->has_projection()) { | 622 | 208 | const auto& projection = *_parent->_projection; | 623 | 208 | _projections.resize(projection.projections.size()); | 624 | 624 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 416 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 416 | } | 627 | 208 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 208 | 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 | 208 | } | 636 | 232 | return Status::OK(); | 637 | 232 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 953k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 953k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.25M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 299k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 299k | } | 621 | 953k | if (_parent->has_projection()) { | 622 | 253k | const auto& projection = *_parent->_projection; | 623 | 253k | _projections.resize(projection.projections.size()); | 624 | 1.53M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.28M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.28M | } | 627 | 253k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 260k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 7.09k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 43.2k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 36.1k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 36.1k | state, _intermediate_projections[i][j])); | 633 | 36.1k | } | 634 | 7.09k | } | 635 | 253k | } | 636 | 953k | return Status::OK(); | 637 | 953k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 53.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 53.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 53.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 53.8k | if (_parent->has_projection()) { | 622 | 11.2k | const auto& projection = *_parent->_projection; | 623 | 11.2k | _projections.resize(projection.projections.size()); | 624 | 110k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 98.8k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 98.8k | } | 627 | 11.2k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.3k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 116 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 2.66k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2.54k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2.54k | state, _intermediate_projections[i][j])); | 633 | 2.54k | } | 634 | 116 | } | 635 | 11.2k | } | 636 | 53.8k | return Status::OK(); | 637 | 53.8k | } |
_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 | 6.28k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.28k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 7.06k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 788 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 788 | } | 621 | 6.28k | 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 | 6.28k | return Status::OK(); | 637 | 6.28k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 412 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 412 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 412 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 412 | 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 | 412 | return Status::OK(); | 637 | 412 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.25k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.25k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.25k | 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.25k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 228 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 168 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 168 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | 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 | 60 | } | 636 | 5.25k | return Status::OK(); | 637 | 5.25k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 678k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 678k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 678k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 678k | 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 | 678k | return Status::OK(); | 637 | 678k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 169 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 169 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 169 | if (_parent->has_projection()) { | 622 | 166 | const auto& projection = *_parent->_projection; | 623 | 166 | _projections.resize(projection.projections.size()); | 624 | 491 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 166 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 169 | 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 | 166 | } | 636 | 169 | return Status::OK(); | 637 | 169 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 8.96k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 8.96k | if (_terminated) { |
642 | 4 | return Status::OK(); |
643 | 4 | } |
644 | 8.96k | _terminated = true; |
645 | 8.96k | return Status::OK(); |
646 | 8.96k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 471 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 471 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 471 | _terminated = true; | 645 | 471 | return Status::OK(); | 646 | 471 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 10 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 10 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 10 | _terminated = true; | 645 | 10 | return Status::OK(); | 646 | 10 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 25 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 25 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 25 | _terminated = true; | 645 | 25 | return Status::OK(); | 646 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_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 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 138 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 138 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 138 | _terminated = true; | 645 | 138 | return Status::OK(); | 646 | 138 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 2 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 2 | _terminated = true; | 645 | 2 | return Status::OK(); | 646 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 6.98k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 6.98k | if (_terminated) { | 642 | 2 | return Status::OK(); | 643 | 2 | } | 644 | 6.97k | _terminated = true; | 645 | 6.97k | return Status::OK(); | 646 | 6.98k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 35 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 35 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 35 | _terminated = true; | 645 | 35 | return Status::OK(); | 646 | 35 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 6 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 6 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 6 | _terminated = true; | 645 | 6 | return Status::OK(); | 646 | 6 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 170 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 170 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 170 | _terminated = true; | 645 | 170 | return Status::OK(); | 646 | 170 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.09k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.09k | if (_terminated) { | 642 | 2 | return Status::OK(); | 643 | 2 | } | 644 | 1.08k | _terminated = true; | 645 | 1.08k | return Status::OK(); | 646 | 1.09k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 34 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 34 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 34 | _terminated = true; | 645 | 34 | return Status::OK(); | 646 | 34 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.39M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.39M | if (_closed) { |
651 | 225k | return Status::OK(); |
652 | 225k | } |
653 | 2.17M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.21M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.21M | } |
656 | 2.17M | _closed = true; |
657 | 2.17M | return Status::OK(); |
658 | 2.39M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 70.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 70.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 70.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 70.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 70.1k | } | 656 | 70.1k | _closed = true; | 657 | 70.1k | return Status::OK(); | 658 | 70.1k | } |
_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 | 390k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 390k | if (_closed) { | 651 | 195k | return Status::OK(); | 652 | 195k | } | 653 | 194k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 194k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 194k | } | 656 | 194k | _closed = true; | 657 | 194k | return Status::OK(); | 658 | 390k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 26 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 26 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 26 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 26 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 26 | } | 656 | 26 | _closed = true; | 657 | 26 | return Status::OK(); | 658 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 7.30k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 7.30k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 7.30k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 7.30k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 7.30k | } | 656 | 7.30k | _closed = true; | 657 | 7.30k | return Status::OK(); | 658 | 7.30k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 16.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 16.2k | if (_closed) { | 651 | 8.18k | return Status::OK(); | 652 | 8.18k | } | 653 | 8.05k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.05k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.05k | } | 656 | 8.05k | _closed = true; | 657 | 8.05k | return Status::OK(); | 658 | 16.2k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 90.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 90.4k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 90.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 90.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 90.4k | } | 656 | 90.4k | _closed = true; | 657 | 90.4k | return Status::OK(); | 658 | 90.4k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 99.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 99.2k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 99.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 99.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 99.2k | } | 656 | 99.2k | _closed = true; | 657 | 99.2k | return Status::OK(); | 658 | 99.2k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 227 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 227 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 227 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 227 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 227 | } | 656 | 227 | _closed = true; | 657 | 227 | return Status::OK(); | 658 | 227 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 969k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 969k | if (_closed) { | 651 | 15.1k | return Status::OK(); | 652 | 15.1k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 954k | _closed = true; | 657 | 954k | return Status::OK(); | 658 | 969k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 53.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 53.8k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 53.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 53.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 53.8k | } | 656 | 53.8k | _closed = true; | 657 | 53.8k | return Status::OK(); | 658 | 53.8k | } |
_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 | 6.26k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.26k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.26k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.26k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.26k | } | 656 | 6.26k | _closed = true; | 657 | 6.26k | return Status::OK(); | 658 | 6.26k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 618 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 618 | if (_closed) { | 651 | 309 | return Status::OK(); | 652 | 309 | } | 653 | 309 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 309 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 309 | } | 656 | 309 | _closed = true; | 657 | 309 | return Status::OK(); | 658 | 618 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.9k | if (_closed) { | 651 | 5.74k | return Status::OK(); | 652 | 5.74k | } | 653 | 5.24k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.24k | } | 656 | 5.24k | _closed = true; | 657 | 5.24k | return Status::OK(); | 658 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 680k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 680k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 680k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 680k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 680k | } | 656 | 680k | _closed = true; | 657 | 680k | return Status::OK(); | 658 | 680k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 339 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 339 | if (_closed) { | 651 | 179 | return Status::OK(); | 652 | 179 | } | 653 | 160 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 160 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 160 | } | 656 | 160 | _closed = true; | 657 | 160 | return Status::OK(); | 658 | 339 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.77M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.77M | _operator_profile = |
664 | 1.77M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.77M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.77M | _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.77M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.77M | _operator_profile->add_child(_common_profile, true); |
673 | 1.77M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.77M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.77M | _wait_for_finish_dependency_timer = |
677 | 1.77M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.77M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.77M | if constexpr (!is_fake_shared) { |
680 | 1.26M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.26M | info.shared_state_map.end()) { |
682 | 355k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 239k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 239k | } |
685 | 355k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 355k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 355k | ? 0 |
688 | 355k | : info.task_idx] |
689 | 355k | .get(); |
690 | 355k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 907k | } else { |
692 | 907k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 11 | DCHECK(false); |
694 | 11 | } |
695 | 907k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 907k | _dependency = _shared_state->create_sink_dependency( |
697 | 907k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 907k | } |
699 | 1.26M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.26M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.26M | } |
702 | | |
703 | 1.77M | 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.77M | _rows_input_counter = |
708 | 1.77M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.77M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.77M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.77M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.77M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.77M | _memory_used_counter = |
714 | 1.77M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.77M | _common_profile->add_info_string("IsColocate", |
716 | 1.77M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.77M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.77M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.77M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.77M | return Status::OK(); |
721 | 1.77M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 117k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 117k | _operator_profile = | 664 | 117k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 117k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 117k | _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 | 117k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 117k | _operator_profile->add_child(_common_profile, true); | 673 | 117k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 117k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 117k | _wait_for_finish_dependency_timer = | 677 | 117k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 117k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 117k | if constexpr (!is_fake_shared) { | 680 | 117k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 117k | 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 | 16.0k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 16.0k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 16.0k | ? 0 | 688 | 16.0k | : info.task_idx] | 689 | 16.0k | .get(); | 690 | 16.0k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 101k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 101k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 101k | _dependency = _shared_state->create_sink_dependency( | 697 | 101k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 101k | } | 699 | 117k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 117k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 117k | } | 702 | | | 703 | 117k | 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 | 117k | _rows_input_counter = | 708 | 117k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 117k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 117k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 117k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 117k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 117k | _memory_used_counter = | 714 | 117k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 117k | _common_profile->add_info_string("IsColocate", | 716 | 117k | std::to_string(_parent->is_colocated_operator())); | 717 | 117k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 117k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 117k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 117k | return Status::OK(); | 721 | 117k | } |
_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 | 196k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 196k | _operator_profile = | 664 | 196k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 196k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 196k | _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 | 196k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 196k | _operator_profile->add_child(_common_profile, true); | 673 | 196k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 196k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 196k | _wait_for_finish_dependency_timer = | 677 | 196k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 196k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 196k | if constexpr (!is_fake_shared) { | 680 | 196k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 196k | 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 | 196k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 196k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 196k | _dependency = _shared_state->create_sink_dependency( | 697 | 196k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 196k | } | 699 | 196k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 196k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 196k | } | 702 | | | 703 | 196k | 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 | 196k | _rows_input_counter = | 708 | 196k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 196k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 196k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 196k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 196k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 196k | _memory_used_counter = | 714 | 196k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 196k | _common_profile->add_info_string("IsColocate", | 716 | 196k | std::to_string(_parent->is_colocated_operator())); | 717 | 196k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 196k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 196k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 196k | return Status::OK(); | 721 | 196k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 33 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 33 | _operator_profile = | 664 | 33 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 33 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 33 | _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 | 33 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 33 | _operator_profile->add_child(_common_profile, true); | 673 | 33 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 33 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 33 | _wait_for_finish_dependency_timer = | 677 | 33 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 33 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 33 | if constexpr (!is_fake_shared) { | 680 | 33 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 33 | 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 | 33 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 33 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 33 | _dependency = _shared_state->create_sink_dependency( | 697 | 33 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 33 | } | 699 | 33 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 33 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 33 | } | 702 | | | 703 | 33 | 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 | 33 | _rows_input_counter = | 708 | 33 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 33 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 33 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 33 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 33 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 33 | _memory_used_counter = | 714 | 33 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 33 | _common_profile->add_info_string("IsColocate", | 716 | 33 | std::to_string(_parent->is_colocated_operator())); | 717 | 33 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 33 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 33 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 33 | return Status::OK(); | 721 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 7.30k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 7.30k | _operator_profile = | 664 | 7.30k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 7.30k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 7.30k | _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.30k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 7.30k | _operator_profile->add_child(_common_profile, true); | 673 | 7.30k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 7.30k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 7.30k | _wait_for_finish_dependency_timer = | 677 | 7.30k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 7.30k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 7.30k | if constexpr (!is_fake_shared) { | 680 | 7.30k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 7.30k | 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.30k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 7.30k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 7.30k | _dependency = _shared_state->create_sink_dependency( | 697 | 7.30k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 7.30k | } | 699 | 7.30k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 7.30k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 7.30k | } | 702 | | | 703 | 7.30k | 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.30k | _rows_input_counter = | 708 | 7.30k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 7.30k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 7.30k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 7.30k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 7.30k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 7.30k | _memory_used_counter = | 714 | 7.30k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 7.30k | _common_profile->add_info_string("IsColocate", | 716 | 7.30k | std::to_string(_parent->is_colocated_operator())); | 717 | 7.30k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 7.30k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 7.30k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 7.30k | return Status::OK(); | 721 | 7.30k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.05k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.05k | _operator_profile = | 664 | 8.05k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.05k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.05k | _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 | 8.05k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.05k | _operator_profile->add_child(_common_profile, true); | 673 | 8.05k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.05k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.05k | _wait_for_finish_dependency_timer = | 677 | 8.05k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.05k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.05k | if constexpr (!is_fake_shared) { | 680 | 8.05k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.05k | 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 | 8.05k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.05k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.05k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.05k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.05k | } | 699 | 8.05k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.05k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.05k | } | 702 | | | 703 | 8.05k | 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 | 8.05k | _rows_input_counter = | 708 | 8.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.05k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.05k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.05k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.05k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.05k | _memory_used_counter = | 714 | 8.05k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.05k | _common_profile->add_info_string("IsColocate", | 716 | 8.05k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.05k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.05k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.05k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.05k | return Status::OK(); | 721 | 8.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 90.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 90.5k | _operator_profile = | 664 | 90.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 90.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 90.5k | _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 | 90.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 90.5k | _operator_profile->add_child(_common_profile, true); | 673 | 90.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 90.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 90.5k | _wait_for_finish_dependency_timer = | 677 | 90.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 90.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 90.5k | if constexpr (!is_fake_shared) { | 680 | 90.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 90.5k | 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 | 90.5k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 90.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 90.5k | _dependency = _shared_state->create_sink_dependency( | 697 | 90.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 90.5k | } | 699 | 90.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 90.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 90.5k | } | 702 | | | 703 | 90.5k | 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 | 90.5k | _rows_input_counter = | 708 | 90.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 90.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 90.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 90.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 90.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 90.5k | _memory_used_counter = | 714 | 90.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 90.5k | _common_profile->add_info_string("IsColocate", | 716 | 90.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 90.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 90.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 90.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 90.5k | return Status::OK(); | 721 | 90.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 99.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 99.3k | _operator_profile = | 664 | 99.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 99.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 99.3k | _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 | 99.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 99.3k | _operator_profile->add_child(_common_profile, true); | 673 | 99.3k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 99.3k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 99.3k | _wait_for_finish_dependency_timer = | 677 | 99.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 99.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 99.3k | if constexpr (!is_fake_shared) { | 680 | 99.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 99.3k | 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 | 99.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 99.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 99.2k | ? 0 | 688 | 99.2k | : info.task_idx] | 689 | 99.2k | .get(); | 690 | 99.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 99.2k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 60 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 60 | _dependency = _shared_state->create_sink_dependency( | 697 | 60 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 60 | } | 699 | 99.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 99.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 99.3k | } | 702 | | | 703 | 99.3k | 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 | 99.3k | _rows_input_counter = | 708 | 99.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 99.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 99.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 99.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 99.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 99.3k | _memory_used_counter = | 714 | 99.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 99.3k | _common_profile->add_info_string("IsColocate", | 716 | 99.3k | std::to_string(_parent->is_colocated_operator())); | 717 | 99.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 99.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 99.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 99.3k | return Status::OK(); | 721 | 99.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 238 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 238 | _operator_profile = | 664 | 238 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 238 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 238 | _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 | 238 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 238 | _operator_profile->add_child(_common_profile, true); | 673 | 238 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 238 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 238 | _wait_for_finish_dependency_timer = | 677 | 238 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 238 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 238 | if constexpr (!is_fake_shared) { | 680 | 238 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 238 | 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 | 238 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 238 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 238 | _dependency = _shared_state->create_sink_dependency( | 697 | 238 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 238 | } | 699 | 238 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 238 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 238 | } | 702 | | | 703 | 238 | 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 | 238 | _rows_input_counter = | 708 | 238 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 238 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 238 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 238 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 238 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 238 | _memory_used_counter = | 714 | 238 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 238 | _common_profile->add_info_string("IsColocate", | 716 | 238 | std::to_string(_parent->is_colocated_operator())); | 717 | 238 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 238 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 238 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 238 | return Status::OK(); | 721 | 238 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 513k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 513k | _operator_profile = | 664 | 513k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 513k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 513k | _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 | 513k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 513k | _operator_profile->add_child(_common_profile, true); | 673 | 513k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 513k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 513k | _wait_for_finish_dependency_timer = | 677 | 513k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 513k | 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 | 513k | 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 | 513k | _rows_input_counter = | 708 | 513k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 513k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 513k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 513k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 513k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 513k | _memory_used_counter = | 714 | 513k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 513k | _common_profile->add_info_string("IsColocate", | 716 | 513k | std::to_string(_parent->is_colocated_operator())); | 717 | 513k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 513k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 513k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 513k | return Status::OK(); | 721 | 513k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.75k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.75k | _operator_profile = | 664 | 8.75k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.75k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.75k | _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 | 8.75k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.75k | _operator_profile->add_child(_common_profile, true); | 673 | 8.75k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.75k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.75k | _wait_for_finish_dependency_timer = | 677 | 8.75k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.75k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.75k | if constexpr (!is_fake_shared) { | 680 | 8.75k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.75k | 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 | 8.75k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.75k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.75k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.75k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.75k | } | 699 | 8.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.75k | } | 702 | | | 703 | 8.75k | 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 | 8.75k | _rows_input_counter = | 708 | 8.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.75k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.75k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.75k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.75k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.75k | _memory_used_counter = | 714 | 8.75k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.75k | _common_profile->add_info_string("IsColocate", | 716 | 8.75k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.75k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.75k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.75k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.75k | return Status::OK(); | 721 | 8.75k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 412 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 412 | _operator_profile = | 664 | 412 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 412 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 412 | _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 | 412 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 412 | _operator_profile->add_child(_common_profile, true); | 673 | 412 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 412 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 412 | _wait_for_finish_dependency_timer = | 677 | 412 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 412 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 412 | if constexpr (!is_fake_shared) { | 680 | 412 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 412 | 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 | 412 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 412 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 412 | _dependency = _shared_state->create_sink_dependency( | 697 | 412 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 412 | } | 699 | 412 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 412 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 412 | } | 702 | | | 703 | 412 | 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 | 412 | _rows_input_counter = | 708 | 412 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 412 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 412 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 412 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 412 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 412 | _memory_used_counter = | 714 | 412 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 412 | _common_profile->add_info_string("IsColocate", | 716 | 412 | std::to_string(_parent->is_colocated_operator())); | 717 | 412 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 412 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 412 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 412 | return Status::OK(); | 721 | 412 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.53k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.53k | _operator_profile = | 664 | 2.53k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.53k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.53k | _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.53k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.53k | _operator_profile->add_child(_common_profile, true); | 673 | 2.53k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.53k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.53k | _wait_for_finish_dependency_timer = | 677 | 2.53k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.53k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.53k | if constexpr (!is_fake_shared) { | 680 | 2.53k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.53k | 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.53k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.53k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.53k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.53k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.53k | } | 699 | 2.53k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.53k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.53k | } | 702 | | | 703 | 2.53k | 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.53k | _rows_input_counter = | 708 | 2.53k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.53k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.53k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.53k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.53k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.53k | _memory_used_counter = | 714 | 2.53k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.53k | _common_profile->add_info_string("IsColocate", | 716 | 2.53k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.53k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.53k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.53k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.53k | return Status::OK(); | 721 | 2.53k | } |
_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 | 239k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 239k | _operator_profile = | 664 | 239k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 239k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 239k | _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 | 239k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 239k | _operator_profile->add_child(_common_profile, true); | 673 | 239k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 239k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 239k | _wait_for_finish_dependency_timer = | 677 | 239k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 239k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 239k | if constexpr (!is_fake_shared) { | 680 | 239k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 239k | info.shared_state_map.end()) { | 682 | 239k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 239k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 239k | } | 685 | 239k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 239k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 239k | ? 0 | 688 | 239k | : info.task_idx] | 689 | 239k | .get(); | 690 | 239k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 239k | } else { | 692 | 11 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | 11 | DCHECK(false); | 694 | 11 | } | 695 | 11 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 11 | _dependency = _shared_state->create_sink_dependency( | 697 | 11 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 11 | } | 699 | 239k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 239k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 239k | } | 702 | | | 703 | 239k | 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 | 239k | _rows_input_counter = | 708 | 239k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 239k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 239k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 239k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 239k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 239k | _memory_used_counter = | 714 | 239k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 239k | _common_profile->add_info_string("IsColocate", | 716 | 239k | std::to_string(_parent->is_colocated_operator())); | 717 | 239k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 239k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 239k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 239k | return Status::OK(); | 721 | 239k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 478k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 478k | _operator_profile = | 664 | 478k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 478k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 478k | _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 | 478k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 478k | _operator_profile->add_child(_common_profile, true); | 673 | 478k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 478k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 478k | _wait_for_finish_dependency_timer = | 677 | 478k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 478k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 478k | if constexpr (!is_fake_shared) { | 680 | 478k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 478k | 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 | 478k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 478k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 478k | _dependency = _shared_state->create_sink_dependency( | 697 | 478k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 478k | } | 699 | 478k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 478k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 478k | } | 702 | | | 703 | 478k | 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 | 478k | _rows_input_counter = | 708 | 478k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 478k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 478k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 478k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 478k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 478k | _memory_used_counter = | 714 | 478k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 478k | _common_profile->add_info_string("IsColocate", | 716 | 478k | std::to_string(_parent->is_colocated_operator())); | 717 | 478k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 478k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 478k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 478k | return Status::OK(); | 721 | 478k | } |
_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 | 338 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 338 | _operator_profile = | 664 | 338 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 338 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 338 | _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 | 338 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 338 | _operator_profile->add_child(_common_profile, true); | 673 | 338 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 338 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 338 | _wait_for_finish_dependency_timer = | 677 | 338 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 338 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 338 | if constexpr (!is_fake_shared) { | 680 | 338 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 338 | 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 | 338 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 338 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 338 | _dependency = _shared_state->create_sink_dependency( | 697 | 338 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 338 | } | 699 | 338 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 338 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 338 | } | 702 | | | 703 | 338 | 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 | 338 | _rows_input_counter = | 708 | 338 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 338 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 338 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 338 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 338 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 338 | _memory_used_counter = | 714 | 338 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 338 | _common_profile->add_info_string("IsColocate", | 716 | 338 | std::to_string(_parent->is_colocated_operator())); | 717 | 338 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 338 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 338 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 338 | return Status::OK(); | 721 | 338 | } |
|
722 | | |
723 | | template <typename SharedState> |
724 | 1.78M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.78M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.78M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.26M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.26M | } |
731 | 1.78M | _closed = true; |
732 | 1.78M | return Status::OK(); |
733 | 1.78M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 118k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 118k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 118k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 118k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 118k | } | 731 | 118k | _closed = true; | 732 | 118k | return Status::OK(); | 733 | 118k | } |
_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 | 195k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 195k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 195k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 195k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 195k | } | 731 | 195k | _closed = true; | 732 | 195k | return Status::OK(); | 733 | 195k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 24 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 24 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 22 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 22 | } | 731 | 22 | _closed = true; | 732 | 22 | return Status::OK(); | 733 | 24 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 7.28k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 7.28k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 7.28k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 7.28k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 7.28k | } | 731 | 7.28k | _closed = true; | 732 | 7.28k | return Status::OK(); | 733 | 7.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.04k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.04k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.04k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.04k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.04k | } | 731 | 8.04k | _closed = true; | 732 | 8.04k | return Status::OK(); | 733 | 8.04k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 90.2k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 90.2k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 90.2k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 90.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 90.2k | } | 731 | 90.2k | _closed = true; | 732 | 90.2k | return Status::OK(); | 733 | 90.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 99.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 99.0k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 99.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 99.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 99.0k | } | 731 | 99.0k | _closed = true; | 732 | 99.0k | return Status::OK(); | 733 | 99.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 227 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 227 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 227 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 227 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 227 | } | 731 | 227 | _closed = true; | 732 | 227 | return Status::OK(); | 733 | 227 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 517k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 517k | 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 | 517k | _closed = true; | 732 | 517k | return Status::OK(); | 733 | 517k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.75k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.75k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.75k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.75k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.75k | } | 731 | 8.75k | _closed = true; | 732 | 8.75k | return Status::OK(); | 733 | 8.75k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 308 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 308 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 308 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 308 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 308 | } | 731 | 308 | _closed = true; | 732 | 308 | return Status::OK(); | 733 | 308 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.55k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.55k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.55k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.55k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.55k | } | 731 | 2.55k | _closed = true; | 732 | 2.55k | return Status::OK(); | 733 | 2.55k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.6k | } | 731 | 12.6k | _closed = true; | 732 | 12.6k | return Status::OK(); | 733 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 240k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 240k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 240k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 240k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 240k | } | 731 | 240k | _closed = true; | 732 | 240k | return Status::OK(); | 733 | 240k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 482k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 482k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 482k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 482k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 482k | } | 731 | 482k | _closed = true; | 732 | 482k | return Status::OK(); | 733 | 482k | } |
_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 | 338 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 338 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 338 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 338 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 338 | } | 731 | 338 | _closed = true; | 732 | 338 | return Status::OK(); | 733 | 338 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 8.02k | bool* eos) { |
738 | 8.02k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 8.01k | return pull(state, block, eos); |
740 | 8.02k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 38 | bool* eos) { | 738 | 38 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 38 | return pull(state, block, eos); | 740 | 38 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 7.98k | bool* eos) { | 738 | 7.98k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 7.97k | return pull(state, block, eos); | 740 | 7.98k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 643k | bool* eos) { |
745 | 643k | auto& local_state = get_local_state(state); |
746 | 643k | if (need_more_input_data(state)) { |
747 | 612k | local_state._child_block->clear_column_data( |
748 | 612k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 612k | .num_materialized_slots()); |
750 | 612k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 612k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 612k | *eos = local_state._child_eos; |
753 | 612k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 96.6k | return Status::OK(); |
755 | 96.6k | } |
756 | 516k | { |
757 | 516k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 516k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 516k | } |
760 | 516k | } |
761 | | |
762 | 546k | if (!need_more_input_data(state)) { |
763 | 515k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 515k | bool new_eos = false; |
765 | 515k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 515k | if (new_eos) { |
767 | 429k | *eos = true; |
768 | 429k | } else if (!need_more_input_data(state)) { |
769 | 24.0k | *eos = false; |
770 | 24.0k | } |
771 | 515k | } |
772 | 546k | return Status::OK(); |
773 | 546k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 156k | bool* eos) { | 745 | 156k | auto& local_state = get_local_state(state); | 746 | 156k | if (need_more_input_data(state)) { | 747 | 138k | local_state._child_block->clear_column_data( | 748 | 138k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 138k | .num_materialized_slots()); | 750 | 138k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 138k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 138k | *eos = local_state._child_eos; | 753 | 138k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 44.8k | return Status::OK(); | 755 | 44.8k | } | 756 | 93.5k | { | 757 | 93.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 93.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 93.5k | } | 760 | 93.5k | } | 761 | | | 762 | 111k | if (!need_more_input_data(state)) { | 763 | 111k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 111k | bool new_eos = false; | 765 | 111k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 111k | if (new_eos) { | 767 | 45.6k | *eos = true; | 768 | 66.2k | } else if (!need_more_input_data(state)) { | 769 | 11.1k | *eos = false; | 770 | 11.1k | } | 771 | 111k | } | 772 | 111k | return Status::OK(); | 773 | 111k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.53k | bool* eos) { | 745 | 4.53k | auto& local_state = get_local_state(state); | 746 | 4.53k | if (need_more_input_data(state)) { | 747 | 2.63k | local_state._child_block->clear_column_data( | 748 | 2.63k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.63k | .num_materialized_slots()); | 750 | 2.63k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.63k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.63k | *eos = local_state._child_eos; | 753 | 2.63k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 526 | return Status::OK(); | 755 | 526 | } | 756 | 2.10k | { | 757 | 2.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 2.10k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 2.10k | } | 760 | 2.10k | } | 761 | | | 762 | 4.01k | if (!need_more_input_data(state)) { | 763 | 4.01k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 4.01k | bool new_eos = false; | 765 | 4.01k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 4.01k | if (new_eos) { | 767 | 1.48k | *eos = true; | 768 | 2.53k | } else if (!need_more_input_data(state)) { | 769 | 1.89k | *eos = false; | 770 | 1.89k | } | 771 | 4.01k | } | 772 | 4.00k | return Status::OK(); | 773 | 4.00k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.90k | bool* eos) { | 745 | 1.90k | auto& local_state = get_local_state(state); | 746 | 1.90k | if (need_more_input_data(state)) { | 747 | 1.90k | local_state._child_block->clear_column_data( | 748 | 1.90k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.90k | .num_materialized_slots()); | 750 | 1.90k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.90k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.90k | *eos = local_state._child_eos; | 753 | 1.90k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 777 | return Status::OK(); | 755 | 777 | } | 756 | 1.13k | { | 757 | 1.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.13k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.13k | } | 760 | 1.13k | } | 761 | | | 762 | 1.13k | if (!need_more_input_data(state)) { | 763 | 1.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.13k | bool new_eos = false; | 765 | 1.13k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.13k | if (new_eos) { | 767 | 787 | *eos = true; | 768 | 787 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.13k | } | 772 | 1.13k | return Status::OK(); | 773 | 1.13k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 21.2k | bool* eos) { | 745 | 21.2k | auto& local_state = get_local_state(state); | 746 | 21.2k | if (need_more_input_data(state)) { | 747 | 21.2k | local_state._child_block->clear_column_data( | 748 | 21.2k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 21.2k | .num_materialized_slots()); | 750 | 21.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 21.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 21.2k | *eos = local_state._child_eos; | 753 | 21.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 6.39k | return Status::OK(); | 755 | 6.39k | } | 756 | 14.8k | { | 757 | 14.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 14.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 14.8k | } | 760 | 14.8k | } | 761 | | | 762 | 14.8k | if (!need_more_input_data(state)) { | 763 | 6.16k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.16k | bool new_eos = false; | 765 | 6.16k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.16k | if (new_eos) { | 767 | 6.10k | *eos = true; | 768 | 6.10k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 6.16k | } | 772 | 14.8k | return Status::OK(); | 773 | 14.8k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 429k | bool* eos) { | 745 | 429k | auto& local_state = get_local_state(state); | 746 | 430k | if (need_more_input_data(state)) { | 747 | 430k | local_state._child_block->clear_column_data( | 748 | 430k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 430k | .num_materialized_slots()); | 750 | 430k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 430k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 430k | *eos = local_state._child_eos; | 753 | 430k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 42.4k | return Status::OK(); | 755 | 42.4k | } | 756 | 388k | { | 757 | 388k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 388k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 388k | } | 760 | 388k | } | 761 | | | 762 | 387k | if (!need_more_input_data(state)) { | 763 | 365k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 365k | bool new_eos = false; | 765 | 365k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 365k | if (new_eos) { | 767 | 364k | *eos = true; | 768 | 364k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 365k | } | 772 | 387k | return Status::OK(); | 773 | 387k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.6k | bool* eos) { | 745 | 22.6k | auto& local_state = get_local_state(state); | 746 | 22.6k | if (need_more_input_data(state)) { | 747 | 11.9k | local_state._child_block->clear_column_data( | 748 | 11.9k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.9k | .num_materialized_slots()); | 750 | 11.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.9k | *eos = local_state._child_eos; | 753 | 11.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 696 | return Status::OK(); | 755 | 696 | } | 756 | 11.2k | { | 757 | 11.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 11.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 11.2k | } | 760 | 11.2k | } | 761 | | | 762 | 21.9k | if (!need_more_input_data(state)) { | 763 | 21.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 21.3k | bool new_eos = false; | 765 | 21.3k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 21.3k | if (new_eos) { | 767 | 7.24k | *eos = true; | 768 | 14.1k | } else if (!need_more_input_data(state)) { | 769 | 10.6k | *eos = false; | 770 | 10.6k | } | 771 | 21.3k | } | 772 | 21.9k | return Status::OK(); | 773 | 21.9k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 6.30k | bool* eos) { | 745 | 6.30k | auto& local_state = get_local_state(state); | 746 | 6.30k | if (need_more_input_data(state)) { | 747 | 5.94k | local_state._child_block->clear_column_data( | 748 | 5.94k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 5.94k | .num_materialized_slots()); | 750 | 5.94k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 5.94k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 5.94k | *eos = local_state._child_eos; | 753 | 5.94k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 951 | return Status::OK(); | 755 | 951 | } | 756 | 4.99k | { | 757 | 4.99k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 4.99k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 4.99k | } | 760 | 4.99k | } | 761 | | | 762 | 5.36k | if (!need_more_input_data(state)) { | 763 | 5.36k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.36k | bool new_eos = false; | 765 | 5.36k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.36k | if (new_eos) { | 767 | 3.27k | *eos = true; | 768 | 3.27k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 5.36k | } | 772 | 5.35k | return Status::OK(); | 773 | 5.35k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 46.8k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 46.8k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 46.8k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 46.8k | "AsyncWriterDependency", true); |
781 | 46.8k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 46.8k | _finish_dependency)); |
783 | | |
784 | 46.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 46.8k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 46.8k | return Status::OK(); |
787 | 46.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 376 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 376 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 376 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 376 | "AsyncWriterDependency", true); | 781 | 376 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 376 | _finish_dependency)); | 783 | | | 784 | 376 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 376 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 376 | return Status::OK(); | 787 | 376 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 46.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 46.4k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 46.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 46.4k | "AsyncWriterDependency", true); | 781 | 46.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 46.4k | _finish_dependency)); | 783 | | | 784 | 46.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 46.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 46.4k | return Status::OK(); | 787 | 46.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 66 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 66 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 66 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 66 | "AsyncWriterDependency", true); | 781 | 66 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 66 | _finish_dependency)); | 783 | | | 784 | 66 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 66 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 66 | return Status::OK(); | 787 | 66 | } |
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 | 47.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 47.5k | RETURN_IF_ERROR(Base::open(state)); |
793 | 47.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 373k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 326k | RETURN_IF_ERROR( |
796 | 326k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 326k | } |
798 | 47.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 47.5k | return Status::OK(); |
800 | 47.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 380 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 380 | RETURN_IF_ERROR(Base::open(state)); | 793 | 380 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.91k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.53k | RETURN_IF_ERROR( | 796 | 1.53k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.53k | } | 798 | 380 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 380 | return Status::OK(); | 800 | 380 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 47.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 47.1k | RETURN_IF_ERROR(Base::open(state)); | 793 | 47.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 370k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 323k | RETURN_IF_ERROR( | 796 | 323k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 323k | } | 798 | 47.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 47.1k | return Status::OK(); | 800 | 47.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 66 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 66 | RETURN_IF_ERROR(Base::open(state)); | 793 | 66 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.18k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.12k | RETURN_IF_ERROR( | 796 | 1.12k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.12k | } | 798 | 66 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 66 | return Status::OK(); | 800 | 66 | } |
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 | 63.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 63.3k | return _writer->sink(block, eos); |
806 | 63.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.60k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.60k | return _writer->sink(block, eos); | 806 | 1.60k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 61.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 61.6k | return _writer->sink(block, eos); | 806 | 61.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 66 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 66 | return _writer->sink(block, eos); | 806 | 66 | } |
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 | 47.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 47.7k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 47.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 47.7k | 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 | 47.7k | if (_writer) { |
818 | 47.7k | Status st = _writer->get_writer_status(); |
819 | 47.7k | if (exec_status.ok()) { |
820 | 47.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 47.6k | : Status::Cancelled("force close")); |
822 | 47.6k | } else { |
823 | 113 | _writer->force_close(exec_status); |
824 | 113 | } |
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 | 47.7k | RETURN_IF_ERROR(st); |
829 | 47.7k | } |
830 | 47.6k | return Base::close(state, exec_status); |
831 | 47.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 368 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 368 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 368 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 368 | 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 | 368 | if (_writer) { | 818 | 368 | Status st = _writer->get_writer_status(); | 819 | 368 | if (exec_status.ok()) { | 820 | 368 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 368 | : Status::Cancelled("force close")); | 822 | 368 | } 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 | 368 | RETURN_IF_ERROR(st); | 829 | 368 | } | 830 | 368 | return Base::close(state, exec_status); | 831 | 368 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 47.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 47.2k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 47.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 47.2k | 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 | 47.2k | if (_writer) { | 818 | 47.2k | Status st = _writer->get_writer_status(); | 819 | 47.2k | if (exec_status.ok()) { | 820 | 47.1k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 47.1k | : Status::Cancelled("force close")); | 822 | 47.1k | } else { | 823 | 113 | _writer->force_close(exec_status); | 824 | 113 | } | 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 | 47.2k | RETURN_IF_ERROR(st); | 829 | 47.2k | } | 830 | 47.2k | return Base::close(state, exec_status); | 831 | 47.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 66 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 66 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 66 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 66 | 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 | 66 | if (_writer) { | 818 | 66 | Status st = _writer->get_writer_status(); | 819 | 66 | if (exec_status.ok()) { | 820 | 66 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 66 | : Status::Cancelled("force close")); | 822 | 66 | } 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 | 66 | RETURN_IF_ERROR(st); | 829 | 66 | } | 830 | 66 | return Base::close(state, exec_status); | 831 | 66 | } |
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 |