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.81M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.81M | if (_parent->nereids_id() == -1) { |
122 | 952k | return fmt::format("(id={})", _parent->node_id()); |
123 | 952k | } else { |
124 | 859k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 859k | } |
126 | 1.81M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 70.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 70.6k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 70.6k | } else { | 124 | 70.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 70.6k | } | 126 | 70.6k | } |
_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 | 217k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 217k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 217k | } else { | 124 | 217k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 217k | } | 126 | 217k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 23 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 23 | } else { | 124 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 23 | } | 126 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 6.55k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.55k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 6.55k | } else { | 124 | 6.55k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6.55k | } | 126 | 6.55k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 6.45k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.45k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 6.44k | } else { | 124 | 6.44k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6.44k | } | 126 | 6.45k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 91.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 91.2k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 91.1k | } else { | 124 | 91.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 91.1k | } | 126 | 91.2k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 64.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 64.6k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 64.6k | } else { | 124 | 64.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 64.6k | } | 126 | 64.6k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 219 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 219 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 219 | } else { | 124 | 219 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 219 | } | 126 | 219 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 635k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 635k | if (_parent->nereids_id() == -1) { | 122 | 290k | return fmt::format("(id={})", _parent->node_id()); | 123 | 344k | } else { | 124 | 344k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 344k | } | 126 | 635k | } |
_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 | 7.37k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.38k | if (_parent->nereids_id() == -1) { | 122 | 7.38k | 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 | 7.37k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 423 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 423 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 321 | } else { | 124 | 321 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 321 | } | 126 | 423 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.25k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.25k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.23k | } else { | 124 | 5.23k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.23k | } | 126 | 5.25k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 652k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 653k | if (_parent->nereids_id() == -1) { | 122 | 653k | 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 | 652k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 168 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 168 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 168 | } else { | 124 | 168 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 168 | } | 126 | 168 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.20M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.20M | if (_parent->nereids_id() == -1) { |
131 | 689k | return fmt::format("(id={})", _parent->node_id()); |
132 | 689k | } else { |
133 | 515k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 515k | } |
135 | 1.20M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 119k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 119k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 119k | } else { | 133 | 119k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 119k | } | 135 | 119k | } |
_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 | 219k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 219k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 219k | } else { | 133 | 219k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 219k | } | 135 | 219k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 31 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 31 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 31 | } else { | 133 | 31 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 31 | } | 135 | 31 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.55k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.55k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.55k | } else { | 133 | 6.55k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.55k | } | 135 | 6.55k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.46k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.46k | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.45k | } else { | 133 | 6.45k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.45k | } | 135 | 6.46k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 91.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 91.5k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 91.5k | } else { | 133 | 91.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 91.5k | } | 135 | 91.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 64.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 64.5k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 64.5k | } else { | 133 | 64.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 64.5k | } | 135 | 64.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 229 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 229 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 229 | } else { | 133 | 229 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 229 | } | 135 | 229 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 15 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 15 | if (_parent->nereids_id() == -1) { | 131 | 15 | return fmt::format("(id={})", _parent->node_id()); | 132 | 15 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.42k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.42k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.42k | } else { | 133 | 8.42k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.42k | } | 135 | 8.42k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 424 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 424 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 322 | } else { | 133 | 322 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 322 | } | 135 | 424 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.8k | if (_parent->nereids_id() == -1) { | 131 | 12.8k | return fmt::format("(id={})", _parent->node_id()); | 132 | 12.8k | } else { | 133 | 8 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8 | } | 135 | 12.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 254k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 254k | if (_parent->nereids_id() == -1) { | 131 | 254k | 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 | 254k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 421k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 421k | if (_parent->nereids_id() == -1) { | 131 | 421k | 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 | 421k | } |
_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 | 31.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 31.0k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 31.0k | _terminated = true; |
143 | 31.0k | return Status::OK(); |
144 | 31.0k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.87k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.87k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.87k | _terminated = true; | 143 | 2.87k | return Status::OK(); | 144 | 2.87k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 5 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 5 | _terminated = true; | 143 | 5 | return Status::OK(); | 144 | 5 | } |
_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 | 541 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 541 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 541 | _terminated = true; | 143 | 541 | return Status::OK(); | 144 | 541 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_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_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 541 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 541 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 541 | _terminated = true; | 143 | 541 | return Status::OK(); | 144 | 541 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 157 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 157 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 157 | _terminated = true; | 143 | 157 | return Status::OK(); | 144 | 157 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 10 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 10 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 10 | _terminated = true; | 143 | 10 | return Status::OK(); | 144 | 10 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 258 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 258 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 258 | _terminated = true; | 143 | 258 | return Status::OK(); | 144 | 258 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 12 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 12 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 12 | _terminated = true; | 143 | 12 | return Status::OK(); | 144 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 251 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 251 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 251 | _terminated = true; | 143 | 251 | return Status::OK(); | 144 | 251 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 131 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 131 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 131 | _terminated = true; | 143 | 131 | return Status::OK(); | 144 | 131 | } |
|
145 | | |
146 | 313k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 313k | return _child && _child->is_serial_operator() && !is_source() |
148 | 313k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 313k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 313k | } |
151 | | |
152 | 25.1k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 25.1k | if (!_child) { |
154 | 23.7k | return false; |
155 | 23.7k | } |
156 | 1.40k | if (_child->is_serial_operator()) { |
157 | 205 | return true; |
158 | 205 | } |
159 | 1.19k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 1.19k | return child_distribution.need_local_exchange() && |
161 | 1.19k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.40k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 20.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 20.1k | fmt::memory_buffer debug_string_buffer; |
167 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 20.1k | return fmt::to_string(debug_string_buffer); |
169 | 20.1k | } 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 | 20.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 20.1k | fmt::memory_buffer debug_string_buffer; | 167 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 20.1k | return fmt::to_string(debug_string_buffer); | 169 | 20.1k | } |
_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 | 20.1k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 20.1k | fmt::memory_buffer debug_string_buffer; |
174 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 20.1k | return fmt::to_string(debug_string_buffer); |
176 | 20.1k | } 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 | 20.1k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 20.1k | fmt::memory_buffer debug_string_buffer; | 174 | 20.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 20.1k | return fmt::to_string(debug_string_buffer); | 176 | 20.1k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 20.1k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 20.1k | fmt::memory_buffer debug_string_buffer; |
180 | 20.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 20.1k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 20.1k | _is_serial_operator); |
183 | 20.1k | return fmt::to_string(debug_string_buffer); |
184 | 20.1k | } |
185 | | |
186 | 20.1k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 20.1k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 20.1k | } |
189 | | |
190 | 667k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 667k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 667k | _nereids_id = tnode.nereids_id; |
193 | 667k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.87k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.87k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.87k | 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.87k | } |
206 | 667k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 667k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 667k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 667k | } else if (tnode.__isset.conjuncts) { |
212 | 273k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 273k | VExprContextSPtr context; |
214 | 273k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 273k | _conjuncts.emplace_back(context); |
216 | 273k | } |
217 | 99.2k | } |
218 | | |
219 | | // create the projections expr |
220 | 667k | if (tnode.__isset.projections) { |
221 | 261k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 261k | } |
223 | 667k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.87k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.87k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 6.58k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 6.58k | VExprContextSPtrs projections; |
228 | 6.58k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 6.58k | _projection->intermediate_projections.push_back(projections); |
230 | 6.58k | } |
231 | 3.87k | } |
232 | 667k | return Status::OK(); |
233 | 667k | } |
234 | | |
235 | 695k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 695k | for (auto& conjunct : _conjuncts) { |
237 | 272k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 272k | } |
239 | 695k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 645k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 339k | return a->execute_cost() < b->execute_cost(); |
242 | 339k | }); |
243 | 645k | }; |
244 | | |
245 | 695k | if (has_projection()) { |
246 | 261k | auto& projection = *_projection; |
247 | 267k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 6.58k | const auto& input_row_desc = |
249 | 6.58k | i == 0 ? operator_row_desc_before_projection() |
250 | 6.58k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 6.58k | RETURN_IF_ERROR( |
252 | 6.58k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 6.58k | } |
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 | 695k | for (auto& conjunct : _conjuncts) { |
265 | 272k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 272k | } |
267 | 695k | if (has_projection()) { |
268 | 261k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 261k | for (auto& projections : _projection->intermediate_projections) { |
270 | 6.58k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 6.58k | } |
272 | 261k | } |
273 | 695k | if (_child && !is_source()) { |
274 | 105k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 105k | } |
276 | | |
277 | 695k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 695k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 695k | return Status::OK(); |
283 | 695k | } |
284 | | |
285 | 7.78k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 7.78k | if (_child && !is_source()) { |
287 | 761 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 761 | } |
289 | 7.78k | auto result = state->get_local_state_result(operator_id()); |
290 | 7.78k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 7.78k | return result.value()->terminate(state); |
294 | 7.78k | } |
295 | | |
296 | 4.90M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.90M | if (_child && !is_source()) { |
298 | 825k | RETURN_IF_ERROR(_child->close(state)); |
299 | 825k | } |
300 | 4.90M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.90M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.90M | return result.value()->close(state); |
305 | 4.90M | } |
306 | | |
307 | 285k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 285k | _origin_block.clear_column_data( |
309 | 285k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 285k | } |
311 | | |
312 | 774k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 774k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 774k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 774k | return Status::OK(); |
317 | 774k | } |
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 | 285k | Block* output_block) const { |
326 | 285k | auto* local_state = state->get_local_state(operator_id()); |
327 | 285k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 285k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 285k | const size_t rows = origin_block->rows(); |
330 | 285k | if (rows == 0) { |
331 | 150k | return Status::OK(); |
332 | 150k | } |
333 | 135k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 135k | { |
336 | 135k | Block input_block = *origin_block; |
337 | | |
338 | 135k | ColumnsWithTypeAndName new_columns; |
339 | 135k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.66k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.66k | new_columns.resize(projections.size()); |
345 | 68.7k | for (int i = 0; i < projections.size(); i++) { |
346 | 65.0k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 65.0k | 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 | 65.0k | } |
355 | 3.65k | Block tmp_block {new_columns}; |
356 | 3.65k | input_block.swap(tmp_block); |
357 | 3.65k | } |
358 | | |
359 | 135k | 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 | 135k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 135k | output_block, _projection->output_row_descriptor); |
368 | 135k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 135k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 135k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 774k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 639k | ColumnPtr column_ptr; |
374 | 639k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 639k | 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 | 639k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 639k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 639k | if (column_ptr->is_exclusive()) { |
386 | 229k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 410k | } else { |
388 | 410k | shared_columns[i] = std::move(column_ptr); |
389 | 410k | } |
390 | 639k | } |
391 | | |
392 | 135k | scoped_mutable_block.restore(); |
393 | 774k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 639k | if (shared_columns[i]) { |
395 | 410k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 410k | } |
397 | 639k | } |
398 | 135k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 135k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 135k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 135k | return Status::OK(); |
405 | 135k | } |
406 | | |
407 | 4.39M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.39M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.39M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.39M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.39M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.39M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.39M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.39M | return Status::OK(); |
415 | 4.39M | } |
416 | 4.39M | } |
417 | 4.39M | }); |
418 | | |
419 | 4.39M | Status status; |
420 | 4.39M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.39M | Defer defer([&]() { |
422 | 4.39M | if (status.ok()) { |
423 | 4.39M | local_state->update_output_block_counters(*block); |
424 | 4.39M | } |
425 | 4.39M | }); |
426 | 4.39M | if (has_projection()) { |
427 | 285k | local_state->clear_origin_block(); |
428 | 285k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 285k | if (UNLIKELY(!status.ok())) { |
430 | 25 | return status; |
431 | 25 | } |
432 | 285k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 285k | return status; |
434 | 285k | } |
435 | 4.11M | status = get_block(state, block, eos); |
436 | 4.11M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 4.11M | return status; |
438 | 4.11M | } |
439 | | |
440 | 2.77M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.77M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.62k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.62k | *eos = true; |
444 | 9.62k | } |
445 | | |
446 | 2.77M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.77M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.77M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.77M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.77M | if (op_name == arg_op_name) { |
452 | 2.77M | *eos = true; |
453 | 2.77M | } |
454 | 2.77M | }); |
455 | | |
456 | 2.77M | if (auto rows = block->rows()) { |
457 | 760k | _num_rows_returned += rows; |
458 | 760k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 760k | } |
460 | 2.77M | } |
461 | | |
462 | 31.0k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 31.0k | auto result = state->get_sink_local_state_result(); |
464 | 31.0k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 31.0k | return result.value()->terminate(state); |
468 | 31.0k | } |
469 | | |
470 | 20.1k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 20.1k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 20.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 20.1k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 20.1k | return fmt::to_string(debug_string_buffer); |
476 | 20.1k | } |
477 | | |
478 | 20.1k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 20.1k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 20.1k | } |
481 | | |
482 | 344k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 344k | std::string op_name = "UNKNOWN_SINK"; |
484 | 344k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 345k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 345k | op_name = it->second; |
488 | 345k | } |
489 | 344k | _name = op_name + "_OPERATOR"; |
490 | 344k | return Status::OK(); |
491 | 344k | } |
492 | | |
493 | 292k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 292k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 292k | _nereids_id = tnode.nereids_id; |
496 | 292k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 292k | _name = substr + "_SINK_OPERATOR"; |
498 | 292k | return Status::OK(); |
499 | 292k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.73M | LocalSinkStateInfo& info) { |
504 | 1.73M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.73M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.73M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.73M | return Status::OK(); |
508 | 1.73M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 119k | LocalSinkStateInfo& info) { | 504 | 119k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 119k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 119k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 119k | return Status::OK(); | 508 | 119k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 375k | LocalSinkStateInfo& info) { | 504 | 375k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 375k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 375k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 375k | return Status::OK(); | 508 | 375k | } |
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 | 362 | LocalSinkStateInfo& info) { | 504 | 362 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 362 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 362 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 362 | return Status::OK(); | 508 | 362 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 45.8k | LocalSinkStateInfo& info) { | 504 | 45.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 45.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 45.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 45.8k | return Status::OK(); | 508 | 45.8k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 333 | LocalSinkStateInfo& info) { | 504 | 333 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 333 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 333 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 333 | return Status::OK(); | 508 | 333 | } |
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 | 6.49k | LocalSinkStateInfo& info) { | 504 | 6.49k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.49k | return Status::OK(); | 508 | 6.49k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 12 | LocalSinkStateInfo& info) { | 504 | 12 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 12 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 12 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 12 | return Status::OK(); | 508 | 12 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 220k | LocalSinkStateInfo& info) { | 504 | 220k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 220k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 220k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 220k | return Status::OK(); | 508 | 220k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 31 | LocalSinkStateInfo& info) { | 504 | 31 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 31 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 31 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 31 | return Status::OK(); | 508 | 31 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 255k | LocalSinkStateInfo& info) { | 504 | 255k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 255k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 255k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 255k | return Status::OK(); | 508 | 255k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 91.9k | LocalSinkStateInfo& info) { | 504 | 91.9k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 91.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 91.9k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 91.9k | return Status::OK(); | 508 | 91.9k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 64.8k | LocalSinkStateInfo& info) { | 504 | 64.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 64.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 64.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 64.8k | return Status::OK(); | 508 | 64.8k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 229 | LocalSinkStateInfo& info) { | 504 | 229 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 229 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 229 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 229 | return Status::OK(); | 508 | 229 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 520k | LocalSinkStateInfo& info) { | 504 | 520k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 520k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 520k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 520k | return Status::OK(); | 508 | 520k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.56k | LocalSinkStateInfo& info) { | 504 | 6.56k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.56k | return Status::OK(); | 508 | 6.56k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.43k | LocalSinkStateInfo& info) { | 504 | 8.43k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.43k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.43k | return Status::OK(); | 508 | 8.43k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3.14k | LocalSinkStateInfo& info) { | 504 | 3.14k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3.14k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3.14k | return Status::OK(); | 508 | 3.14k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 325 | LocalSinkStateInfo& info) { | 504 | 325 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 325 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 325 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 325 | return Status::OK(); | 508 | 325 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.93k | LocalSinkStateInfo& info) { | 504 | 4.93k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.93k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.93k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.93k | return Status::OK(); | 508 | 4.93k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_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_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.68k | LocalSinkStateInfo& info) { | 504 | 2.68k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.68k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.68k | return Status::OK(); | 508 | 2.68k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.55k | LocalSinkStateInfo& info) { | 504 | 2.55k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.55k | return Status::OK(); | 508 | 2.55k | } |
_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 | 568 | LocalSinkStateInfo& info) { | 504 | 568 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 568 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 568 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 568 | return Status::OK(); | 508 | 568 | } |
_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 | 106 | LocalSinkStateInfo& info) { | 504 | 106 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 106 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 106 | return Status::OK(); | 508 | 106 | } |
_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.38M | 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.38M | } else { |
519 | 1.38M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.38M | ss->id = operator_id(); |
521 | 1.38M | for (auto& dest : dests_id()) { |
522 | 1.37M | ss->related_op_ids.insert(dest); |
523 | 1.37M | } |
524 | 1.38M | return ss; |
525 | 1.38M | } |
526 | 1.38M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106k | 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 | 106k | } else { | 519 | 106k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106k | ss->id = operator_id(); | 521 | 106k | for (auto& dest : dests_id()) { | 522 | 106k | ss->related_op_ids.insert(dest); | 523 | 106k | } | 524 | 106k | return ss; | 525 | 106k | } | 526 | 106k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 376k | 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 | 376k | } else { | 519 | 376k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 376k | ss->id = operator_id(); | 521 | 376k | for (auto& dest : dests_id()) { | 522 | 374k | ss->related_op_ids.insert(dest); | 523 | 374k | } | 524 | 376k | return ss; | 525 | 376k | } | 526 | 376k | } |
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 | 362 | 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 | 362 | } else { | 519 | 362 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 362 | ss->id = operator_id(); | 521 | 362 | for (auto& dest : dests_id()) { | 522 | 361 | ss->related_op_ids.insert(dest); | 523 | 361 | } | 524 | 362 | return ss; | 525 | 362 | } | 526 | 362 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 45.8k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 45.8k | } else { | 519 | 45.8k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 45.8k | ss->id = operator_id(); | 521 | 45.8k | for (auto& dest : dests_id()) { | 522 | 45.5k | ss->related_op_ids.insert(dest); | 523 | 45.5k | } | 524 | 45.8k | return ss; | 525 | 45.8k | } | 526 | 45.8k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 333 | 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 | 333 | } else { | 519 | 333 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 333 | ss->id = operator_id(); | 521 | 333 | for (auto& dest : dests_id()) { | 522 | 333 | ss->related_op_ids.insert(dest); | 523 | 333 | } | 524 | 333 | return ss; | 525 | 333 | } | 526 | 333 | } |
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 | 6.51k | 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 | 6.51k | } else { | 519 | 6.51k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.51k | ss->id = operator_id(); | 521 | 6.51k | for (auto& dest : dests_id()) { | 522 | 6.49k | ss->related_op_ids.insert(dest); | 523 | 6.49k | } | 524 | 6.51k | return ss; | 525 | 6.51k | } | 526 | 6.51k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 12 | 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 | 12 | } else { | 519 | 12 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 12 | ss->id = operator_id(); | 521 | 12 | for (auto& dest : dests_id()) { | 522 | 12 | ss->related_op_ids.insert(dest); | 523 | 12 | } | 524 | 12 | return ss; | 525 | 12 | } | 526 | 12 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 220k | 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 | 220k | } else { | 519 | 220k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 220k | ss->id = operator_id(); | 521 | 220k | for (auto& dest : dests_id()) { | 522 | 220k | ss->related_op_ids.insert(dest); | 523 | 220k | } | 524 | 220k | return ss; | 525 | 220k | } | 526 | 220k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 33 | 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 | 33 | } else { | 519 | 33 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 33 | ss->id = operator_id(); | 521 | 33 | for (auto& dest : dests_id()) { | 522 | 33 | ss->related_op_ids.insert(dest); | 523 | 33 | } | 524 | 33 | return ss; | 525 | 33 | } | 526 | 33 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 91.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 | 91.9k | } else { | 519 | 91.9k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 91.9k | ss->id = operator_id(); | 521 | 91.9k | for (auto& dest : dests_id()) { | 522 | 91.8k | ss->related_op_ids.insert(dest); | 523 | 91.8k | } | 524 | 91.9k | return ss; | 525 | 91.9k | } | 526 | 91.9k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 228 | 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 | 228 | } else { | 519 | 228 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 228 | ss->id = operator_id(); | 521 | 228 | for (auto& dest : dests_id()) { | 522 | 228 | ss->related_op_ids.insert(dest); | 523 | 228 | } | 524 | 228 | return ss; | 525 | 228 | } | 526 | 228 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 521k | 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 | 521k | } else { | 519 | 521k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 521k | ss->id = operator_id(); | 521 | 521k | for (auto& dest : dests_id()) { | 522 | 517k | ss->related_op_ids.insert(dest); | 523 | 517k | } | 524 | 521k | return ss; | 525 | 521k | } | 526 | 521k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.56k | 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 | 6.56k | } else { | 519 | 6.56k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.56k | ss->id = operator_id(); | 521 | 6.56k | for (auto& dest : dests_id()) { | 522 | 6.56k | ss->related_op_ids.insert(dest); | 523 | 6.56k | } | 524 | 6.56k | return ss; | 525 | 6.56k | } | 526 | 6.56k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 427 | 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 | 427 | } else { | 519 | 427 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 427 | ss->id = operator_id(); | 521 | 427 | for (auto& dest : dests_id()) { | 522 | 424 | ss->related_op_ids.insert(dest); | 523 | 424 | } | 524 | 427 | return ss; | 525 | 427 | } | 526 | 427 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.69k | 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.69k | } else { | 519 | 2.69k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.69k | ss->id = operator_id(); | 521 | 2.69k | for (auto& dest : dests_id()) { | 522 | 2.67k | ss->related_op_ids.insert(dest); | 523 | 2.67k | } | 524 | 2.69k | return ss; | 525 | 2.69k | } | 526 | 2.69k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.55k | 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.55k | } else { | 519 | 2.55k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.55k | ss->id = operator_id(); | 521 | 2.55k | for (auto& dest : dests_id()) { | 522 | 2.54k | ss->related_op_ids.insert(dest); | 523 | 2.54k | } | 524 | 2.55k | return ss; | 525 | 2.55k | } | 526 | 2.55k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 569 | 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 | 569 | } else { | 519 | 569 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 569 | ss->id = operator_id(); | 521 | 569 | for (auto& dest : dests_id()) { | 522 | 560 | ss->related_op_ids.insert(dest); | 523 | 560 | } | 524 | 569 | return ss; | 525 | 569 | } | 526 | 569 | } |
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.06M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.06M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.06M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.06M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.06M | return Status::OK(); |
534 | 2.06M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 70.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 70.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 70.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 70.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 70.9k | return Status::OK(); | 534 | 70.9k | } |
_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 | 146 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 146 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 146 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 146 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 146 | return Status::OK(); | 534 | 146 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.12k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.12k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.12k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.12k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.12k | return Status::OK(); | 534 | 3.12k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.48k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.48k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.48k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.48k | return Status::OK(); | 534 | 6.48k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.32k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.32k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.32k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.32k | return Status::OK(); | 534 | 6.32k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 24 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 24 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 24 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 24 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 24 | return Status::OK(); | 534 | 24 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 212k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 212k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 212k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 212k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 212k | return Status::OK(); | 534 | 212k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 91.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 91.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 91.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 91.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 91.6k | return Status::OK(); | 534 | 91.6k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 64.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 64.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 64.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 64.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 64.8k | return Status::OK(); | 534 | 64.8k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 219 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 219 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 219 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 219 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 219 | return Status::OK(); | 534 | 219 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.67k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.67k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.67k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.67k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.67k | return Status::OK(); | 534 | 3.67k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 291k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 291k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 291k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 291k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 291k | return Status::OK(); | 534 | 291k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.26k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.26k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.26k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.26k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.26k | return Status::OK(); | 534 | 1.26k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.56k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.56k | return Status::OK(); | 534 | 6.56k | } |
_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.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.61k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.61k | return Status::OK(); | 534 | 1.61k | } |
_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 | 7.38k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.38k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.38k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.38k | return Status::OK(); | 534 | 7.38k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 324 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 324 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 324 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 324 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 324 | return Status::OK(); | 534 | 324 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.68k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.68k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.68k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.68k | return Status::OK(); | 534 | 2.68k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.55k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.55k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.55k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.55k | return Status::OK(); | 534 | 2.55k | } |
_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.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.4k | return Status::OK(); | 534 | 10.4k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 656k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 656k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 656k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 656k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 656k | return Status::OK(); | 534 | 656k | } |
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 | 785 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 785 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 785 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 785 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 785 | return Status::OK(); | 534 | 785 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.10k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.10k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.10k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.10k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.10k | return Status::OK(); | 534 | 1.10k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.62k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.62k | return Status::OK(); | 534 | 5.62k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 318k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 318k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 318k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 318k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 318k | return Status::OK(); | 534 | 318k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.72M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.06M | : _num_rows_returned(0), |
542 | 2.06M | _rows_returned_counter(nullptr), |
543 | 2.06M | _parent(parent), |
544 | 2.06M | _state(state), |
545 | 2.06M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.06M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.06M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.06M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.06M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.06M | _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.06M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.06M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.06M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.06M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.06M | if constexpr (!is_fake_shared) { |
560 | 1.18M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 735k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 735k | .first.get() |
563 | 735k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 735k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 735k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 735k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 735k | } else if (info.shared_state) { |
569 | 398k | 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 | 398k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 398k | _dependency = _shared_state->create_source_dependency( |
576 | 398k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 398k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 398k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 398k | } else { |
580 | 52.5k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 175 | DCHECK(false); |
582 | 175 | } |
583 | 52.5k | } |
584 | 1.18M | } |
585 | | |
586 | 2.06M | 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.06M | _rows_returned_counter = |
591 | 2.06M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.06M | _blocks_returned_counter = |
593 | 2.06M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.06M | _output_block_bytes_counter = |
595 | 2.06M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.06M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.06M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.06M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.06M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.06M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.06M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.06M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.06M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.06M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.06M | _memory_used_counter = |
606 | 2.06M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.06M | _common_profile->add_info_string("IsColocate", |
608 | 2.06M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.06M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.06M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.06M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.06M | return Status::OK(); |
613 | 2.06M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 71.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 71.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 71.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 71.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 71.0k | _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 | 71.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 71.0k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 71.0k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 71.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 71.0k | if constexpr (!is_fake_shared) { | 560 | 71.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 12.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 12.4k | .first.get() | 563 | 12.4k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 12.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 12.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 12.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 58.5k | } 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 | 58.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 58.4k | _dependency = _shared_state->create_source_dependency( | 576 | 58.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 58.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 58.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 58.4k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 79 | } | 584 | 71.0k | } | 585 | | | 586 | 71.0k | 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 | 71.0k | _rows_returned_counter = | 591 | 71.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 71.0k | _blocks_returned_counter = | 593 | 71.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 71.0k | _output_block_bytes_counter = | 595 | 71.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 71.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 71.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 71.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 71.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 71.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 71.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 71.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 71.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 71.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 71.0k | _memory_used_counter = | 606 | 71.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 71.0k | _common_profile->add_info_string("IsColocate", | 608 | 71.0k | std::to_string(_parent->is_colocated_operator())); | 609 | 71.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 71.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 71.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 71.0k | return Status::OK(); | 613 | 71.0k | } |
_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 | 219k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 219k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 219k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 219k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 219k | _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 | 219k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 219k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 219k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 219k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 219k | if constexpr (!is_fake_shared) { | 560 | 219k | 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 | 219k | } 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 | 217k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 217k | _dependency = _shared_state->create_source_dependency( | 576 | 217k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 217k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 217k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 217k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.11k | } | 584 | 219k | } | 585 | | | 586 | 219k | 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 | 219k | _rows_returned_counter = | 591 | 219k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 219k | _blocks_returned_counter = | 593 | 219k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 219k | _output_block_bytes_counter = | 595 | 219k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 219k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 219k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 219k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 219k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 219k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 219k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 219k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 219k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 219k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 219k | _memory_used_counter = | 606 | 219k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 219k | _common_profile->add_info_string("IsColocate", | 608 | 219k | std::to_string(_parent->is_colocated_operator())); | 609 | 219k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 219k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 219k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 219k | return Status::OK(); | 613 | 219k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 24 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 24 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 24 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 24 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 24 | _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 | 24 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 24 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 24 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 24 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 24 | if constexpr (!is_fake_shared) { | 560 | 24 | 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 | 24 | } 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 | 24 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 24 | _dependency = _shared_state->create_source_dependency( | 576 | 24 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 24 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 24 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 24 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 24 | } | 585 | | | 586 | 24 | 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 | 24 | _rows_returned_counter = | 591 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 24 | _blocks_returned_counter = | 593 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 24 | _output_block_bytes_counter = | 595 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 24 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 24 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 24 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 24 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 24 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 24 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 24 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 24 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 24 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 24 | _memory_used_counter = | 606 | 24 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 24 | _common_profile->add_info_string("IsColocate", | 608 | 24 | std::to_string(_parent->is_colocated_operator())); | 609 | 24 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 24 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 24 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 24 | return Status::OK(); | 613 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.56k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.56k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.56k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.56k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.56k | _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.56k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.56k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.56k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.56k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.56k | if constexpr (!is_fake_shared) { | 560 | 6.56k | 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.56k | } 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.55k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.55k | _dependency = _shared_state->create_source_dependency( | 576 | 6.55k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.55k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.55k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.55k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2 | } | 584 | 6.56k | } | 585 | | | 586 | 6.56k | 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.56k | _rows_returned_counter = | 591 | 6.56k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.56k | _blocks_returned_counter = | 593 | 6.56k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.56k | _output_block_bytes_counter = | 595 | 6.56k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.56k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.56k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.56k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.56k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.56k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.56k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.56k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.56k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.56k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.56k | _memory_used_counter = | 606 | 6.56k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.56k | _common_profile->add_info_string("IsColocate", | 608 | 6.56k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.56k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.56k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.56k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.56k | return Status::OK(); | 613 | 6.56k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.51k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.51k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.51k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.51k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.51k | _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.51k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.51k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.51k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.51k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.51k | if constexpr (!is_fake_shared) { | 560 | 6.51k | 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.51k | } 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.49k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.49k | _dependency = _shared_state->create_source_dependency( | 576 | 6.49k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.49k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.49k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.49k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 21 | } | 584 | 6.51k | } | 585 | | | 586 | 6.51k | 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.51k | _rows_returned_counter = | 591 | 6.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.51k | _blocks_returned_counter = | 593 | 6.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.51k | _output_block_bytes_counter = | 595 | 6.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.51k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.51k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.51k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.51k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.51k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.51k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.51k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.51k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.51k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.51k | _memory_used_counter = | 606 | 6.51k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.51k | _common_profile->add_info_string("IsColocate", | 608 | 6.51k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.51k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.51k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.51k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.51k | return Status::OK(); | 613 | 6.51k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 91.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 91.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 91.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 91.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 91.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 | 91.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 91.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 91.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 91.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 91.8k | if constexpr (!is_fake_shared) { | 560 | 91.8k | 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 | 91.8k | } 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 | 91.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 91.6k | _dependency = _shared_state->create_source_dependency( | 576 | 91.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 91.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 91.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 91.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 226 | } | 584 | 91.8k | } | 585 | | | 586 | 91.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 | 91.8k | _rows_returned_counter = | 591 | 91.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 91.8k | _blocks_returned_counter = | 593 | 91.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 91.8k | _output_block_bytes_counter = | 595 | 91.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 91.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 91.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 91.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 91.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 91.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 91.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 91.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 91.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 91.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 91.8k | _memory_used_counter = | 606 | 91.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 91.8k | _common_profile->add_info_string("IsColocate", | 608 | 91.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 91.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 91.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 91.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 91.8k | return Status::OK(); | 613 | 91.8k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 64.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 64.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 64.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 64.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 64.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 | 64.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 64.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 64.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 64.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 64.8k | if constexpr (!is_fake_shared) { | 560 | 64.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 64.8k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 64.8k | .first.get() | 563 | 64.8k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 64.8k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 64.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 64.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 64.8k | } 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 | 1 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1 | } | 584 | 64.8k | } | 585 | | | 586 | 64.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 | 64.8k | _rows_returned_counter = | 591 | 64.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 64.8k | _blocks_returned_counter = | 593 | 64.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 64.8k | _output_block_bytes_counter = | 595 | 64.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 64.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 64.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 64.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 64.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 64.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 64.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 64.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 64.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 64.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 64.8k | _memory_used_counter = | 606 | 64.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 64.8k | _common_profile->add_info_string("IsColocate", | 608 | 64.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 64.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 64.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 64.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 64.8k | return Status::OK(); | 613 | 64.8k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 219 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 219 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 219 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 219 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 219 | _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 | 219 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 219 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 219 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 219 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 219 | if constexpr (!is_fake_shared) { | 560 | 219 | 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 | 219 | } 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 | 219 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 219 | _dependency = _shared_state->create_source_dependency( | 576 | 219 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 219 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 219 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 219 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 219 | } | 585 | | | 586 | 219 | 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 | 219 | _rows_returned_counter = | 591 | 219 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 219 | _blocks_returned_counter = | 593 | 219 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 219 | _output_block_bytes_counter = | 595 | 219 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 219 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 219 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 219 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 219 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 219 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 219 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 219 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 219 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 219 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 219 | _memory_used_counter = | 606 | 219 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 219 | _common_profile->add_info_string("IsColocate", | 608 | 219 | std::to_string(_parent->is_colocated_operator())); | 609 | 219 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 219 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 219 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 219 | return Status::OK(); | 613 | 219 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 880k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 880k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 880k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 880k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 880k | _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 | 880k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 880k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 880k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 880k | 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 | 880k | 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 | 880k | _rows_returned_counter = | 591 | 880k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 880k | _blocks_returned_counter = | 593 | 880k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 880k | _output_block_bytes_counter = | 595 | 880k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 880k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 880k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 880k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 880k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 880k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 880k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 880k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 880k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 880k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 880k | _memory_used_counter = | 606 | 880k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 880k | _common_profile->add_info_string("IsColocate", | 608 | 880k | std::to_string(_parent->is_colocated_operator())); | 609 | 880k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 880k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 880k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 880k | return Status::OK(); | 613 | 880k | } |
_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.79k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 3.79k | _dependency = _shared_state->create_source_dependency( | 576 | 3.79k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 3.79k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 3.79k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 49.8k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 49.8k | } | 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 | 7.39k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 7.39k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 7.39k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 7.39k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 7.39k | _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.39k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 7.39k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 7.39k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 7.39k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 7.39k | if constexpr (!is_fake_shared) { | 560 | 7.39k | 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.39k | } 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.38k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 7.38k | _dependency = _shared_state->create_source_dependency( | 576 | 7.38k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 7.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 7.38k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 7.38k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 11 | } | 584 | 7.39k | } | 585 | | | 586 | 7.39k | 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.39k | _rows_returned_counter = | 591 | 7.39k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 7.39k | _blocks_returned_counter = | 593 | 7.39k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 7.39k | _output_block_bytes_counter = | 595 | 7.39k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.39k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 7.39k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 7.39k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 7.39k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 7.39k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 7.39k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 7.39k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 7.39k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 7.39k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 7.39k | _memory_used_counter = | 606 | 7.39k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 7.39k | _common_profile->add_info_string("IsColocate", | 608 | 7.39k | std::to_string(_parent->is_colocated_operator())); | 609 | 7.39k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 7.39k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 7.39k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 7.39k | return Status::OK(); | 613 | 7.39k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 426 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 426 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 426 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 426 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 426 | _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 | 426 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 426 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 426 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 426 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 426 | if constexpr (!is_fake_shared) { | 560 | 426 | 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 | 426 | } 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 | 423 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 423 | _dependency = _shared_state->create_source_dependency( | 576 | 423 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 423 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 423 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 423 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 3 | } | 584 | 426 | } | 585 | | | 586 | 426 | 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 | 426 | _rows_returned_counter = | 591 | 426 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 426 | _blocks_returned_counter = | 593 | 426 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 426 | _output_block_bytes_counter = | 595 | 426 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 426 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 426 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 426 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 426 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 426 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 426 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 426 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 426 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 426 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 426 | _memory_used_counter = | 606 | 426 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 426 | _common_profile->add_info_string("IsColocate", | 608 | 426 | std::to_string(_parent->is_colocated_operator())); | 609 | 426 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 426 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 426 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 426 | return Status::OK(); | 613 | 426 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.26k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.26k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.26k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.26k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.26k | _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.26k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.26k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.26k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.26k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.26k | if constexpr (!is_fake_shared) { | 560 | 5.26k | 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.26k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 5.26k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.26k | _dependency = _shared_state->create_source_dependency( | 576 | 5.26k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.26k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 5 | } | 584 | 5.26k | } | 585 | | | 586 | 5.26k | 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.26k | _rows_returned_counter = | 591 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.26k | _blocks_returned_counter = | 593 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.26k | _output_block_bytes_counter = | 595 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.26k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.26k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.26k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.26k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.26k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.26k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.26k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.26k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.26k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.26k | _memory_used_counter = | 606 | 5.26k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.26k | _common_profile->add_info_string("IsColocate", | 608 | 5.26k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.26k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.26k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.26k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.26k | return Status::OK(); | 613 | 5.26k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 658k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 658k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 658k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 658k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 658k | _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 | 658k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 658k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 658k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 658k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 658k | if constexpr (!is_fake_shared) { | 560 | 658k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 658k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 658k | .first.get() | 563 | 658k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 658k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 658k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 658k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 658k | } 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 | 175 | } else { | 580 | 175 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 175 | DCHECK(false); | 582 | 175 | } | 583 | 175 | } | 584 | 658k | } | 585 | | | 586 | 658k | 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 | 658k | _rows_returned_counter = | 591 | 658k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 658k | _blocks_returned_counter = | 593 | 658k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 658k | _output_block_bytes_counter = | 595 | 658k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 658k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 658k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 658k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 658k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 658k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 658k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 658k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 658k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 658k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 658k | _memory_used_counter = | 606 | 658k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 658k | _common_profile->add_info_string("IsColocate", | 608 | 658k | std::to_string(_parent->is_colocated_operator())); | 609 | 658k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 658k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 658k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 658k | return Status::OK(); | 613 | 658k | } |
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.07M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.07M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.37M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 306k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 306k | } |
621 | 2.07M | if (_parent->has_projection()) { |
622 | 378k | const auto& projection = *_parent->_projection; |
623 | 378k | _projections.resize(projection.projections.size()); |
624 | 2.37M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.99M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.99M | } |
627 | 378k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 393k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 15.2k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 215k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 199k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 199k | state, _intermediate_projections[i][j])); |
633 | 199k | } |
634 | 15.2k | } |
635 | 378k | } |
636 | 2.07M | return Status::OK(); |
637 | 2.07M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 71.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 71.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 72.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.51k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.51k | } | 621 | 71.0k | if (_parent->has_projection()) { | 622 | 71.0k | const auto& projection = *_parent->_projection; | 623 | 71.0k | _projections.resize(projection.projections.size()); | 624 | 390k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 319k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 319k | } | 627 | 71.0k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 77.8k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.83k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 162k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 156k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 156k | state, _intermediate_projections[i][j])); | 633 | 156k | } | 634 | 6.83k | } | 635 | 71.0k | } | 636 | 71.0k | return Status::OK(); | 637 | 71.0k | } |
_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 | 220k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 220k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 220k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 220k | 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 | 220k | return Status::OK(); | 637 | 220k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 24 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 24 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 24 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 24 | 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 | 24 | return Status::OK(); | 637 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.55k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.55k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.64k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 92 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 92 | } | 621 | 6.56k | if (_parent->has_projection()) { | 622 | 6.56k | const auto& projection = *_parent->_projection; | 623 | 6.56k | _projections.resize(projection.projections.size()); | 624 | 31.6k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 25.1k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 25.1k | } | 627 | 6.56k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.60k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 35 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 252 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 217 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 217 | state, _intermediate_projections[i][j])); | 633 | 217 | } | 634 | 35 | } | 635 | 6.56k | } | 636 | 6.55k | return Status::OK(); | 637 | 6.55k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.52k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.52k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 7.21k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 691 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 691 | } | 621 | 6.52k | if (_parent->has_projection()) { | 622 | 3.66k | const auto& projection = *_parent->_projection; | 623 | 3.66k | _projections.resize(projection.projections.size()); | 624 | 14.7k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 11.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 11.0k | } | 627 | 3.66k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 3.77k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 113 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 876 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 763 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 763 | state, _intermediate_projections[i][j])); | 633 | 763 | } | 634 | 113 | } | 635 | 3.66k | } | 636 | 6.52k | return Status::OK(); | 637 | 6.52k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 92.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 92.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 93.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.75k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.75k | } | 621 | 92.0k | if (_parent->has_projection()) { | 622 | 31.0k | const auto& projection = *_parent->_projection; | 623 | 31.0k | _projections.resize(projection.projections.size()); | 624 | 279k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 248k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 248k | } | 627 | 31.0k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 31.2k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 200 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.17k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 974 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 974 | state, _intermediate_projections[i][j])); | 633 | 974 | } | 634 | 200 | } | 635 | 31.0k | } | 636 | 92.0k | return Status::OK(); | 637 | 92.0k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 64.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 64.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 64.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 27 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 27 | } | 621 | 64.8k | if (_parent->has_projection()) { | 622 | 224 | const auto& projection = *_parent->_projection; | 623 | 224 | _projections.resize(projection.projections.size()); | 624 | 993 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 769 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 769 | } | 627 | 224 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 225 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 1 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 10 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 10 | state, _intermediate_projections[i][j])); | 633 | 10 | } | 634 | 1 | } | 635 | 224 | } | 636 | 64.8k | return Status::OK(); | 637 | 64.8k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 223 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 223 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 223 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 223 | if (_parent->has_projection()) { | 622 | 204 | const auto& projection = *_parent->_projection; | 623 | 204 | _projections.resize(projection.projections.size()); | 624 | 612 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 408 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 408 | } | 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 | 223 | return Status::OK(); | 637 | 223 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 884k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 884k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.18M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 301k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 301k | } | 621 | 884k | if (_parent->has_projection()) { | 622 | 254k | const auto& projection = *_parent->_projection; | 623 | 254k | _projections.resize(projection.projections.size()); | 624 | 1.54M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.29M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.29M | } | 627 | 254k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 262k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 7.89k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 47.6k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 39.7k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 39.7k | state, _intermediate_projections[i][j])); | 633 | 39.7k | } | 634 | 7.89k | } | 635 | 254k | } | 636 | 884k | return Status::OK(); | 637 | 884k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 53.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 53.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 53.9k | 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.9k | if (_parent->has_projection()) { | 622 | 11.3k | const auto& projection = *_parent->_projection; | 623 | 11.3k | _projections.resize(projection.projections.size()); | 624 | 110k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 99.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 99.0k | } | 627 | 11.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.4k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 117 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 2.15k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2.04k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2.04k | state, _intermediate_projections[i][j])); | 633 | 2.04k | } | 634 | 117 | } | 635 | 11.3k | } | 636 | 53.9k | return Status::OK(); | 637 | 53.9k | } |
_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 | 7.36k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 7.36k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.13k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 768 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 768 | } | 621 | 7.36k | 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 | 7.36k | return Status::OK(); | 637 | 7.36k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 427 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 427 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 427 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 427 | 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 | 427 | return Status::OK(); | 637 | 427 | } |
_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 | 659k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 659k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 659k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 659k | 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 | 659k | return Status::OK(); | 637 | 659k | } |
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 | 7.78k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.78k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 7.78k | _terminated = true; |
645 | 7.78k | return Status::OK(); |
646 | 7.78k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 364 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 364 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 364 | _terminated = true; | 645 | 364 | return Status::OK(); | 646 | 364 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 26 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 26 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 26 | _terminated = true; | 645 | 26 | return Status::OK(); | 646 | 26 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 29 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 29 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 29 | _terminated = true; | 645 | 29 | return Status::OK(); | 646 | 29 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_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 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 58 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 58 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 58 | _terminated = true; | 645 | 58 | return Status::OK(); | 646 | 58 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.89k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.89k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5.89k | _terminated = true; | 645 | 5.89k | return Status::OK(); | 646 | 5.89k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_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_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5 | _terminated = true; | 645 | 5 | return Status::OK(); | 646 | 5 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.36k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.36k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.36k | _terminated = true; | 645 | 1.36k | return Status::OK(); | 646 | 1.36k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 36 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 36 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 36 | _terminated = true; | 645 | 36 | return Status::OK(); | 646 | 36 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.32M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.32M | if (_closed) { |
651 | 246k | return Status::OK(); |
652 | 246k | } |
653 | 2.07M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.18M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.18M | } |
656 | 2.07M | _closed = true; |
657 | 2.07M | return Status::OK(); |
658 | 2.32M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 70.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 70.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 70.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 70.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 70.9k | } | 656 | 70.9k | _closed = true; | 657 | 70.9k | return Status::OK(); | 658 | 70.9k | } |
_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 | 439k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 439k | if (_closed) { | 651 | 219k | return Status::OK(); | 652 | 219k | } | 653 | 219k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 219k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 219k | } | 656 | 219k | _closed = true; | 657 | 219k | return Status::OK(); | 658 | 439k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 24 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 24 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 24 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 24 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 24 | } | 656 | 24 | _closed = true; | 657 | 24 | return Status::OK(); | 658 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.55k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.55k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.55k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.55k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.55k | } | 656 | 6.55k | _closed = true; | 657 | 6.55k | return Status::OK(); | 658 | 6.55k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 13.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 13.1k | if (_closed) { | 651 | 6.65k | return Status::OK(); | 652 | 6.65k | } | 653 | 6.51k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.51k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.51k | } | 656 | 6.51k | _closed = true; | 657 | 6.51k | return Status::OK(); | 658 | 13.1k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 91.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 91.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 91.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 91.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 91.6k | } | 656 | 91.6k | _closed = true; | 657 | 91.6k | return Status::OK(); | 658 | 91.6k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 64.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 64.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 64.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 64.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 64.6k | } | 656 | 64.6k | _closed = true; | 657 | 64.6k | return Status::OK(); | 658 | 64.6k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 218 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 218 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 218 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 218 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 218 | } | 656 | 218 | _closed = true; | 657 | 218 | return Status::OK(); | 658 | 218 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 899k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 899k | if (_closed) { | 651 | 14.3k | return Status::OK(); | 652 | 14.3k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 885k | _closed = true; | 657 | 885k | return Status::OK(); | 658 | 899k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 53.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 53.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 53.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 53.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 53.9k | } | 656 | 53.9k | _closed = true; | 657 | 53.9k | return Status::OK(); | 658 | 53.9k | } |
_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 | 7.36k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 7.36k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 7.36k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 7.36k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 7.36k | } | 656 | 7.36k | _closed = true; | 657 | 7.36k | return Status::OK(); | 658 | 7.36k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 649 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 649 | if (_closed) { | 651 | 325 | return Status::OK(); | 652 | 325 | } | 653 | 324 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 324 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 324 | } | 656 | 324 | _closed = true; | 657 | 324 | return Status::OK(); | 658 | 649 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.8k | if (_closed) { | 651 | 5.61k | return Status::OK(); | 652 | 5.61k | } | 653 | 5.25k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.25k | } | 656 | 5.25k | _closed = true; | 657 | 5.25k | return Status::OK(); | 658 | 10.8k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 660k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 660k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 660k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 660k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 660k | } | 656 | 660k | _closed = true; | 657 | 660k | return Status::OK(); | 658 | 660k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 338 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 338 | if (_closed) { | 651 | 178 | return Status::OK(); | 652 | 178 | } | 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 | 338 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.72M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.72M | _operator_profile = |
664 | 1.72M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.72M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.72M | _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.72M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.72M | _operator_profile->add_child(_common_profile, true); |
673 | 1.72M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.72M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.72M | _wait_for_finish_dependency_timer = |
677 | 1.72M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.72M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.72M | if constexpr (!is_fake_shared) { |
680 | 1.20M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.20M | info.shared_state_map.end()) { |
682 | 332k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 255k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 255k | } |
685 | 332k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 332k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 332k | ? 0 |
688 | 332k | : info.task_idx] |
689 | 332k | .get(); |
690 | 332k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 877k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 877k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 877k | _dependency = _shared_state->create_sink_dependency( |
697 | 877k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 877k | } |
699 | 1.20M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.20M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.20M | } |
702 | | |
703 | 1.72M | 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.72M | _rows_input_counter = |
708 | 1.72M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.72M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.72M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.72M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.72M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.72M | _memory_used_counter = |
714 | 1.72M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.72M | _common_profile->add_info_string("IsColocate", |
716 | 1.72M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.72M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.72M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.72M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.72M | return Status::OK(); |
721 | 1.72M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 118k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 118k | _operator_profile = | 664 | 118k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 118k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 118k | _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 | 118k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 118k | _operator_profile->add_child(_common_profile, true); | 673 | 118k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 118k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 118k | _wait_for_finish_dependency_timer = | 677 | 118k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 118k | if constexpr (!is_fake_shared) { | 680 | 118k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 118k | 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 | 12.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 12.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 12.4k | ? 0 | 688 | 12.4k | : info.task_idx] | 689 | 12.4k | .get(); | 690 | 12.4k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 106k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 106k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 106k | _dependency = _shared_state->create_sink_dependency( | 697 | 106k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 106k | } | 699 | 118k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 118k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 118k | } | 702 | | | 703 | 118k | 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 | 118k | _rows_input_counter = | 708 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 118k | _memory_used_counter = | 714 | 118k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 118k | _common_profile->add_info_string("IsColocate", | 716 | 118k | std::to_string(_parent->is_colocated_operator())); | 717 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 118k | return Status::OK(); | 721 | 118k | } |
_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 | 219k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 219k | _operator_profile = | 664 | 219k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 219k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 219k | _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 | 219k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 219k | _operator_profile->add_child(_common_profile, true); | 673 | 219k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 219k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 219k | _wait_for_finish_dependency_timer = | 677 | 219k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 219k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 219k | if constexpr (!is_fake_shared) { | 680 | 219k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 219k | 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 | 219k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 219k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 219k | _dependency = _shared_state->create_sink_dependency( | 697 | 219k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 219k | } | 699 | 219k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 219k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 219k | } | 702 | | | 703 | 219k | 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 | 219k | _rows_input_counter = | 708 | 219k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 219k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 219k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 219k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 219k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 219k | _memory_used_counter = | 714 | 219k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 219k | _common_profile->add_info_string("IsColocate", | 716 | 219k | std::to_string(_parent->is_colocated_operator())); | 717 | 219k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 219k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 219k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 219k | return Status::OK(); | 721 | 219k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 31 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 31 | _operator_profile = | 664 | 31 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 31 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 31 | _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 | 31 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 31 | _operator_profile->add_child(_common_profile, true); | 673 | 31 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 31 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 31 | _wait_for_finish_dependency_timer = | 677 | 31 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 31 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 31 | if constexpr (!is_fake_shared) { | 680 | 31 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 31 | 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 | 31 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 31 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 31 | _dependency = _shared_state->create_sink_dependency( | 697 | 31 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 31 | } | 699 | 31 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 31 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 31 | } | 702 | | | 703 | 31 | 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 | 31 | _rows_input_counter = | 708 | 31 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 31 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 31 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 31 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 31 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 31 | _memory_used_counter = | 714 | 31 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 31 | _common_profile->add_info_string("IsColocate", | 716 | 31 | std::to_string(_parent->is_colocated_operator())); | 717 | 31 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 31 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 31 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 31 | return Status::OK(); | 721 | 31 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.56k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.56k | _operator_profile = | 664 | 6.56k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.56k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.56k | _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 | 6.56k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.56k | _operator_profile->add_child(_common_profile, true); | 673 | 6.56k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.56k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.56k | _wait_for_finish_dependency_timer = | 677 | 6.56k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.56k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.56k | if constexpr (!is_fake_shared) { | 680 | 6.56k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.56k | 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 | 6.56k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.56k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.56k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.56k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.56k | } | 699 | 6.56k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.56k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.56k | } | 702 | | | 703 | 6.56k | 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 | 6.56k | _rows_input_counter = | 708 | 6.56k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.56k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.56k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.56k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.56k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.56k | _memory_used_counter = | 714 | 6.56k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.56k | _common_profile->add_info_string("IsColocate", | 716 | 6.56k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.56k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.56k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.56k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.56k | return Status::OK(); | 721 | 6.56k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.48k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.48k | _operator_profile = | 664 | 6.48k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.48k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.48k | _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 | 6.48k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.48k | _operator_profile->add_child(_common_profile, true); | 673 | 6.48k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.48k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.48k | _wait_for_finish_dependency_timer = | 677 | 6.48k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.48k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.48k | if constexpr (!is_fake_shared) { | 680 | 6.48k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.48k | 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 | 6.48k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.48k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.48k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.48k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.48k | } | 699 | 6.48k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.48k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.48k | } | 702 | | | 703 | 6.48k | 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 | 6.48k | _rows_input_counter = | 708 | 6.48k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.48k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.48k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.48k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.48k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.48k | _memory_used_counter = | 714 | 6.48k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.48k | _common_profile->add_info_string("IsColocate", | 716 | 6.48k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.48k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.48k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.48k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.48k | return Status::OK(); | 721 | 6.48k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 91.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 91.8k | _operator_profile = | 664 | 91.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 91.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 91.8k | _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 | 91.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 91.8k | _operator_profile->add_child(_common_profile, true); | 673 | 91.8k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 91.8k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 91.8k | _wait_for_finish_dependency_timer = | 677 | 91.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 91.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 91.8k | if constexpr (!is_fake_shared) { | 680 | 91.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 91.8k | 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 | 91.8k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 91.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 91.8k | _dependency = _shared_state->create_sink_dependency( | 697 | 91.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 91.8k | } | 699 | 91.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 91.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 91.8k | } | 702 | | | 703 | 91.8k | 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 | 91.8k | _rows_input_counter = | 708 | 91.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 91.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 91.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 91.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 91.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 91.8k | _memory_used_counter = | 714 | 91.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 91.8k | _common_profile->add_info_string("IsColocate", | 716 | 91.8k | std::to_string(_parent->is_colocated_operator())); | 717 | 91.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 91.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 91.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 91.8k | return Status::OK(); | 721 | 91.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 64.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 64.6k | _operator_profile = | 664 | 64.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 64.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 64.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 | 64.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 64.6k | _operator_profile->add_child(_common_profile, true); | 673 | 64.6k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 64.6k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 64.6k | _wait_for_finish_dependency_timer = | 677 | 64.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 64.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 64.6k | if constexpr (!is_fake_shared) { | 680 | 64.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 64.8k | 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 | 64.8k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 64.8k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 64.8k | ? 0 | 688 | 64.8k | : info.task_idx] | 689 | 64.8k | .get(); | 690 | 64.8k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 64.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 64.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 64.6k | } | 702 | | | 703 | 64.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 | 64.6k | _rows_input_counter = | 708 | 64.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 64.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 64.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 64.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 64.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 64.6k | _memory_used_counter = | 714 | 64.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 64.6k | _common_profile->add_info_string("IsColocate", | 716 | 64.6k | std::to_string(_parent->is_colocated_operator())); | 717 | 64.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 64.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 64.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 64.6k | return Status::OK(); | 721 | 64.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 229 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 229 | _operator_profile = | 664 | 229 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 229 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 229 | _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 | 229 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 229 | _operator_profile->add_child(_common_profile, true); | 673 | 229 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 229 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 229 | _wait_for_finish_dependency_timer = | 677 | 229 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 229 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 229 | if constexpr (!is_fake_shared) { | 680 | 229 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 229 | 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 | 229 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 229 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 229 | _dependency = _shared_state->create_sink_dependency( | 697 | 229 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 229 | } | 699 | 229 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 229 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 229 | } | 702 | | | 703 | 229 | 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 | 229 | _rows_input_counter = | 708 | 229 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 229 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 229 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 229 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 229 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 229 | _memory_used_counter = | 714 | 229 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 229 | _common_profile->add_info_string("IsColocate", | 716 | 229 | std::to_string(_parent->is_colocated_operator())); | 717 | 229 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 229 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 229 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 229 | return Status::OK(); | 721 | 229 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 517k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 517k | _operator_profile = | 664 | 517k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 517k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 517k | _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 | 517k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 517k | _operator_profile->add_child(_common_profile, true); | 673 | 517k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 517k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 517k | _wait_for_finish_dependency_timer = | 677 | 517k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 517k | 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 | 517k | 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 | 517k | _rows_input_counter = | 708 | 517k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 517k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 517k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 517k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 517k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 517k | _memory_used_counter = | 714 | 517k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 517k | _common_profile->add_info_string("IsColocate", | 716 | 517k | std::to_string(_parent->is_colocated_operator())); | 717 | 517k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 517k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 517k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 517k | return Status::OK(); | 721 | 517k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.42k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.42k | _operator_profile = | 664 | 8.42k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.42k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.42k | _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.42k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.42k | _operator_profile->add_child(_common_profile, true); | 673 | 8.42k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.42k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.42k | _wait_for_finish_dependency_timer = | 677 | 8.42k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.42k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.42k | if constexpr (!is_fake_shared) { | 680 | 8.42k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.42k | 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.42k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.42k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.42k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.42k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.42k | } | 699 | 8.42k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.42k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.42k | } | 702 | | | 703 | 8.42k | 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.42k | _rows_input_counter = | 708 | 8.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.42k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.42k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.42k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.42k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.42k | _memory_used_counter = | 714 | 8.42k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.42k | _common_profile->add_info_string("IsColocate", | 716 | 8.42k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.42k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.42k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.42k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.42k | return Status::OK(); | 721 | 8.42k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 425 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 425 | _operator_profile = | 664 | 425 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 425 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 425 | _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 | 425 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 425 | _operator_profile->add_child(_common_profile, true); | 673 | 425 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 425 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 425 | _wait_for_finish_dependency_timer = | 677 | 425 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 425 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 425 | if constexpr (!is_fake_shared) { | 680 | 425 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 425 | 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 | 425 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 425 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 425 | _dependency = _shared_state->create_sink_dependency( | 697 | 425 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 425 | } | 699 | 425 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 425 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 425 | } | 702 | | | 703 | 426 | 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 | 425 | _rows_input_counter = | 708 | 425 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 425 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 425 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 425 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 425 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 425 | _memory_used_counter = | 714 | 425 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 425 | _common_profile->add_info_string("IsColocate", | 716 | 425 | std::to_string(_parent->is_colocated_operator())); | 717 | 425 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 425 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 425 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 425 | return Status::OK(); | 721 | 425 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 3.12k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 3.12k | _operator_profile = | 664 | 3.12k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 3.12k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 3.12k | _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 | 3.12k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 3.12k | _operator_profile->add_child(_common_profile, true); | 673 | 3.12k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 3.12k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 3.12k | _wait_for_finish_dependency_timer = | 677 | 3.12k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 3.12k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 3.12k | if constexpr (!is_fake_shared) { | 680 | 3.12k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 3.12k | 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 | 3.12k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 3.12k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 3.12k | _dependency = _shared_state->create_sink_dependency( | 697 | 3.12k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 3.12k | } | 699 | 3.12k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 3.12k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 3.12k | } | 702 | | | 703 | 3.13k | 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 | 3.12k | _rows_input_counter = | 708 | 3.12k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 3.12k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 3.12k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 3.12k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 3.12k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 3.12k | _memory_used_counter = | 714 | 3.12k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 3.12k | _common_profile->add_info_string("IsColocate", | 716 | 3.12k | std::to_string(_parent->is_colocated_operator())); | 717 | 3.12k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 3.12k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 3.12k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 3.12k | return Status::OK(); | 721 | 3.12k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.8k | _operator_profile = | 664 | 12.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.8k | _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.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.8k | _operator_profile->add_child(_common_profile, true); | 673 | 12.8k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.8k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.8k | _wait_for_finish_dependency_timer = | 677 | 12.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.8k | if constexpr (!is_fake_shared) { | 680 | 12.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.8k | 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.8k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.8k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.8k | } | 699 | 12.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.8k | } | 702 | | | 703 | 12.8k | 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.8k | _rows_input_counter = | 708 | 12.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.8k | _memory_used_counter = | 714 | 12.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.8k | _common_profile->add_info_string("IsColocate", | 716 | 12.8k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.8k | return Status::OK(); | 721 | 12.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 254k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 254k | _operator_profile = | 664 | 254k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 254k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 254k | _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 | 254k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 254k | _operator_profile->add_child(_common_profile, true); | 673 | 254k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 254k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 254k | _wait_for_finish_dependency_timer = | 677 | 254k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 254k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 254k | if constexpr (!is_fake_shared) { | 680 | 254k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 255k | info.shared_state_map.end()) { | 682 | 255k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 255k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 255k | } | 685 | 255k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 255k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 255k | ? 0 | 688 | 18.4E | : info.task_idx] | 689 | 255k | .get(); | 690 | 255k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | 18.4E | DCHECK(false); | 694 | 18.4E | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 254k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 254k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 254k | } | 702 | | | 703 | 254k | 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 | 254k | _rows_input_counter = | 708 | 254k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 254k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 254k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 254k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 254k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 254k | _memory_used_counter = | 714 | 254k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 254k | _common_profile->add_info_string("IsColocate", | 716 | 254k | std::to_string(_parent->is_colocated_operator())); | 717 | 254k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 254k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 254k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 254k | return Status::OK(); | 721 | 254k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 422k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 422k | _operator_profile = | 664 | 422k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 422k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 422k | _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 | 422k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 422k | _operator_profile->add_child(_common_profile, true); | 673 | 422k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 422k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 422k | _wait_for_finish_dependency_timer = | 677 | 422k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 422k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 422k | if constexpr (!is_fake_shared) { | 680 | 422k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 422k | 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 | 422k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 422k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 422k | _dependency = _shared_state->create_sink_dependency( | 697 | 422k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 422k | } | 699 | 422k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 422k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 422k | } | 702 | | | 703 | 422k | 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 | 422k | _rows_input_counter = | 708 | 422k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 422k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 422k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 422k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 422k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 422k | _memory_used_counter = | 714 | 422k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 422k | _common_profile->add_info_string("IsColocate", | 716 | 422k | std::to_string(_parent->is_colocated_operator())); | 717 | 422k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 422k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 422k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 422k | return Status::OK(); | 721 | 422k | } |
_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.73M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.73M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.73M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.21M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.21M | } |
731 | 1.73M | _closed = true; |
732 | 1.73M | return Status::OK(); |
733 | 1.73M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 119k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 119k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 119k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 119k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 119k | } | 731 | 119k | _closed = true; | 732 | 119k | return Status::OK(); | 733 | 119k | } |
_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 | 220k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 220k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 220k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 220k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 220k | } | 731 | 220k | _closed = true; | 732 | 220k | return Status::OK(); | 733 | 220k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 22 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 22 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 20 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 20 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 20 | } | 731 | 20 | _closed = true; | 732 | 20 | return Status::OK(); | 733 | 22 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.56k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.56k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.56k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.56k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.56k | } | 731 | 6.56k | _closed = true; | 732 | 6.56k | return Status::OK(); | 733 | 6.56k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.50k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.50k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.50k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.50k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.50k | } | 731 | 6.50k | _closed = true; | 732 | 6.50k | return Status::OK(); | 733 | 6.50k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 91.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 91.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 91.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 91.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 91.6k | } | 731 | 91.6k | _closed = true; | 732 | 91.6k | return Status::OK(); | 733 | 91.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 64.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 64.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 64.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 64.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 64.7k | } | 731 | 64.7k | _closed = true; | 732 | 64.7k | return Status::OK(); | 733 | 64.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 218 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 218 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 218 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 218 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 218 | } | 731 | 218 | _closed = true; | 732 | 218 | return Status::OK(); | 733 | 218 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 521k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 521k | 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 | 521k | _closed = true; | 732 | 521k | return Status::OK(); | 733 | 521k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.43k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.43k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.43k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.43k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.43k | } | 731 | 8.43k | _closed = true; | 732 | 8.43k | return Status::OK(); | 733 | 8.43k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 325 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 325 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 325 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 325 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 325 | } | 731 | 325 | _closed = true; | 732 | 325 | return Status::OK(); | 733 | 325 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 3.15k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 3.15k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 3.15k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 3.15k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 3.15k | } | 731 | 3.15k | _closed = true; | 732 | 3.15k | return Status::OK(); | 733 | 3.15k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.8k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.8k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.8k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.8k | } | 731 | 12.8k | _closed = true; | 732 | 12.8k | return Status::OK(); | 733 | 12.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 255k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 255k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 255k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 255k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 255k | } | 731 | 255k | _closed = true; | 732 | 255k | return Status::OK(); | 733 | 255k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 423k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 423k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 423k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 423k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 423k | } | 731 | 423k | _closed = true; | 732 | 423k | return Status::OK(); | 733 | 423k | } |
_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 | 7.10k | bool* eos) { |
738 | 7.10k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 7.10k | return pull(state, block, eos); |
740 | 7.10k | } _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.06k | bool* eos) { | 738 | 7.06k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 7.06k | return pull(state, block, eos); | 740 | 7.06k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 564k | bool* eos) { |
745 | 564k | auto& local_state = get_local_state(state); |
746 | 564k | if (need_more_input_data(state)) { |
747 | 533k | local_state._child_block->clear_column_data( |
748 | 533k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 533k | .num_materialized_slots()); |
750 | 533k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 533k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 533k | *eos = local_state._child_eos; |
753 | 533k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 70.9k | return Status::OK(); |
755 | 70.9k | } |
756 | 462k | { |
757 | 462k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 462k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 462k | } |
760 | 462k | } |
761 | | |
762 | 493k | if (!need_more_input_data(state)) { |
763 | 463k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 463k | bool new_eos = false; |
765 | 463k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 463k | if (new_eos) { |
767 | 383k | *eos = true; |
768 | 383k | } else if (!need_more_input_data(state)) { |
769 | 24.5k | *eos = false; |
770 | 24.5k | } |
771 | 463k | } |
772 | 493k | return Status::OK(); |
773 | 493k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 143k | bool* eos) { | 745 | 143k | auto& local_state = get_local_state(state); | 746 | 143k | if (need_more_input_data(state)) { | 747 | 125k | local_state._child_block->clear_column_data( | 748 | 125k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 125k | .num_materialized_slots()); | 750 | 125k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 125k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 125k | *eos = local_state._child_eos; | 753 | 125k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 38.0k | return Status::OK(); | 755 | 38.0k | } | 756 | 87.7k | { | 757 | 87.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 87.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 87.7k | } | 760 | 87.7k | } | 761 | | | 762 | 105k | if (!need_more_input_data(state)) { | 763 | 105k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 105k | bool new_eos = false; | 765 | 105k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 105k | if (new_eos) { | 767 | 46.7k | *eos = true; | 768 | 59.1k | } else if (!need_more_input_data(state)) { | 769 | 10.4k | *eos = false; | 770 | 10.4k | } | 771 | 105k | } | 772 | 105k | return Status::OK(); | 773 | 105k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.54k | bool* eos) { | 745 | 4.54k | auto& local_state = get_local_state(state); | 746 | 4.54k | if (need_more_input_data(state)) { | 747 | 2.55k | local_state._child_block->clear_column_data( | 748 | 2.55k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.55k | .num_materialized_slots()); | 750 | 2.55k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.55k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.55k | *eos = local_state._child_eos; | 753 | 2.55k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 638 | return Status::OK(); | 755 | 638 | } | 756 | 1.91k | { | 757 | 1.91k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.91k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.91k | } | 760 | 1.91k | } | 761 | | | 762 | 3.90k | if (!need_more_input_data(state)) { | 763 | 3.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.90k | bool new_eos = false; | 765 | 3.90k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.90k | if (new_eos) { | 767 | 1.27k | *eos = true; | 768 | 2.63k | } else if (!need_more_input_data(state)) { | 769 | 1.98k | *eos = false; | 770 | 1.98k | } | 771 | 3.90k | } | 772 | 3.90k | return Status::OK(); | 773 | 3.90k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.88k | bool* eos) { | 745 | 1.88k | auto& local_state = get_local_state(state); | 746 | 1.88k | if (need_more_input_data(state)) { | 747 | 1.88k | local_state._child_block->clear_column_data( | 748 | 1.88k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.88k | .num_materialized_slots()); | 750 | 1.88k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.88k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.88k | *eos = local_state._child_eos; | 753 | 1.88k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 767 | return Status::OK(); | 755 | 767 | } | 756 | 1.11k | { | 757 | 1.11k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.11k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.11k | } | 760 | 1.11k | } | 761 | | | 762 | 1.11k | if (!need_more_input_data(state)) { | 763 | 1.11k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.11k | bool new_eos = false; | 765 | 1.11k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.11k | if (new_eos) { | 767 | 785 | *eos = true; | 768 | 785 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.11k | } | 772 | 1.11k | return Status::OK(); | 773 | 1.11k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 17.5k | bool* eos) { | 745 | 17.5k | auto& local_state = get_local_state(state); | 746 | 17.6k | if (need_more_input_data(state)) { | 747 | 17.6k | local_state._child_block->clear_column_data( | 748 | 17.6k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 17.6k | .num_materialized_slots()); | 750 | 17.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 17.6k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 17.6k | *eos = local_state._child_eos; | 753 | 17.6k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 5.85k | return Status::OK(); | 755 | 5.85k | } | 756 | 11.7k | { | 757 | 11.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 11.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 11.7k | } | 760 | 11.7k | } | 761 | | | 762 | 11.7k | if (!need_more_input_data(state)) { | 763 | 5.64k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.64k | bool new_eos = false; | 765 | 5.64k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.64k | if (new_eos) { | 767 | 5.58k | *eos = true; | 768 | 5.58k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 5.64k | } | 772 | 11.7k | return Status::OK(); | 773 | 11.7k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 367k | bool* eos) { | 745 | 367k | auto& local_state = get_local_state(state); | 746 | 368k | if (need_more_input_data(state)) { | 747 | 368k | local_state._child_block->clear_column_data( | 748 | 368k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 368k | .num_materialized_slots()); | 750 | 368k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 368k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 368k | *eos = local_state._child_eos; | 753 | 368k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 23.9k | return Status::OK(); | 755 | 23.9k | } | 756 | 344k | { | 757 | 344k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 344k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 344k | } | 760 | 344k | } | 761 | | | 762 | 343k | if (!need_more_input_data(state)) { | 763 | 319k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 319k | bool new_eos = false; | 765 | 319k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 319k | if (new_eos) { | 767 | 319k | *eos = true; | 768 | 319k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 319k | } | 772 | 343k | return Status::OK(); | 773 | 343k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.9k | bool* eos) { | 745 | 22.9k | auto& local_state = get_local_state(state); | 746 | 22.9k | if (need_more_input_data(state)) { | 747 | 11.2k | local_state._child_block->clear_column_data( | 748 | 11.2k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.2k | .num_materialized_slots()); | 750 | 11.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.2k | *eos = local_state._child_eos; | 753 | 11.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 975 | return Status::OK(); | 755 | 975 | } | 756 | 10.2k | { | 757 | 10.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.2k | } | 760 | 10.2k | } | 761 | | | 762 | 21.9k | if (!need_more_input_data(state)) { | 763 | 21.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 21.4k | bool new_eos = false; | 765 | 21.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 21.4k | if (new_eos) { | 767 | 6.51k | *eos = true; | 768 | 14.9k | } else if (!need_more_input_data(state)) { | 769 | 11.7k | *eos = false; | 770 | 11.7k | } | 771 | 21.4k | } | 772 | 21.9k | return Status::OK(); | 773 | 21.9k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 6.36k | bool* eos) { | 745 | 6.36k | auto& local_state = get_local_state(state); | 746 | 6.36k | if (need_more_input_data(state)) { | 747 | 6.00k | local_state._child_block->clear_column_data( | 748 | 6.00k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 6.00k | .num_materialized_slots()); | 750 | 6.00k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 6.00k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 6.00k | *eos = local_state._child_eos; | 753 | 6.00k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 736 | return Status::OK(); | 755 | 736 | } | 756 | 5.26k | { | 757 | 5.26k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 5.26k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 5.26k | } | 760 | 5.26k | } | 761 | | | 762 | 5.62k | if (!need_more_input_data(state)) { | 763 | 5.62k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.62k | bool new_eos = false; | 765 | 5.62k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.62k | if (new_eos) { | 767 | 3.65k | *eos = true; | 768 | 3.65k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 5.62k | } | 772 | 5.61k | return Status::OK(); | 773 | 5.61k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 46.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 46.3k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 46.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 46.3k | "AsyncWriterDependency", true); |
781 | 46.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 46.3k | _finish_dependency)); |
783 | | |
784 | 46.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 46.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 46.3k | return Status::OK(); |
787 | 46.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 362 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 362 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 362 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 362 | "AsyncWriterDependency", true); | 781 | 362 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 362 | _finish_dependency)); | 783 | | | 784 | 362 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 362 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 362 | return Status::OK(); | 787 | 362 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 45.6k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 45.6k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 45.6k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 45.6k | "AsyncWriterDependency", true); | 781 | 45.6k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 45.6k | _finish_dependency)); | 783 | | | 784 | 45.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 45.6k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 45.6k | return Status::OK(); | 787 | 45.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 333 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 333 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 333 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 333 | "AsyncWriterDependency", true); | 781 | 333 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 333 | _finish_dependency)); | 783 | | | 784 | 333 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 333 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 333 | return Status::OK(); | 787 | 333 | } |
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 | 46.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 46.6k | RETURN_IF_ERROR(Base::open(state)); |
793 | 46.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 358k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 312k | RETURN_IF_ERROR( |
796 | 312k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 312k | } |
798 | 46.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 46.6k | return Status::OK(); |
800 | 46.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 361 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 361 | RETURN_IF_ERROR(Base::open(state)); | 793 | 361 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.86k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.50k | RETURN_IF_ERROR( | 796 | 1.50k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.50k | } | 798 | 361 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 361 | return Status::OK(); | 800 | 361 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 45.9k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 45.9k | RETURN_IF_ERROR(Base::open(state)); | 793 | 45.9k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 355k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 309k | RETURN_IF_ERROR( | 796 | 309k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 309k | } | 798 | 45.9k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 45.9k | return Status::OK(); | 800 | 45.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 331 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 331 | RETURN_IF_ERROR(Base::open(state)); | 793 | 331 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.67k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.34k | RETURN_IF_ERROR( | 796 | 1.34k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.34k | } | 798 | 331 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 331 | return Status::OK(); | 800 | 331 | } |
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 | 61.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 61.2k | return _writer->sink(block, eos); |
806 | 61.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.18k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.18k | return _writer->sink(block, eos); | 806 | 1.18k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 59.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 59.7k | return _writer->sink(block, eos); | 806 | 59.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 317 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 317 | return _writer->sink(block, eos); | 806 | 317 | } |
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 | 46.5k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 46.5k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 46.5k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 46.5k | 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 | 46.6k | if (_writer) { |
818 | 46.6k | Status st = _writer->get_writer_status(); |
819 | 46.6k | if (exec_status.ok()) { |
820 | 46.5k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 46.5k | : Status::Cancelled("force close")); |
822 | 46.5k | } else { |
823 | 63 | _writer->force_close(exec_status); |
824 | 63 | } |
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 | 46.6k | RETURN_IF_ERROR(st); |
829 | 46.6k | } |
830 | 46.5k | return Base::close(state, exec_status); |
831 | 46.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 350 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 350 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 350 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 350 | 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 | 350 | if (_writer) { | 818 | 350 | Status st = _writer->get_writer_status(); | 819 | 350 | if (exec_status.ok()) { | 820 | 350 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 350 | : Status::Cancelled("force close")); | 822 | 350 | } 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 | 350 | RETURN_IF_ERROR(st); | 829 | 350 | } | 830 | 350 | return Base::close(state, exec_status); | 831 | 350 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 45.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 45.9k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 45.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 45.9k | 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 | 45.9k | if (_writer) { | 818 | 45.9k | Status st = _writer->get_writer_status(); | 819 | 45.9k | if (exec_status.ok()) { | 820 | 45.8k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 45.8k | : Status::Cancelled("force close")); | 822 | 45.8k | } else { | 823 | 55 | _writer->force_close(exec_status); | 824 | 55 | } | 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 | 45.9k | RETURN_IF_ERROR(st); | 829 | 45.9k | } | 830 | 45.8k | return Base::close(state, exec_status); | 831 | 45.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 325 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 325 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 325 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 325 | 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 | 325 | if (_writer) { | 818 | 325 | Status st = _writer->get_writer_status(); | 819 | 325 | if (exec_status.ok()) { | 820 | 317 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 317 | : Status::Cancelled("force close")); | 822 | 317 | } else { | 823 | 8 | _writer->force_close(exec_status); | 824 | 8 | } | 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 | 325 | RETURN_IF_ERROR(st); | 829 | 325 | } | 830 | 325 | return Base::close(state, exec_status); | 831 | 325 | } |
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 |