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/paimon_table_sink_operator.h" |
68 | | #include "exec/operator/partition_sort_sink_operator.h" |
69 | | #include "exec/operator/partition_sort_source_operator.h" |
70 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
71 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
72 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
73 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
75 | | #include "exec/operator/rec_cte_scan_operator.h" |
76 | | #include "exec/operator/rec_cte_sink_operator.h" |
77 | | #include "exec/operator/rec_cte_source_operator.h" |
78 | | #include "exec/operator/repeat_operator.h" |
79 | | #include "exec/operator/result_file_sink_operator.h" |
80 | | #include "exec/operator/result_sink_operator.h" |
81 | | #include "exec/operator/schema_scan_operator.h" |
82 | | #include "exec/operator/select_operator.h" |
83 | | #include "exec/operator/set_probe_sink_operator.h" |
84 | | #include "exec/operator/set_sink_operator.h" |
85 | | #include "exec/operator/set_source_operator.h" |
86 | | #include "exec/operator/sort_sink_operator.h" |
87 | | #include "exec/operator/sort_source_operator.h" |
88 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
89 | | #include "exec/operator/spill_sort_sink_operator.h" |
90 | | #include "exec/operator/spill_sort_source_operator.h" |
91 | | #include "exec/operator/streaming_aggregation_operator.h" |
92 | | #include "exec/operator/table_function_operator.h" |
93 | | #include "exec/operator/tvf_table_sink_operator.h" |
94 | | #include "exec/operator/union_sink_operator.h" |
95 | | #include "exec/operator/union_source_operator.h" |
96 | | #include "exec/pipeline/dependency.h" |
97 | | #include "exec/pipeline/pipeline.h" |
98 | | #include "exprs/vexpr.h" |
99 | | #include "exprs/vexpr_context.h" |
100 | | #include "runtime/runtime_profile.h" |
101 | | #include "runtime/runtime_profile_counter_names.h" |
102 | | #include "util/debug_util.h" |
103 | | #include "util/string_util.h" |
104 | | |
105 | | namespace doris { |
106 | | class RowDescriptor; |
107 | | class RuntimeState; |
108 | | } // namespace doris |
109 | | |
110 | | namespace doris { |
111 | | |
112 | 0 | Status OperatorBase::close(RuntimeState* state) { |
113 | 0 | if (_is_closed) { |
114 | 0 | return Status::OK(); |
115 | 0 | } |
116 | 0 | _is_closed = true; |
117 | 0 | return Status::OK(); |
118 | 0 | } |
119 | | |
120 | | template <typename SharedStateArg> |
121 | 1.97M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
122 | 1.97M | if (_parent->nereids_id() == -1) { |
123 | 1.01M | return fmt::format("(id={})", _parent->node_id()); |
124 | 1.01M | } else { |
125 | 955k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
126 | 955k | } |
127 | 1.97M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 68.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 68.9k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 68.9k | } else { | 125 | 68.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 68.9k | } | 127 | 68.9k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 1 | if (_parent->nereids_id() == -1) { | 123 | 1 | return fmt::format("(id={})", _parent->node_id()); | 124 | 1 | } else { | 125 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 0 | } | 127 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 255k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 255k | if (_parent->nereids_id() == -1) { | 123 | 12 | return fmt::format("(id={})", _parent->node_id()); | 124 | 255k | } else { | 125 | 255k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 255k | } | 127 | 255k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 29 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 29 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 29 | } else { | 125 | 29 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 29 | } | 127 | 29 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 6.72k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 6.72k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 6.72k | } else { | 125 | 6.72k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 6.72k | } | 127 | 6.72k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 13.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 13.6k | if (_parent->nereids_id() == -1) { | 123 | 16 | return fmt::format("(id={})", _parent->node_id()); | 124 | 13.5k | } else { | 125 | 13.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 13.5k | } | 127 | 13.6k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 107k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 107k | if (_parent->nereids_id() == -1) { | 123 | 29 | return fmt::format("(id={})", _parent->node_id()); | 124 | 107k | } else { | 125 | 107k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 107k | } | 127 | 107k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 39.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 39.0k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 39.0k | } else { | 125 | 39.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 39.0k | } | 127 | 39.0k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 171 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 171 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 171 | } else { | 125 | 171 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 171 | } | 127 | 171 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 738k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 738k | if (_parent->nereids_id() == -1) { | 123 | 335k | return fmt::format("(id={})", _parent->node_id()); | 124 | 402k | } else { | 125 | 402k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 402k | } | 127 | 738k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 55.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 55.2k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 55.2k | } else { | 125 | 55.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 55.2k | } | 127 | 55.2k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 26 | if (_parent->nereids_id() == -1) { | 123 | 26 | return fmt::format("(id={})", _parent->node_id()); | 124 | 26 | } else { | 125 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 0 | } | 127 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 6.96k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 6.96k | if (_parent->nereids_id() == -1) { | 123 | 6.96k | return fmt::format("(id={})", _parent->node_id()); | 124 | 18.4E | } else { | 125 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 18.4E | } | 127 | 6.96k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 526 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 526 | if (_parent->nereids_id() == -1) { | 123 | 102 | return fmt::format("(id={})", _parent->node_id()); | 124 | 424 | } else { | 125 | 424 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 424 | } | 127 | 526 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 5.19k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.19k | if (_parent->nereids_id() == -1) { | 123 | 13 | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.17k | } else { | 125 | 5.17k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 5.17k | } | 127 | 5.19k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 675k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 675k | if (_parent->nereids_id() == -1) { | 123 | 674k | return fmt::format("(id={})", _parent->node_id()); | 124 | 674k | } else { | 125 | 1.02k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 1.02k | } | 127 | 675k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 169 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 169 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 169 | } else { | 125 | 169 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 169 | } | 127 | 169 | } |
|
128 | | |
129 | | template <typename SharedStateArg> |
130 | 1.24M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
131 | 1.24M | if (_parent->nereids_id() == -1) { |
132 | 697k | return fmt::format("(id={})", _parent->node_id()); |
133 | 697k | } else { |
134 | 550k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
135 | 550k | } |
136 | 1.24M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 117k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 117k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 117k | } else { | 134 | 117k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 117k | } | 136 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 2 | if (_parent->nereids_id() == -1) { | 132 | 1 | return fmt::format("(id={})", _parent->node_id()); | 133 | 1 | } else { | 134 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 1 | } | 136 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 258k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 258k | if (_parent->nereids_id() == -1) { | 132 | 9 | return fmt::format("(id={})", _parent->node_id()); | 133 | 258k | } else { | 134 | 258k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 258k | } | 136 | 258k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 36 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 36 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 36 | } else { | 134 | 36 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 36 | } | 136 | 36 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 6.73k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 6.73k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 6.73k | } else { | 134 | 6.73k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 6.73k | } | 136 | 6.73k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 13.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 13.7k | if (_parent->nereids_id() == -1) { | 132 | 16 | return fmt::format("(id={})", _parent->node_id()); | 133 | 13.7k | } else { | 134 | 13.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 13.7k | } | 136 | 13.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 108k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 108k | if (_parent->nereids_id() == -1) { | 132 | 29 | return fmt::format("(id={})", _parent->node_id()); | 133 | 108k | } else { | 134 | 108k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 108k | } | 136 | 108k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 38.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 38.9k | if (_parent->nereids_id() == -1) { | 132 | 4 | return fmt::format("(id={})", _parent->node_id()); | 133 | 38.9k | } else { | 134 | 38.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 38.9k | } | 136 | 38.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 181 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 181 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 181 | } else { | 134 | 181 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 181 | } | 136 | 181 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 12 | if (_parent->nereids_id() == -1) { | 132 | 12 | return fmt::format("(id={})", _parent->node_id()); | 133 | 12 | } else { | 134 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 0 | } | 136 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 8.97k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 8.97k | if (_parent->nereids_id() == -1) { | 132 | 3 | return fmt::format("(id={})", _parent->node_id()); | 133 | 8.97k | } else { | 134 | 8.97k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 8.97k | } | 136 | 8.97k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 527 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 527 | if (_parent->nereids_id() == -1) { | 132 | 102 | return fmt::format("(id={})", _parent->node_id()); | 133 | 425 | } else { | 134 | 425 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 425 | } | 136 | 527 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 12.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 12.6k | if (_parent->nereids_id() == -1) { | 132 | 12.6k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 248k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 249k | if (_parent->nereids_id() == -1) { | 132 | 249k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 248k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 433k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 435k | if (_parent->nereids_id() == -1) { | 132 | 435k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 433k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 25 | if (_parent->nereids_id() == -1) { | 132 | 25 | return fmt::format("(id={})", _parent->node_id()); | 133 | 25 | } else { | 134 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 0 | } | 136 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 338 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 338 | } else { | 134 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 338 | } | 136 | 338 | } |
|
137 | | |
138 | | template <typename SharedStateArg> |
139 | 30.9k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
140 | 30.9k | if (_terminated) { |
141 | 0 | return Status::OK(); |
142 | 0 | } |
143 | 30.9k | _terminated = true; |
144 | 30.9k | return Status::OK(); |
145 | 30.9k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 24.0k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 24.0k | _terminated = true; | 144 | 24.0k | return Status::OK(); | 145 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2.76k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.76k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.76k | _terminated = true; | 144 | 2.76k | return Status::OK(); | 145 | 2.76k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 4 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 4 | _terminated = true; | 144 | 4 | return Status::OK(); | 145 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 3 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 3 | _terminated = true; | 144 | 3 | return Status::OK(); | 145 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2.02k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.02k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.02k | _terminated = true; | 144 | 2.02k | return Status::OK(); | 145 | 2.02k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 754 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 754 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 754 | _terminated = true; | 144 | 754 | return Status::OK(); | 145 | 754 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2 | _terminated = true; | 144 | 2 | return Status::OK(); | 145 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 620 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 620 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 620 | _terminated = true; | 144 | 620 | return Status::OK(); | 145 | 620 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 142 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 142 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 142 | _terminated = true; | 144 | 142 | return Status::OK(); | 145 | 142 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 3 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 3 | _terminated = true; | 144 | 3 | return Status::OK(); | 145 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 148 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 148 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 148 | _terminated = true; | 144 | 148 | return Status::OK(); | 145 | 148 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 15 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 15 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 15 | _terminated = true; | 144 | 15 | return Status::OK(); | 145 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 262 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 262 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 262 | _terminated = true; | 144 | 262 | return Status::OK(); | 145 | 262 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 130 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 130 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 130 | _terminated = true; | 144 | 130 | return Status::OK(); | 145 | 130 | } |
|
146 | | |
147 | 313k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
148 | 313k | return _child && _child->is_serial_operator() && !is_source() |
149 | 313k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
150 | 313k | : DataDistribution(TLocalPartitionType::NOOP); |
151 | 313k | } |
152 | | |
153 | 26.1k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
154 | 26.1k | if (!_child) { |
155 | 24.9k | return false; |
156 | 24.9k | } |
157 | 1.17k | if (_child->is_serial_operator()) { |
158 | 171 | return true; |
159 | 171 | } |
160 | 1.00k | const auto child_distribution = _child->required_data_distribution(state); |
161 | 1.00k | return child_distribution.need_local_exchange() && |
162 | 1.00k | !is_shuffled_exchange(child_distribution.distribution_type); |
163 | 1.17k | } |
164 | | |
165 | | template <typename SharedStateArg> |
166 | 14.6k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
167 | 14.6k | fmt::memory_buffer debug_string_buffer; |
168 | 14.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
169 | 14.6k | return fmt::to_string(debug_string_buffer); |
170 | 14.6k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 3 | fmt::memory_buffer debug_string_buffer; | 168 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 3 | return fmt::to_string(debug_string_buffer); | 170 | 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 | 166 | 14.6k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 14.6k | fmt::memory_buffer debug_string_buffer; | 168 | 14.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 14.6k | return fmt::to_string(debug_string_buffer); | 170 | 14.6k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 1 | fmt::memory_buffer debug_string_buffer; | 168 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 1 | return fmt::to_string(debug_string_buffer); | 170 | 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 |
171 | | |
172 | | template <typename SharedStateArg> |
173 | 14.6k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
174 | 14.6k | fmt::memory_buffer debug_string_buffer; |
175 | 14.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
176 | 14.6k | return fmt::to_string(debug_string_buffer); |
177 | 14.6k | } 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 | 173 | 14.6k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 14.6k | fmt::memory_buffer debug_string_buffer; | 175 | 14.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 14.6k | return fmt::to_string(debug_string_buffer); | 177 | 14.6k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
178 | | |
179 | 14.6k | std::string OperatorXBase::debug_string(int indentation_level) const { |
180 | 14.6k | fmt::memory_buffer debug_string_buffer; |
181 | 14.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
182 | 14.6k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
183 | 14.6k | _is_serial_operator); |
184 | 14.6k | return fmt::to_string(debug_string_buffer); |
185 | 14.6k | } |
186 | | |
187 | 14.6k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
188 | 14.6k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
189 | 14.6k | } |
190 | | |
191 | 695k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
192 | 695k | std::string node_name = print_plan_node_type(tnode.node_type); |
193 | 695k | _nereids_id = tnode.nereids_id; |
194 | 695k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
195 | 6.63k | if (!has_projection()) { |
196 | 0 | return Status::InternalError("no final output tuple id"); |
197 | 0 | } |
198 | 6.63k | if (tnode.intermediate_output_tuple_id_list.size() != |
199 | 6.63k | tnode.intermediate_projections_list.size()) { |
200 | 0 | return Status::InternalError( |
201 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
202 | 0 | "intermediate_projections_list size:{}", |
203 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
204 | 0 | tnode.intermediate_projections_list.size()); |
205 | 0 | } |
206 | 6.63k | } |
207 | 695k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
208 | 695k | _op_name = substr + "_OPERATOR"; |
209 | | |
210 | 695k | if (tnode.__isset.vconjunct) { |
211 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
212 | 695k | } else if (tnode.__isset.conjuncts) { |
213 | 279k | for (const auto& conjunct : tnode.conjuncts) { |
214 | 279k | VExprContextSPtr context; |
215 | 279k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
216 | 279k | _conjuncts.emplace_back(context); |
217 | 279k | } |
218 | 103k | } |
219 | | |
220 | | // create the projections expr |
221 | 695k | if (tnode.__isset.projections) { |
222 | 274k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
223 | 274k | } |
224 | 695k | if (!tnode.intermediate_projections_list.empty()) { |
225 | 6.63k | DCHECK(has_projection()) << "no final projections"; |
226 | 6.63k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
227 | 11.8k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
228 | 11.8k | VExprContextSPtrs projections; |
229 | 11.8k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
230 | 11.8k | _projection->intermediate_projections.push_back(projections); |
231 | 11.8k | } |
232 | 6.63k | } |
233 | 695k | return Status::OK(); |
234 | 695k | } |
235 | | |
236 | 722k | Status OperatorXBase::prepare(RuntimeState* state) { |
237 | 722k | for (auto& conjunct : _conjuncts) { |
238 | 279k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
239 | 279k | } |
240 | 722k | if (state->enable_adjust_conjunct_order_by_cost()) { |
241 | 672k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
242 | 342k | return a->execute_cost() < b->execute_cost(); |
243 | 342k | }); |
244 | 672k | }; |
245 | | |
246 | 722k | if (has_projection()) { |
247 | 273k | auto& projection = *_projection; |
248 | 285k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
249 | 11.8k | const auto& input_row_desc = |
250 | 11.8k | i == 0 ? operator_row_desc_before_projection() |
251 | 11.8k | : projection.intermediate_output_row_descriptors[i - 1]; |
252 | 11.8k | RETURN_IF_ERROR( |
253 | 11.8k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
254 | 11.8k | } |
255 | 273k | const auto& final_projection_input_row_desc = |
256 | 273k | projection.intermediate_output_row_descriptors.empty() |
257 | 273k | ? operator_row_desc_before_projection() |
258 | 273k | : projection.intermediate_output_row_descriptors.back(); |
259 | 273k | RETURN_IF_ERROR( |
260 | 273k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
261 | 273k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
262 | 273k | projection.output_row_descriptor)); |
263 | 273k | } |
264 | | |
265 | 722k | for (auto& conjunct : _conjuncts) { |
266 | 279k | RETURN_IF_ERROR(conjunct->open(state)); |
267 | 279k | } |
268 | 722k | if (has_projection()) { |
269 | 274k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
270 | 273k | for (auto& projections : _projection->intermediate_projections) { |
271 | 11.8k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
272 | 11.8k | } |
273 | 273k | } |
274 | 722k | if (_child && !is_source()) { |
275 | 104k | RETURN_IF_ERROR(_child->prepare(state)); |
276 | 104k | } |
277 | | |
278 | 722k | if (VExpr::contains_blockable_function(_conjuncts) || |
279 | 722k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
280 | 0 | _blockable = true; |
281 | 0 | } |
282 | | |
283 | 722k | return Status::OK(); |
284 | 722k | } |
285 | | |
286 | 7.74k | Status OperatorXBase::terminate(RuntimeState* state) { |
287 | 7.74k | if (_child && !is_source()) { |
288 | 839 | RETURN_IF_ERROR(_child->terminate(state)); |
289 | 839 | } |
290 | 7.74k | auto result = state->get_local_state_result(operator_id()); |
291 | 7.74k | if (!result) { |
292 | 0 | return result.error(); |
293 | 0 | } |
294 | 7.74k | return result.value()->terminate(state); |
295 | 7.74k | } |
296 | | |
297 | 5.38M | Status OperatorXBase::close(RuntimeState* state) { |
298 | 5.38M | if (_child && !is_source()) { |
299 | 937k | RETURN_IF_ERROR(_child->close(state)); |
300 | 937k | } |
301 | 5.38M | auto result = state->get_local_state_result(operator_id()); |
302 | 5.38M | if (!result) { |
303 | 0 | return result.error(); |
304 | 0 | } |
305 | 5.38M | return result.value()->close(state); |
306 | 5.38M | } |
307 | | |
308 | 297k | void PipelineXLocalStateBase::clear_origin_block() { |
309 | 297k | _origin_block.clear_column_data(_parent->operator_row_desc_before_projection().num_slots()); |
310 | 297k | } |
311 | | |
312 | 603k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 603k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 603k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 603k | return Status::OK(); |
317 | 603k | } |
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 | 297k | Block* output_block) const { |
326 | 297k | auto* local_state = state->get_local_state(operator_id()); |
327 | 297k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 297k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 297k | const size_t rows = origin_block->rows(); |
330 | 297k | if (rows == 0) { |
331 | 154k | return Status::OK(); |
332 | 154k | } |
333 | 143k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 143k | { |
336 | 143k | Block input_block = *origin_block; |
337 | | |
338 | 143k | ColumnsWithTypeAndName new_columns; |
339 | 143k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 4.75k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 4.75k | new_columns.resize(projections.size()); |
345 | 79.7k | for (int i = 0; i < projections.size(); i++) { |
346 | 74.9k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 74.9k | if (new_columns[i].column->size() != rows) { |
348 | 0 | return Status::InternalError( |
349 | 0 | "intermediate projection result column size {} not equal input rows " |
350 | 0 | "{}, expr: {}", |
351 | 0 | new_columns[i].column->size(), rows, |
352 | 0 | projections[i]->root()->debug_string()); |
353 | 0 | } |
354 | 74.9k | } |
355 | 4.74k | Block tmp_block {new_columns}; |
356 | 4.74k | input_block.swap(tmp_block); |
357 | 4.74k | } |
358 | | |
359 | 143k | 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 | 143k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 143k | output_block, _projection->output_row_descriptor); |
368 | 143k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 143k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 143k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 798k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 655k | ColumnPtr column_ptr; |
374 | 655k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 655k | 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 | 655k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 655k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 655k | if (column_ptr->is_exclusive()) { |
386 | 237k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 417k | } else { |
388 | 417k | shared_columns[i] = std::move(column_ptr); |
389 | 417k | } |
390 | 655k | } |
391 | | |
392 | 143k | scoped_mutable_block.restore(); |
393 | 798k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 655k | if (shared_columns[i]) { |
395 | 418k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 418k | } |
397 | 655k | } |
398 | 143k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 143k | local_state->_parent->operator_row_desc_before_projection().num_slots()); |
402 | 143k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 143k | return Status::OK(); |
405 | 143k | } |
406 | | |
407 | 4.18M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.18M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.18M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.18M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.18M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.18M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.18M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.18M | return Status::OK(); |
415 | 4.18M | } |
416 | 4.18M | } |
417 | 4.18M | }); |
418 | | |
419 | 4.18M | Status status; |
420 | 4.18M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.18M | Defer defer([&]() { |
422 | 4.18M | if (status.ok()) { |
423 | 4.18M | local_state->update_output_block_counters(*block); |
424 | 4.18M | } |
425 | 4.18M | }); |
426 | 4.18M | if (has_projection()) { |
427 | 296k | local_state->clear_origin_block(); |
428 | 296k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 296k | if (UNLIKELY(!status.ok())) { |
430 | 25 | return status; |
431 | 25 | } |
432 | 296k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 296k | return status; |
434 | 296k | } |
435 | 3.89M | status = get_block(state, block, eos); |
436 | 3.89M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.89M | return status; |
438 | 3.89M | } |
439 | | |
440 | 2.67M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.67M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.94k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.94k | *eos = true; |
444 | 9.94k | } |
445 | | |
446 | 2.67M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.67M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.67M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.67M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.67M | if (op_name == arg_op_name) { |
452 | 2.67M | *eos = true; |
453 | 2.67M | } |
454 | 2.67M | }); |
455 | | |
456 | 2.67M | if (auto rows = block->rows()) { |
457 | 771k | _num_rows_returned += rows; |
458 | 771k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 771k | } |
460 | 2.67M | } |
461 | | |
462 | 30.9k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 30.9k | auto result = state->get_sink_local_state_result(); |
464 | 30.9k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 30.9k | return result.value()->terminate(state); |
468 | 30.9k | } |
469 | | |
470 | 14.6k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 14.6k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 14.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 14.6k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 14.6k | return fmt::to_string(debug_string_buffer); |
476 | 14.6k | } |
477 | | |
478 | 14.6k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 14.6k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 14.6k | } |
481 | | |
482 | 364k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 364k | std::string op_name = "UNKNOWN_SINK"; |
484 | 364k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 365k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 365k | op_name = it->second; |
488 | 365k | } |
489 | 364k | _name = op_name + "_OPERATOR"; |
490 | 364k | return Status::OK(); |
491 | 364k | } |
492 | | |
493 | 299k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 299k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 299k | _nereids_id = tnode.nereids_id; |
496 | 299k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 299k | _name = substr + "_SINK_OPERATOR"; |
498 | 299k | return Status::OK(); |
499 | 299k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.85M | LocalSinkStateInfo& info) { |
504 | 1.85M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.85M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.85M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.85M | return Status::OK(); |
508 | 1.85M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 117k | LocalSinkStateInfo& info) { | 504 | 117k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 117k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 117k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 117k | return Status::OK(); | 508 | 117k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 388k | LocalSinkStateInfo& info) { | 504 | 388k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 388k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 388k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 388k | return Status::OK(); | 508 | 388k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3 | LocalSinkStateInfo& info) { | 504 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3 | return Status::OK(); | 508 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 356 | LocalSinkStateInfo& info) { | 504 | 356 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 356 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 356 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 356 | return Status::OK(); | 508 | 356 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 48.2k | LocalSinkStateInfo& info) { | 504 | 48.2k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 48.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 48.2k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 48.2k | return Status::OK(); | 508 | 48.2k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 32 | LocalSinkStateInfo& info) { | 504 | 32 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 32 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 32 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 32 | return Status::OK(); | 508 | 32 | } |
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_25PaimonTableSinkLocalStateEE17setup_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 | 13.7k | LocalSinkStateInfo& info) { | 504 | 13.7k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 13.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 13.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 13.7k | return Status::OK(); | 508 | 13.7k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9 | LocalSinkStateInfo& info) { | 504 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9 | return Status::OK(); | 508 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 259k | LocalSinkStateInfo& info) { | 504 | 259k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 259k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 259k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 259k | return Status::OK(); | 508 | 259k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 36 | LocalSinkStateInfo& info) { | 504 | 36 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 36 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 36 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 36 | return Status::OK(); | 508 | 36 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 249k | LocalSinkStateInfo& info) { | 504 | 249k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 249k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 249k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 249k | return Status::OK(); | 508 | 249k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 108k | LocalSinkStateInfo& info) { | 504 | 108k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 108k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 108k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 108k | return Status::OK(); | 508 | 108k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 39.0k | LocalSinkStateInfo& info) { | 504 | 39.0k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 39.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 39.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 39.0k | return Status::OK(); | 508 | 39.0k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 181 | LocalSinkStateInfo& info) { | 504 | 181 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 181 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 181 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 181 | return Status::OK(); | 508 | 181 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 594k | LocalSinkStateInfo& info) { | 504 | 594k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 594k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 594k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 594k | return Status::OK(); | 508 | 594k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.73k | LocalSinkStateInfo& info) { | 504 | 6.73k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.73k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.73k | return Status::OK(); | 508 | 6.73k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.98k | LocalSinkStateInfo& info) { | 504 | 8.98k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.98k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.98k | return Status::OK(); | 508 | 8.98k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3.00k | LocalSinkStateInfo& info) { | 504 | 3.00k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3.00k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3.00k | return Status::OK(); | 508 | 3.00k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 425 | LocalSinkStateInfo& info) { | 504 | 425 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 425 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 425 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 425 | return Status::OK(); | 508 | 425 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.84k | LocalSinkStateInfo& info) { | 504 | 4.84k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.84k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.84k | return Status::OK(); | 508 | 4.84k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.61k | LocalSinkStateInfo& info) { | 504 | 2.61k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.61k | return Status::OK(); | 508 | 2.61k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.63k | LocalSinkStateInfo& info) { | 504 | 2.63k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.63k | return Status::OK(); | 508 | 2.63k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.52k | LocalSinkStateInfo& info) { | 504 | 2.52k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.52k | return Status::OK(); | 508 | 2.52k | } |
_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 | 566 | LocalSinkStateInfo& info) { | 504 | 566 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 566 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 566 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 566 | return Status::OK(); | 508 | 566 | } |
_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.53M | 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.53M | } else { |
519 | 1.53M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.53M | ss->id = operator_id(); |
521 | 1.53M | for (auto& dest : dests_id()) { |
522 | 1.52M | ss->related_op_ids.insert(dest); |
523 | 1.52M | } |
524 | 1.53M | return ss; |
525 | 1.53M | } |
526 | 1.53M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 102k | 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 | 102k | } else { | 519 | 102k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 102k | ss->id = operator_id(); | 521 | 102k | for (auto& dest : dests_id()) { | 522 | 102k | ss->related_op_ids.insert(dest); | 523 | 102k | } | 524 | 102k | return ss; | 525 | 102k | } | 526 | 102k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 388k | 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 | 388k | } else { | 519 | 388k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 388k | ss->id = operator_id(); | 521 | 388k | for (auto& dest : dests_id()) { | 522 | 385k | ss->related_op_ids.insert(dest); | 523 | 385k | } | 524 | 388k | return ss; | 525 | 388k | } | 526 | 388k | } |
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 | 356 | 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 | 356 | } else { | 519 | 356 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 356 | ss->id = operator_id(); | 521 | 356 | for (auto& dest : dests_id()) { | 522 | 354 | ss->related_op_ids.insert(dest); | 523 | 354 | } | 524 | 356 | return ss; | 525 | 356 | } | 526 | 356 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 48.4k | 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 | 48.4k | } else { | 519 | 48.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 48.4k | ss->id = operator_id(); | 521 | 48.4k | for (auto& dest : dests_id()) { | 522 | 47.8k | ss->related_op_ids.insert(dest); | 523 | 47.8k | } | 524 | 48.4k | return ss; | 525 | 48.4k | } | 526 | 48.4k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 32 | } else { | 519 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 32 | ss->id = operator_id(); | 521 | 32 | for (auto& dest : dests_id()) { | 522 | 32 | ss->related_op_ids.insert(dest); | 523 | 32 | } | 524 | 32 | return ss; | 525 | 32 | } | 526 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25PaimonTableSinkLocalStateEE19create_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 | 13.7k | 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 | 13.7k | } else { | 519 | 13.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 13.7k | ss->id = operator_id(); | 521 | 13.7k | for (auto& dest : dests_id()) { | 522 | 13.7k | ss->related_op_ids.insert(dest); | 523 | 13.7k | } | 524 | 13.7k | return ss; | 525 | 13.7k | } | 526 | 13.7k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 9 | } else { | 519 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 9 | ss->id = operator_id(); | 521 | 9 | for (auto& dest : dests_id()) { | 522 | 9 | ss->related_op_ids.insert(dest); | 523 | 9 | } | 524 | 9 | return ss; | 525 | 9 | } | 526 | 9 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 260k | 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 | 260k | } else { | 519 | 260k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 260k | ss->id = operator_id(); | 521 | 260k | for (auto& dest : dests_id()) { | 522 | 260k | ss->related_op_ids.insert(dest); | 523 | 260k | } | 524 | 260k | return ss; | 525 | 260k | } | 526 | 260k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 38 | 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 | 38 | } else { | 519 | 38 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 38 | ss->id = operator_id(); | 521 | 38 | for (auto& dest : dests_id()) { | 522 | 38 | ss->related_op_ids.insert(dest); | 523 | 38 | } | 524 | 38 | return ss; | 525 | 38 | } | 526 | 38 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 108k | 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 | 108k | } else { | 519 | 108k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 108k | ss->id = operator_id(); | 521 | 108k | for (auto& dest : dests_id()) { | 522 | 108k | ss->related_op_ids.insert(dest); | 523 | 108k | } | 524 | 108k | return ss; | 525 | 108k | } | 526 | 108k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 180 | 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 | 180 | } else { | 519 | 180 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 180 | ss->id = operator_id(); | 521 | 180 | for (auto& dest : dests_id()) { | 522 | 180 | ss->related_op_ids.insert(dest); | 523 | 180 | } | 524 | 180 | return ss; | 525 | 180 | } | 526 | 180 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 596k | 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 | 596k | } else { | 519 | 596k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 596k | ss->id = operator_id(); | 521 | 596k | for (auto& dest : dests_id()) { | 522 | 588k | ss->related_op_ids.insert(dest); | 523 | 588k | } | 524 | 596k | return ss; | 525 | 596k | } | 526 | 596k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.75k | 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.75k | } else { | 519 | 6.75k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.75k | ss->id = operator_id(); | 521 | 6.75k | for (auto& dest : dests_id()) { | 522 | 6.75k | ss->related_op_ids.insert(dest); | 523 | 6.75k | } | 524 | 6.75k | return ss; | 525 | 6.75k | } | 526 | 6.75k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 528 | 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 | 528 | } else { | 519 | 528 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 528 | ss->id = operator_id(); | 521 | 529 | for (auto& dest : dests_id()) { | 522 | 529 | ss->related_op_ids.insert(dest); | 523 | 529 | } | 524 | 528 | return ss; | 525 | 528 | } | 526 | 528 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.61k | 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.61k | } else { | 519 | 2.61k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.61k | ss->id = operator_id(); | 521 | 2.61k | for (auto& dest : dests_id()) { | 522 | 2.60k | ss->related_op_ids.insert(dest); | 523 | 2.60k | } | 524 | 2.61k | return ss; | 525 | 2.61k | } | 526 | 2.61k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.52k | 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.52k | } else { | 519 | 2.52k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.52k | ss->id = operator_id(); | 521 | 2.52k | for (auto& dest : dests_id()) { | 522 | 2.52k | ss->related_op_ids.insert(dest); | 523 | 2.52k | } | 524 | 2.52k | return ss; | 525 | 2.52k | } | 526 | 2.52k | } |
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 | 569 | ss->related_op_ids.insert(dest); | 523 | 569 | } | 524 | 569 | return ss; | 525 | 569 | } | 526 | 569 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106 | 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 | 106 | } else { | 519 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106 | ss->id = operator_id(); | 521 | 106 | for (auto& dest : dests_id()) { | 522 | 106 | ss->related_op_ids.insert(dest); | 523 | 106 | } | 524 | 106 | return ss; | 525 | 106 | } | 526 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.24M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.24M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.24M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.24M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.24M | return Status::OK(); |
534 | 2.24M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 69.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 69.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 69.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 69.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 69.4k | return Status::OK(); | 534 | 69.4k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 253k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 253k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 253k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 253k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 253k | return Status::OK(); | 534 | 253k | } |
_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.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.24k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.24k | return Status::OK(); | 534 | 3.24k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 13.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 13.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 13.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 13.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 13.6k | return Status::OK(); | 534 | 13.6k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 12.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 12.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 12.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 12.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 12.8k | return Status::OK(); | 534 | 12.8k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 29 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 29 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 29 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 29 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 29 | return Status::OK(); | 534 | 29 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 246k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 246k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 246k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 246k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 246k | return Status::OK(); | 534 | 246k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 108k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 108k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 108k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 108k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 108k | return Status::OK(); | 534 | 108k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 39.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 39.0k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 39.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 39.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 39.0k | return Status::OK(); | 534 | 39.0k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 171 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 171 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 171 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 171 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 171 | return Status::OK(); | 534 | 171 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.82k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.82k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.82k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.82k | return Status::OK(); | 534 | 6.82k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 338k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 338k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 338k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 338k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 338k | return Status::OK(); | 534 | 338k | } |
_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.73k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.73k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.73k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.73k | return Status::OK(); | 534 | 6.73k | } |
_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.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.54k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.54k | return Status::OK(); | 534 | 1.54k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 55.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 55.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 55.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 55.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 55.4k | return Status::OK(); | 534 | 55.4k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.99k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.99k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.99k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.99k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.99k | return Status::OK(); | 534 | 6.99k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 426 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 426 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 426 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 426 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 426 | return Status::OK(); | 534 | 426 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.64k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.64k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.64k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.64k | return Status::OK(); | 534 | 2.64k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.54k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.54k | return Status::OK(); | 534 | 2.54k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 502 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 502 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 502 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 502 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 502 | return Status::OK(); | 534 | 502 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.69k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.69k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.69k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.69k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.69k | return Status::OK(); | 534 | 1.69k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.7k | return Status::OK(); | 534 | 10.7k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 683k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 683k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 683k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 683k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 683k | return Status::OK(); | 534 | 683k | } |
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 | 800 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 800 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 800 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 800 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 800 | return Status::OK(); | 534 | 800 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.14k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.14k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.14k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.14k | return Status::OK(); | 534 | 1.14k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.88k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.88k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.88k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.88k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.88k | return Status::OK(); | 534 | 6.88k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 371k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 371k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 371k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 371k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 371k | return Status::OK(); | 534 | 371k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.84M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.23M | : _num_rows_returned(0), |
542 | 2.23M | _rows_returned_counter(nullptr), |
543 | 2.23M | _parent(parent), |
544 | 2.23M | _state(state), |
545 | 2.23M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.25M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.25M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.25M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.25M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.25M | _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.25M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.25M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.25M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.25M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.25M | if constexpr (!is_fake_shared) { |
560 | 1.25M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 733k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 733k | .first.get() |
563 | 733k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 733k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 733k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 733k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 733k | } else if (info.shared_state) { |
569 | 451k | 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 | 451k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 451k | _dependency = _shared_state->create_source_dependency( |
576 | 451k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 451k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 451k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 451k | } else { |
580 | 68.0k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 6.67k | DCHECK(false); |
582 | 6.67k | } |
583 | 68.0k | } |
584 | 1.25M | } |
585 | | |
586 | 2.25M | 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.25M | _rows_returned_counter = |
591 | 2.25M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.25M | _blocks_returned_counter = |
593 | 2.25M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.25M | _output_block_bytes_counter = |
595 | 2.25M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.25M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.25M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.25M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.25M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.25M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.25M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.25M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.25M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.25M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.25M | _memory_used_counter = |
606 | 2.25M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.25M | _common_profile->add_info_string("IsColocate", |
608 | 2.25M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.25M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.25M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.25M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.25M | return Status::OK(); |
613 | 2.25M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 69.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 69.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 69.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 69.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 69.4k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 69.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 69.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 69.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 69.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 69.4k | if constexpr (!is_fake_shared) { | 560 | 69.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 14.3k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 14.3k | .first.get() | 563 | 14.3k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 14.3k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 14.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 14.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 55.0k | } 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 | 54.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 54.3k | _dependency = _shared_state->create_source_dependency( | 576 | 54.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 54.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 54.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 54.3k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 725 | } | 584 | 69.4k | } | 585 | | | 586 | 69.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 69.4k | _rows_returned_counter = | 591 | 69.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 69.4k | _blocks_returned_counter = | 593 | 69.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 69.4k | _output_block_bytes_counter = | 595 | 69.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 69.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 69.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 69.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 69.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 69.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 69.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 69.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 69.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 69.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 69.4k | _memory_used_counter = | 606 | 69.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 69.4k | _common_profile->add_info_string("IsColocate", | 608 | 69.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 69.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 69.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 69.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 69.4k | return Status::OK(); | 613 | 69.4k | } |
_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 | 259k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 259k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 259k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 259k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 259k | _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 | 259k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 259k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 259k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 259k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 259k | if constexpr (!is_fake_shared) { | 560 | 259k | 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 | 259k | } 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 | 252k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 252k | _dependency = _shared_state->create_source_dependency( | 576 | 252k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 252k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 252k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 252k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 6.78k | } | 584 | 259k | } | 585 | | | 586 | 259k | 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 | 259k | _rows_returned_counter = | 591 | 259k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 259k | _blocks_returned_counter = | 593 | 259k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 259k | _output_block_bytes_counter = | 595 | 259k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 259k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 259k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 259k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 259k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 259k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 259k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 259k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 259k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 259k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 259k | _memory_used_counter = | 606 | 259k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 259k | _common_profile->add_info_string("IsColocate", | 608 | 259k | std::to_string(_parent->is_colocated_operator())); | 609 | 259k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 259k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 259k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 259k | return Status::OK(); | 613 | 259k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 29 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 29 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 29 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 29 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 29 | _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 | 29 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 29 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 29 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 29 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 29 | if constexpr (!is_fake_shared) { | 560 | 29 | 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 | 29 | } 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 | 29 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 29 | _dependency = _shared_state->create_source_dependency( | 576 | 29 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 29 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 29 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 29 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 29 | } | 585 | | | 586 | 29 | 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 | 29 | _rows_returned_counter = | 591 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 29 | _blocks_returned_counter = | 593 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 29 | _output_block_bytes_counter = | 595 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 29 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 29 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 29 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 29 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 29 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 29 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 29 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 29 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 29 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 29 | _memory_used_counter = | 606 | 29 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 29 | _common_profile->add_info_string("IsColocate", | 608 | 29 | std::to_string(_parent->is_colocated_operator())); | 609 | 29 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 29 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 29 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 29 | return Status::OK(); | 613 | 29 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.75k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.75k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.75k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.75k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.75k | _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.75k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.75k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.75k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.75k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.75k | if constexpr (!is_fake_shared) { | 560 | 6.75k | 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.75k | } 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.70k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.70k | _dependency = _shared_state->create_source_dependency( | 576 | 6.70k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.70k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.70k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.70k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 53 | } | 584 | 6.75k | } | 585 | | | 586 | 6.75k | 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.75k | _rows_returned_counter = | 591 | 6.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.75k | _blocks_returned_counter = | 593 | 6.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.75k | _output_block_bytes_counter = | 595 | 6.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.75k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.75k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.75k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.75k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.75k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.75k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.75k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.75k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.75k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.75k | _memory_used_counter = | 606 | 6.75k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.75k | _common_profile->add_info_string("IsColocate", | 608 | 6.75k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.75k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.75k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.75k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.75k | return Status::OK(); | 613 | 6.75k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 13.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 13.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 13.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 13.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 13.7k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 13.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 13.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 13.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 13.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 13.7k | if constexpr (!is_fake_shared) { | 560 | 13.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 13.7k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 13.5k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 13.5k | _dependency = _shared_state->create_source_dependency( | 576 | 13.5k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 13.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 13.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 13.5k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 247 | } | 584 | 13.7k | } | 585 | | | 586 | 13.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 13.7k | _rows_returned_counter = | 591 | 13.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 13.7k | _blocks_returned_counter = | 593 | 13.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 13.7k | _output_block_bytes_counter = | 595 | 13.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 13.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 13.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 13.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 13.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 13.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 13.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 13.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 13.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 13.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 13.7k | _memory_used_counter = | 606 | 13.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 13.7k | _common_profile->add_info_string("IsColocate", | 608 | 13.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 13.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 13.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 13.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 13.7k | return Status::OK(); | 613 | 13.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 108k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 108k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 108k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 108k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 108k | _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 | 108k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 108k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 108k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 108k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 108k | if constexpr (!is_fake_shared) { | 560 | 108k | 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 | 108k | } 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 | 106k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 106k | _dependency = _shared_state->create_source_dependency( | 576 | 106k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 106k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 106k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 106k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.00k | } | 584 | 108k | } | 585 | | | 586 | 108k | 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 | 108k | _rows_returned_counter = | 591 | 108k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 108k | _blocks_returned_counter = | 593 | 108k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 108k | _output_block_bytes_counter = | 595 | 108k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 108k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 108k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 108k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 108k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 108k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 108k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 108k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 108k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 108k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 108k | _memory_used_counter = | 606 | 108k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 108k | _common_profile->add_info_string("IsColocate", | 608 | 108k | std::to_string(_parent->is_colocated_operator())); | 609 | 108k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 108k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 108k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 108k | return Status::OK(); | 613 | 108k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 39.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 39.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 39.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 39.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 39.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 | 39.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 39.0k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 39.0k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 39.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 39.0k | if constexpr (!is_fake_shared) { | 560 | 39.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 39.0k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 39.0k | .first.get() | 563 | 39.0k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 39.0k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 39.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 39.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 39.0k | } | 585 | | | 586 | 39.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 | 39.0k | _rows_returned_counter = | 591 | 39.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 39.0k | _blocks_returned_counter = | 593 | 39.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 39.0k | _output_block_bytes_counter = | 595 | 39.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 39.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 39.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 39.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 39.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 39.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 39.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 39.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 39.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 39.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 39.0k | _memory_used_counter = | 606 | 39.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 39.0k | _common_profile->add_info_string("IsColocate", | 608 | 39.0k | std::to_string(_parent->is_colocated_operator())); | 609 | 39.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 39.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 39.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 39.0k | return Status::OK(); | 613 | 39.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 171 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 171 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 171 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 171 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 171 | _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 | 171 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 171 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 171 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 171 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 171 | if constexpr (!is_fake_shared) { | 560 | 171 | 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 | 171 | } 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 | 171 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 171 | _dependency = _shared_state->create_source_dependency( | 576 | 171 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 171 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 171 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 171 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 171 | } | 585 | | | 586 | 171 | 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 | 171 | _rows_returned_counter = | 591 | 171 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 171 | _blocks_returned_counter = | 593 | 171 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 171 | _output_block_bytes_counter = | 595 | 171 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 171 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 171 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 171 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 171 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 171 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 171 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 171 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 171 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 171 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 171 | _memory_used_counter = | 606 | 171 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 171 | _common_profile->add_info_string("IsColocate", | 608 | 171 | std::to_string(_parent->is_colocated_operator())); | 609 | 171 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 171 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 171 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 171 | return Status::OK(); | 613 | 171 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 997k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 997k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 997k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 997k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 997k | _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 | 997k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 997k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 997k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 997k | 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 | 997k | 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 | 997k | _rows_returned_counter = | 591 | 997k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 997k | _blocks_returned_counter = | 593 | 997k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 997k | _output_block_bytes_counter = | 595 | 997k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 997k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 997k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 997k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 997k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 997k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 997k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 997k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 997k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 997k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 997k | _memory_used_counter = | 606 | 997k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 997k | _common_profile->add_info_string("IsColocate", | 608 | 997k | std::to_string(_parent->is_colocated_operator())); | 609 | 997k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 997k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 997k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 997k | return Status::OK(); | 613 | 997k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 55.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 55.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 55.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 55.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 55.3k | _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 | 55.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 55.3k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 55.3k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 55.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 55.3k | if constexpr (!is_fake_shared) { | 560 | 55.3k | 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 | 55.3k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 3.86k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 3.86k | _dependency = _shared_state->create_source_dependency( | 576 | 3.86k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 3.86k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 3.86k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 51.4k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 51.4k | } | 584 | 55.3k | } | 585 | | | 586 | 55.3k | 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 | 55.3k | _rows_returned_counter = | 591 | 55.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 55.3k | _blocks_returned_counter = | 593 | 55.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 55.3k | _output_block_bytes_counter = | 595 | 55.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 55.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 55.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 55.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 55.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 55.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 55.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 55.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 55.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 55.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 55.3k | _memory_used_counter = | 606 | 55.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 55.3k | _common_profile->add_info_string("IsColocate", | 608 | 55.3k | std::to_string(_parent->is_colocated_operator())); | 609 | 55.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 55.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 55.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 55.3k | return Status::OK(); | 613 | 55.3k | } |
_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.01k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 7.01k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 7.01k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 7.01k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 7.01k | _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.01k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 7.01k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 7.01k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 7.01k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 7.01k | if constexpr (!is_fake_shared) { | 560 | 7.01k | 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.01k | } 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.93k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.93k | _dependency = _shared_state->create_source_dependency( | 576 | 6.93k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.93k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.93k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.93k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 71 | } | 584 | 7.01k | } | 585 | | | 586 | 7.01k | 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.01k | _rows_returned_counter = | 591 | 7.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 7.01k | _blocks_returned_counter = | 593 | 7.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 7.01k | _output_block_bytes_counter = | 595 | 7.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.01k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 7.01k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 7.01k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 7.01k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 7.01k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 7.01k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 7.01k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 7.01k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 7.01k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 7.01k | _memory_used_counter = | 606 | 7.01k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 7.01k | _common_profile->add_info_string("IsColocate", | 608 | 7.01k | std::to_string(_parent->is_colocated_operator())); | 609 | 7.01k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 7.01k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 7.01k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 7.01k | return Status::OK(); | 613 | 7.01k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 528 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 528 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 528 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 528 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 528 | _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 | 528 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 528 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 528 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 528 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 528 | if constexpr (!is_fake_shared) { | 560 | 528 | 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 | 528 | } 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 | 524 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 524 | _dependency = _shared_state->create_source_dependency( | 576 | 524 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 524 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 524 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 524 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 4 | } | 584 | 528 | } | 585 | | | 586 | 528 | 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 | 528 | _rows_returned_counter = | 591 | 528 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 528 | _blocks_returned_counter = | 593 | 528 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 528 | _output_block_bytes_counter = | 595 | 528 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 528 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 528 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 528 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 528 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 528 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 528 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 528 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 528 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 528 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 528 | _memory_used_counter = | 606 | 528 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 528 | _common_profile->add_info_string("IsColocate", | 608 | 528 | std::to_string(_parent->is_colocated_operator())); | 609 | 528 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 528 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 528 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 528 | return Status::OK(); | 613 | 528 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.22k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.22k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.22k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.22k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.22k | _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.22k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.22k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.22k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.22k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.22k | if constexpr (!is_fake_shared) { | 560 | 5.22k | 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.22k | } 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.16k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.16k | _dependency = _shared_state->create_source_dependency( | 576 | 5.16k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.16k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.16k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.16k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 61 | } | 584 | 5.22k | } | 585 | | | 586 | 5.22k | 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.22k | _rows_returned_counter = | 591 | 5.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.22k | _blocks_returned_counter = | 593 | 5.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.22k | _output_block_bytes_counter = | 595 | 5.22k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.22k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.22k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.22k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.22k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.22k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.22k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.22k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.22k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.22k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.22k | _memory_used_counter = | 606 | 5.22k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.22k | _common_profile->add_info_string("IsColocate", | 608 | 5.22k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.22k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.22k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.22k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.22k | return Status::OK(); | 613 | 5.22k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 686k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 686k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 686k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 686k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 686k | _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 | 686k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 686k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 686k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 686k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 686k | if constexpr (!is_fake_shared) { | 560 | 686k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 680k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 680k | .first.get() | 563 | 680k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 680k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 680k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 680k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 680k | } 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 | 6.67k | } else { | 580 | 6.67k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 6.67k | DCHECK(false); | 582 | 6.67k | } | 583 | 6.67k | } | 584 | 686k | } | 585 | | | 586 | 686k | 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 | 686k | _rows_returned_counter = | 591 | 686k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 686k | _blocks_returned_counter = | 593 | 686k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 686k | _output_block_bytes_counter = | 595 | 686k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 686k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 686k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 686k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 686k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 686k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 686k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 686k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 686k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 686k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 686k | _memory_used_counter = | 606 | 686k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 686k | _common_profile->add_info_string("IsColocate", | 608 | 686k | std::to_string(_parent->is_colocated_operator())); | 609 | 686k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 686k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 686k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 686k | return Status::OK(); | 613 | 686k | } |
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.26M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.26M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.57M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 311k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 311k | } |
621 | 2.26M | if (_parent->has_projection()) { |
622 | 399k | const auto& projection = *_parent->_projection; |
623 | 399k | _projections.resize(projection.projections.size()); |
624 | 2.46M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 2.06M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 2.06M | } |
627 | 399k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 420k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 21.2k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 264k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 243k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 243k | state, _intermediate_projections[i][j])); |
633 | 243k | } |
634 | 21.2k | } |
635 | 399k | } |
636 | 2.26M | return Status::OK(); |
637 | 2.26M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 69.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 69.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 71.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.80k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.80k | } | 621 | 69.7k | if (_parent->has_projection()) { | 622 | 69.7k | const auto& projection = *_parent->_projection; | 623 | 69.7k | _projections.resize(projection.projections.size()); | 624 | 379k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 309k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 309k | } | 627 | 69.7k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 78.3k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 8.61k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 189k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 180k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 180k | state, _intermediate_projections[i][j])); | 633 | 180k | } | 634 | 8.61k | } | 635 | 69.7k | } | 636 | 69.7k | return Status::OK(); | 637 | 69.7k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 261k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 261k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 261k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 261k | if (_parent->has_projection()) { | 622 | 83 | const auto& projection = *_parent->_projection; | 623 | 83 | _projections.resize(projection.projections.size()); | 624 | 420 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 337 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 337 | } | 627 | 83 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 83 | 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 | 83 | } | 636 | 261k | return Status::OK(); | 637 | 261k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 29 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 29 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 29 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 29 | 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 | 29 | return Status::OK(); | 637 | 29 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.75k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.75k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.88k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 127 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 127 | } | 621 | 6.75k | if (_parent->has_projection()) { | 622 | 6.75k | const auto& projection = *_parent->_projection; | 623 | 6.75k | _projections.resize(projection.projections.size()); | 624 | 32.1k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 25.4k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 25.4k | } | 627 | 6.75k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.78k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 29 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 195 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 166 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 166 | state, _intermediate_projections[i][j])); | 633 | 166 | } | 634 | 29 | } | 635 | 6.75k | } | 636 | 6.75k | return Status::OK(); | 637 | 6.75k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 13.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 13.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 14.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 843 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 843 | } | 621 | 13.8k | if (_parent->has_projection()) { | 622 | 7.36k | const auto& projection = *_parent->_projection; | 623 | 7.36k | _projections.resize(projection.projections.size()); | 624 | 29.1k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 21.7k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 21.7k | } | 627 | 7.36k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 7.45k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 94 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 719 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 625 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 625 | state, _intermediate_projections[i][j])); | 633 | 625 | } | 634 | 94 | } | 635 | 7.36k | } | 636 | 13.8k | return Status::OK(); | 637 | 13.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 108k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 108k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 110k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.42k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.42k | } | 621 | 108k | if (_parent->has_projection()) { | 622 | 34.6k | const auto& projection = *_parent->_projection; | 623 | 34.6k | _projections.resize(projection.projections.size()); | 624 | 297k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 263k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 263k | } | 627 | 34.6k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 35.4k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 800 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 5.06k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 4.26k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 4.26k | state, _intermediate_projections[i][j])); | 633 | 4.26k | } | 634 | 800 | } | 635 | 34.6k | } | 636 | 108k | return Status::OK(); | 637 | 108k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 39.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 39.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 39.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 37 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 37 | } | 621 | 39.0k | if (_parent->has_projection()) { | 622 | 273 | const auto& projection = *_parent->_projection; | 623 | 273 | _projections.resize(projection.projections.size()); | 624 | 1.19k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 919 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 919 | } | 627 | 273 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 273 | 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 | 273 | } | 636 | 39.0k | return Status::OK(); | 637 | 39.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 175 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 175 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 175 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 175 | if (_parent->has_projection()) { | 622 | 139 | const auto& projection = *_parent->_projection; | 623 | 139 | _projections.resize(projection.projections.size()); | 624 | 417 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 278 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 278 | } | 627 | 139 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 139 | 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 | 139 | } | 636 | 175 | return Status::OK(); | 637 | 175 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 1.00M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 1.00M | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.31M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 305k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 305k | } | 621 | 1.00M | if (_parent->has_projection()) { | 622 | 268k | const auto& projection = *_parent->_projection; | 623 | 268k | _projections.resize(projection.projections.size()); | 624 | 1.60M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.33M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.33M | } | 627 | 268k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 280k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 11.5k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 67.6k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 56.1k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 56.1k | state, _intermediate_projections[i][j])); | 633 | 56.1k | } | 634 | 11.5k | } | 635 | 268k | } | 636 | 1.00M | return Status::OK(); | 637 | 1.00M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 55.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 55.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 55.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 55.6k | if (_parent->has_projection()) { | 622 | 11.6k | const auto& projection = *_parent->_projection; | 623 | 11.6k | _projections.resize(projection.projections.size()); | 624 | 113k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 101k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 101k | } | 627 | 11.6k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.7k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 155 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.98k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.83k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.83k | state, _intermediate_projections[i][j])); | 633 | 1.83k | } | 634 | 155 | } | 635 | 11.6k | } | 636 | 55.6k | return Status::OK(); | 637 | 55.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.99k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.99k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.10k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.10k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.10k | } | 621 | 6.99k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 6.99k | return Status::OK(); | 637 | 6.99k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 530 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 530 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 530 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 530 | 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 | 530 | return Status::OK(); | 637 | 530 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.22k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.22k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.22k | 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.22k | if (_parent->has_projection()) { | 622 | 63 | const auto& projection = *_parent->_projection; | 623 | 63 | _projections.resize(projection.projections.size()); | 624 | 237 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 174 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 174 | } | 627 | 63 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 63 | 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 | 63 | } | 636 | 5.22k | return Status::OK(); | 637 | 5.22k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 690k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 690k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 690k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 690k | 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 | 690k | return Status::OK(); | 637 | 690k | } |
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.75k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.75k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 7.75k | _terminated = true; |
645 | 7.75k | return Status::OK(); |
646 | 7.75k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 547 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 547 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 547 | _terminated = true; | 645 | 547 | return Status::OK(); | 646 | 547 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 32 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 32 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 32 | _terminated = true; | 645 | 32 | return Status::OK(); | 646 | 32 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 53 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 53 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 53 | _terminated = true; | 645 | 53 | return Status::OK(); | 646 | 53 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 77 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 77 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 77 | _terminated = true; | 645 | 77 | return Status::OK(); | 646 | 77 | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 3 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 3 | _terminated = true; | 645 | 3 | return Status::OK(); | 646 | 3 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.92k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.92k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5.92k | _terminated = true; | 645 | 5.92k | return Status::OK(); | 646 | 5.92k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 31 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 31 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 31 | _terminated = true; | 645 | 31 | return Status::OK(); | 646 | 31 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_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 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 49 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 49 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 49 | _terminated = true; | 645 | 49 | return Status::OK(); | 646 | 49 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 996 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 996 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 996 | _terminated = true; | 645 | 996 | return Status::OK(); | 646 | 996 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 30 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 30 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 30 | _terminated = true; | 645 | 30 | return Status::OK(); | 646 | 30 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.56M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.56M | if (_closed) { |
651 | 298k | return Status::OK(); |
652 | 298k | } |
653 | 2.26M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.25M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.25M | } |
656 | 2.26M | _closed = true; |
657 | 2.26M | return Status::OK(); |
658 | 2.56M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 69.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 69.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 69.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 69.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 69.6k | } | 656 | 69.6k | _closed = true; | 657 | 69.6k | return Status::OK(); | 658 | 69.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 519k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 519k | if (_closed) { | 651 | 260k | return Status::OK(); | 652 | 260k | } | 653 | 258k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 258k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 258k | } | 656 | 258k | _closed = true; | 657 | 258k | return Status::OK(); | 658 | 519k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 29 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 29 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 29 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 29 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 29 | } | 656 | 29 | _closed = true; | 657 | 29 | return Status::OK(); | 658 | 29 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.75k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.75k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.75k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.75k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.75k | } | 656 | 6.75k | _closed = true; | 657 | 6.75k | return Status::OK(); | 658 | 6.75k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 27.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 27.8k | if (_closed) { | 651 | 14.0k | return Status::OK(); | 652 | 14.0k | } | 653 | 13.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 13.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 13.7k | } | 656 | 13.7k | _closed = true; | 657 | 13.7k | return Status::OK(); | 658 | 27.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 108k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 108k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 108k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 108k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 108k | } | 656 | 108k | _closed = true; | 657 | 108k | return Status::OK(); | 658 | 108k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 38.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 38.8k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 38.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 38.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 38.8k | } | 656 | 38.8k | _closed = true; | 657 | 38.8k | return Status::OK(); | 658 | 38.8k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 170 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 170 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 170 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 170 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 170 | } | 656 | 170 | _closed = true; | 657 | 170 | return Status::OK(); | 658 | 170 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 1.02M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 1.02M | if (_closed) { | 651 | 17.8k | return Status::OK(); | 652 | 17.8k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 1.00M | _closed = true; | 657 | 1.00M | return Status::OK(); | 658 | 1.02M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 55.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 55.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 55.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 55.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 55.6k | } | 656 | 55.6k | _closed = true; | 657 | 55.6k | return Status::OK(); | 658 | 55.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 14 | return Status::OK(); | 652 | 14 | } | 653 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 14 | } | 656 | 14 | _closed = true; | 657 | 14 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.98k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.98k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.98k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.98k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.98k | } | 656 | 6.98k | _closed = true; | 657 | 6.98k | return Status::OK(); | 658 | 6.98k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 854 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 854 | if (_closed) { | 651 | 428 | return Status::OK(); | 652 | 428 | } | 653 | 426 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 426 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 426 | } | 656 | 426 | _closed = true; | 657 | 426 | return Status::OK(); | 658 | 854 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.6k | if (_closed) { | 651 | 5.46k | return Status::OK(); | 652 | 5.46k | } | 653 | 5.20k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.20k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.20k | } | 656 | 5.20k | _closed = true; | 657 | 5.20k | return Status::OK(); | 658 | 10.6k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 692k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 692k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 692k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 692k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 692k | } | 656 | 692k | _closed = true; | 657 | 692k | return Status::OK(); | 658 | 692k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 339 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 339 | if (_closed) { | 651 | 179 | return Status::OK(); | 652 | 179 | } | 653 | 160 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 160 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 160 | } | 656 | 160 | _closed = true; | 657 | 160 | return Status::OK(); | 658 | 339 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.85M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.85M | _operator_profile = |
664 | 1.85M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.85M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.85M | _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.85M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.85M | _operator_profile->add_child(_common_profile, true); |
673 | 1.85M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.85M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.85M | _wait_for_finish_dependency_timer = |
677 | 1.85M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.85M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.85M | if constexpr (!is_fake_shared) { |
680 | 1.25M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.25M | info.shared_state_map.end()) { |
682 | 303k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 249k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 249k | } |
685 | 303k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 303k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 303k | ? 0 |
688 | 303k | : info.task_idx] |
689 | 303k | .get(); |
690 | 303k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 954k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 954k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 954k | _dependency = _shared_state->create_sink_dependency( |
697 | 954k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 954k | } |
699 | 1.25M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.25M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.25M | } |
702 | | |
703 | 1.85M | 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.85M | _rows_input_counter = |
708 | 1.85M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.85M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.85M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.85M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.85M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.85M | _memory_used_counter = |
714 | 1.85M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.85M | _common_profile->add_info_string("IsColocate", |
716 | 1.85M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.85M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.85M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.85M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.85M | return Status::OK(); |
721 | 1.85M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 117k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 117k | _operator_profile = | 664 | 117k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 117k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 117k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 117k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 117k | _operator_profile->add_child(_common_profile, true); | 673 | 117k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 117k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 117k | _wait_for_finish_dependency_timer = | 677 | 117k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 117k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 117k | if constexpr (!is_fake_shared) { | 680 | 117k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 117k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 14.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 14.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 14.6k | ? 0 | 688 | 14.6k | : info.task_idx] | 689 | 14.6k | .get(); | 690 | 14.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 102k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 102k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 102k | _dependency = _shared_state->create_sink_dependency( | 697 | 102k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 102k | } | 699 | 117k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 117k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 117k | } | 702 | | | 703 | 117k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 117k | _rows_input_counter = | 708 | 117k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 117k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 117k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 117k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 117k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 117k | _memory_used_counter = | 714 | 117k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 117k | _common_profile->add_info_string("IsColocate", | 716 | 117k | std::to_string(_parent->is_colocated_operator())); | 717 | 117k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 117k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 117k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 117k | return Status::OK(); | 721 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 259k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 259k | _operator_profile = | 664 | 259k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 259k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 259k | _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 | 259k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 259k | _operator_profile->add_child(_common_profile, true); | 673 | 259k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 259k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 259k | _wait_for_finish_dependency_timer = | 677 | 259k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 259k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 259k | if constexpr (!is_fake_shared) { | 680 | 259k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 259k | 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 | 259k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 259k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 259k | _dependency = _shared_state->create_sink_dependency( | 697 | 259k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 259k | } | 699 | 259k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 259k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 259k | } | 702 | | | 703 | 259k | 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 | 259k | _rows_input_counter = | 708 | 259k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 259k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 259k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 259k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 259k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 259k | _memory_used_counter = | 714 | 259k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 259k | _common_profile->add_info_string("IsColocate", | 716 | 259k | std::to_string(_parent->is_colocated_operator())); | 717 | 259k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 259k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 259k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 259k | return Status::OK(); | 721 | 259k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 36 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 36 | _operator_profile = | 664 | 36 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 36 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 36 | _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 | 36 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 36 | _operator_profile->add_child(_common_profile, true); | 673 | 36 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 36 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 36 | _wait_for_finish_dependency_timer = | 677 | 36 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 36 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 36 | if constexpr (!is_fake_shared) { | 680 | 36 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 36 | 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 | 36 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 36 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 36 | _dependency = _shared_state->create_sink_dependency( | 697 | 36 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 36 | } | 699 | 36 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 36 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 36 | } | 702 | | | 703 | 36 | 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 | 36 | _rows_input_counter = | 708 | 36 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 36 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 36 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 36 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 36 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 36 | _memory_used_counter = | 714 | 36 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 36 | _common_profile->add_info_string("IsColocate", | 716 | 36 | std::to_string(_parent->is_colocated_operator())); | 717 | 36 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 36 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 36 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 36 | return Status::OK(); | 721 | 36 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.75k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.75k | _operator_profile = | 664 | 6.75k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.75k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.75k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 6.75k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.75k | _operator_profile->add_child(_common_profile, true); | 673 | 6.75k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.75k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.75k | _wait_for_finish_dependency_timer = | 677 | 6.75k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.75k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.75k | if constexpr (!is_fake_shared) { | 680 | 6.75k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.75k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 6.75k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.75k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.75k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.75k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.75k | } | 699 | 6.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.75k | } | 702 | | | 703 | 6.75k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 6.75k | _rows_input_counter = | 708 | 6.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.75k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.75k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.75k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.75k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.75k | _memory_used_counter = | 714 | 6.75k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.75k | _common_profile->add_info_string("IsColocate", | 716 | 6.75k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.75k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.75k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.75k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.75k | return Status::OK(); | 721 | 6.75k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 13.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 13.8k | _operator_profile = | 664 | 13.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 13.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 13.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 | 13.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 13.8k | _operator_profile->add_child(_common_profile, true); | 673 | 13.8k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 13.8k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 13.8k | _wait_for_finish_dependency_timer = | 677 | 13.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 13.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 13.8k | if constexpr (!is_fake_shared) { | 680 | 13.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 13.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 | 13.8k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 13.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 13.8k | _dependency = _shared_state->create_sink_dependency( | 697 | 13.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 13.8k | } | 699 | 13.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 13.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 13.8k | } | 702 | | | 703 | 13.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 | 13.8k | _rows_input_counter = | 708 | 13.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 13.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 13.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 13.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 13.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 13.8k | _memory_used_counter = | 714 | 13.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 13.8k | _common_profile->add_info_string("IsColocate", | 716 | 13.8k | std::to_string(_parent->is_colocated_operator())); | 717 | 13.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 13.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 13.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 13.8k | return Status::OK(); | 721 | 13.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 108k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 108k | _operator_profile = | 664 | 108k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 108k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 108k | _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 | 108k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 108k | _operator_profile->add_child(_common_profile, true); | 673 | 108k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 108k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 108k | _wait_for_finish_dependency_timer = | 677 | 108k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 108k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 108k | if constexpr (!is_fake_shared) { | 680 | 108k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 108k | 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 | 108k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 108k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 108k | _dependency = _shared_state->create_sink_dependency( | 697 | 108k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 108k | } | 699 | 108k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 108k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 108k | } | 702 | | | 703 | 108k | 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 | 108k | _rows_input_counter = | 708 | 108k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 108k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 108k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 108k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 108k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 108k | _memory_used_counter = | 714 | 108k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 108k | _common_profile->add_info_string("IsColocate", | 716 | 108k | std::to_string(_parent->is_colocated_operator())); | 717 | 108k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 108k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 108k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 108k | return Status::OK(); | 721 | 108k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 39.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 39.0k | _operator_profile = | 664 | 39.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 39.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 39.0k | _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 | 39.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 39.0k | _operator_profile->add_child(_common_profile, true); | 673 | 39.0k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 39.0k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 39.0k | _wait_for_finish_dependency_timer = | 677 | 39.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 39.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 39.0k | if constexpr (!is_fake_shared) { | 680 | 39.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 39.0k | 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 | 39.0k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 39.0k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 39.0k | ? 0 | 688 | 39.0k | : info.task_idx] | 689 | 39.0k | .get(); | 690 | 39.0k | _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 | 39.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 39.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 39.0k | } | 702 | | | 703 | 39.0k | 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 | 39.0k | _rows_input_counter = | 708 | 39.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 39.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 39.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 39.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 39.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 39.0k | _memory_used_counter = | 714 | 39.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 39.0k | _common_profile->add_info_string("IsColocate", | 716 | 39.0k | std::to_string(_parent->is_colocated_operator())); | 717 | 39.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 39.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 39.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 39.0k | return Status::OK(); | 721 | 39.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 181 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 181 | _operator_profile = | 664 | 181 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 181 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 181 | _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 | 181 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 181 | _operator_profile->add_child(_common_profile, true); | 673 | 181 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 181 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 181 | _wait_for_finish_dependency_timer = | 677 | 181 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 181 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 181 | if constexpr (!is_fake_shared) { | 680 | 181 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 181 | 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 | 181 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 181 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 181 | _dependency = _shared_state->create_sink_dependency( | 697 | 181 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 181 | } | 699 | 181 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 181 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 181 | } | 702 | | | 703 | 181 | 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 | 181 | _rows_input_counter = | 708 | 181 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 181 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 181 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 181 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 181 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 181 | _memory_used_counter = | 714 | 181 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 181 | _common_profile->add_info_string("IsColocate", | 716 | 181 | std::to_string(_parent->is_colocated_operator())); | 717 | 181 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 181 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 181 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 181 | return Status::OK(); | 721 | 181 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 596k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 596k | _operator_profile = | 664 | 596k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 596k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 596k | _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 | 596k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 596k | _operator_profile->add_child(_common_profile, true); | 673 | 596k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 596k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 596k | _wait_for_finish_dependency_timer = | 677 | 596k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 596k | 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 | 596k | 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 | 596k | _rows_input_counter = | 708 | 596k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 596k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 596k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 596k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 596k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 596k | _memory_used_counter = | 714 | 596k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 596k | _common_profile->add_info_string("IsColocate", | 716 | 596k | std::to_string(_parent->is_colocated_operator())); | 717 | 596k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 596k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 596k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 596k | return Status::OK(); | 721 | 596k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 9.00k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 9.00k | _operator_profile = | 664 | 9.00k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 9.00k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 9.00k | _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 | 9.00k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 9.00k | _operator_profile->add_child(_common_profile, true); | 673 | 9.00k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 9.00k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 9.00k | _wait_for_finish_dependency_timer = | 677 | 9.00k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 9.00k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 9.00k | if constexpr (!is_fake_shared) { | 680 | 9.00k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 9.00k | 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 | 9.00k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 9.00k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 9.00k | _dependency = _shared_state->create_sink_dependency( | 697 | 9.00k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 9.00k | } | 699 | 9.00k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 9.00k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 9.00k | } | 702 | | | 703 | 9.00k | 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 | 9.00k | _rows_input_counter = | 708 | 9.00k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 9.00k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 9.00k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 9.00k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 9.00k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 9.00k | _memory_used_counter = | 714 | 9.00k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 9.00k | _common_profile->add_info_string("IsColocate", | 716 | 9.00k | std::to_string(_parent->is_colocated_operator())); | 717 | 9.00k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 9.00k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 9.00k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 9.00k | return Status::OK(); | 721 | 9.00k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 530 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 530 | _operator_profile = | 664 | 530 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 530 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 530 | _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 | 530 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 530 | _operator_profile->add_child(_common_profile, true); | 673 | 530 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 530 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 530 | _wait_for_finish_dependency_timer = | 677 | 530 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 530 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 530 | if constexpr (!is_fake_shared) { | 680 | 530 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 530 | 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 | 530 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 530 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 530 | _dependency = _shared_state->create_sink_dependency( | 697 | 530 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 530 | } | 699 | 530 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 530 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 530 | } | 702 | | | 703 | 530 | 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 | 530 | _rows_input_counter = | 708 | 530 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 530 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 530 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 530 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 530 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 530 | _memory_used_counter = | 714 | 530 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 530 | _common_profile->add_info_string("IsColocate", | 716 | 530 | std::to_string(_parent->is_colocated_operator())); | 717 | 530 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 530 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 530 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 530 | return Status::OK(); | 721 | 530 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.98k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.98k | _operator_profile = | 664 | 2.98k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.98k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.98k | _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.98k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.98k | _operator_profile->add_child(_common_profile, true); | 673 | 2.98k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.98k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.98k | _wait_for_finish_dependency_timer = | 677 | 2.98k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.98k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.98k | if constexpr (!is_fake_shared) { | 680 | 2.98k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.98k | 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.98k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.98k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.98k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.98k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.98k | } | 699 | 2.98k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.98k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.98k | } | 702 | | | 703 | 2.98k | 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.98k | _rows_input_counter = | 708 | 2.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.98k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.98k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.98k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.98k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.98k | _memory_used_counter = | 714 | 2.98k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.98k | _common_profile->add_info_string("IsColocate", | 716 | 2.98k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.98k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.98k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.98k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.98k | return Status::OK(); | 721 | 2.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.7k | _operator_profile = | 664 | 12.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.7k | _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.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.7k | _operator_profile->add_child(_common_profile, true); | 673 | 12.7k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.7k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.7k | _wait_for_finish_dependency_timer = | 677 | 12.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.7k | if constexpr (!is_fake_shared) { | 680 | 12.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.7k | 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.7k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.7k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.7k | } | 699 | 12.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.7k | } | 702 | | | 703 | 12.7k | 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.7k | _rows_input_counter = | 708 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.7k | _memory_used_counter = | 714 | 12.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.7k | _common_profile->add_info_string("IsColocate", | 716 | 12.7k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.7k | return Status::OK(); | 721 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 249k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 249k | _operator_profile = | 664 | 249k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 249k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 249k | _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 | 249k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 249k | _operator_profile->add_child(_common_profile, true); | 673 | 249k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 249k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 249k | _wait_for_finish_dependency_timer = | 677 | 249k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 249k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 249k | if constexpr (!is_fake_shared) { | 680 | 249k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 249k | info.shared_state_map.end()) { | 682 | 249k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 249k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 249k | } | 685 | 249k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 249k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 249k | ? 0 | 688 | 249k | : info.task_idx] | 689 | 249k | .get(); | 690 | 249k | _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 | 249k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 249k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 249k | } | 702 | | | 703 | 249k | 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 | 249k | _rows_input_counter = | 708 | 249k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 249k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 249k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 249k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 249k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 249k | _memory_used_counter = | 714 | 249k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 249k | _common_profile->add_info_string("IsColocate", | 716 | 249k | std::to_string(_parent->is_colocated_operator())); | 717 | 249k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 249k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 249k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 249k | return Status::OK(); | 721 | 249k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 437k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 437k | _operator_profile = | 664 | 437k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 437k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 437k | _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 | 437k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 437k | _operator_profile->add_child(_common_profile, true); | 673 | 437k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 437k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 437k | _wait_for_finish_dependency_timer = | 677 | 437k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 437k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 437k | if constexpr (!is_fake_shared) { | 680 | 437k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 437k | 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 | 437k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 437k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 437k | _dependency = _shared_state->create_sink_dependency( | 697 | 437k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 437k | } | 699 | 437k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 437k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 437k | } | 702 | | | 703 | 437k | 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 | 437k | _rows_input_counter = | 708 | 437k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 437k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 437k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 437k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 437k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 437k | _memory_used_counter = | 714 | 437k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 437k | _common_profile->add_info_string("IsColocate", | 716 | 437k | std::to_string(_parent->is_colocated_operator())); | 717 | 437k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 437k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 437k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 437k | return Status::OK(); | 721 | 437k | } |
_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.86M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.86M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.86M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.26M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.26M | } |
731 | 1.86M | _closed = true; |
732 | 1.86M | return Status::OK(); |
733 | 1.86M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 117k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 117k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 117k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 117k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 117k | } | 731 | 117k | _closed = true; | 732 | 117k | return Status::OK(); | 733 | 117k | } |
_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 | 259k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 259k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 259k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 259k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 259k | } | 731 | 259k | _closed = true; | 732 | 259k | return Status::OK(); | 733 | 259k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 27 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 27 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 25 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 25 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 25 | } | 731 | 25 | _closed = true; | 732 | 25 | return Status::OK(); | 733 | 27 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.72k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.72k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.72k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.72k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.72k | } | 731 | 6.72k | _closed = true; | 732 | 6.72k | return Status::OK(); | 733 | 6.72k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 13.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 13.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 13.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 13.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 13.7k | } | 731 | 13.7k | _closed = true; | 732 | 13.7k | return Status::OK(); | 733 | 13.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 108k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 108k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 108k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 108k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 108k | } | 731 | 108k | _closed = true; | 732 | 108k | return Status::OK(); | 733 | 108k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 38.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 38.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 38.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 38.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 38.7k | } | 731 | 38.7k | _closed = true; | 732 | 38.7k | return Status::OK(); | 733 | 38.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 170 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 170 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 170 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 170 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 170 | } | 731 | 170 | _closed = true; | 732 | 170 | return Status::OK(); | 733 | 170 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 598k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 598k | 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 | 598k | _closed = true; | 732 | 598k | return Status::OK(); | 733 | 598k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 9.02k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 9.02k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 9.02k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 9.02k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 9.02k | } | 731 | 9.02k | _closed = true; | 732 | 9.02k | return Status::OK(); | 733 | 9.02k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 424 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 424 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 424 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 424 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 424 | } | 731 | 424 | _closed = true; | 732 | 424 | return Status::OK(); | 733 | 424 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 3.00k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 3.00k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 3.00k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 3.00k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 3.00k | } | 731 | 3.00k | _closed = true; | 732 | 3.00k | return Status::OK(); | 733 | 3.00k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.7k | } | 731 | 12.7k | _closed = true; | 732 | 12.7k | return Status::OK(); | 733 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 250k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 250k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 250k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 250k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 250k | } | 731 | 250k | _closed = true; | 732 | 250k | return Status::OK(); | 733 | 250k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 439k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 439k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 439k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 439k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 439k | } | 731 | 439k | _closed = true; | 732 | 439k | return Status::OK(); | 733 | 439k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 14 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 14 | } | 731 | 14 | _closed = true; | 732 | 14 | return Status::OK(); | 733 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 338 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 338 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 338 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 338 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 338 | } | 731 | 338 | _closed = true; | 732 | 338 | return Status::OK(); | 733 | 338 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 8.85k | bool* eos) { |
738 | 8.85k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 8.85k | return pull(state, block, eos); |
740 | 8.85k | } _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 | 8.82k | bool* eos) { | 738 | 8.82k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 8.81k | return pull(state, block, eos); | 740 | 8.82k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 629k | bool* eos) { |
745 | 629k | auto& local_state = get_local_state(state); |
746 | 629k | if (need_more_input_data(state)) { |
747 | 596k | local_state._child_block->clear_column_data( |
748 | 596k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 596k | .num_slots()); |
750 | 596k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 596k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 596k | *eos = local_state._child_eos; |
753 | 596k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 81.5k | return Status::OK(); |
755 | 81.5k | } |
756 | 515k | { |
757 | 515k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 515k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 515k | } |
760 | 515k | } |
761 | | |
762 | 548k | if (!need_more_input_data(state)) { |
763 | 518k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 518k | bool new_eos = false; |
765 | 518k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 518k | if (new_eos) { |
767 | 440k | *eos = true; |
768 | 440k | } else if (!need_more_input_data(state)) { |
769 | 25.8k | *eos = false; |
770 | 25.8k | } |
771 | 518k | } |
772 | 548k | return Status::OK(); |
773 | 548k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 136k | bool* eos) { | 745 | 136k | auto& local_state = get_local_state(state); | 746 | 136k | if (need_more_input_data(state)) { | 747 | 115k | local_state._child_block->clear_column_data( | 748 | 115k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 115k | .num_slots()); | 750 | 115k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 115k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 115k | *eos = local_state._child_eos; | 753 | 115k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 33.9k | return Status::OK(); | 755 | 33.9k | } | 756 | 81.6k | { | 757 | 81.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 81.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 81.6k | } | 760 | 81.6k | } | 761 | | | 762 | 102k | if (!need_more_input_data(state)) { | 763 | 102k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 102k | bool new_eos = false; | 765 | 102k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 102k | if (new_eos) { | 767 | 45.2k | *eos = true; | 768 | 57.1k | } else if (!need_more_input_data(state)) { | 769 | 12.6k | *eos = false; | 770 | 12.6k | } | 771 | 102k | } | 772 | 102k | return Status::OK(); | 773 | 102k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.73k | bool* eos) { | 745 | 4.73k | auto& local_state = get_local_state(state); | 746 | 4.73k | if (need_more_input_data(state)) { | 747 | 2.74k | local_state._child_block->clear_column_data( | 748 | 2.74k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.74k | .num_slots()); | 750 | 2.74k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.74k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.74k | *eos = local_state._child_eos; | 753 | 2.74k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 794 | return Status::OK(); | 755 | 794 | } | 756 | 1.94k | { | 757 | 1.94k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.94k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.94k | } | 760 | 1.94k | } | 761 | | | 762 | 3.94k | if (!need_more_input_data(state)) { | 763 | 3.94k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.94k | bool new_eos = false; | 765 | 3.94k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.94k | if (new_eos) { | 767 | 1.27k | *eos = true; | 768 | 2.66k | } else if (!need_more_input_data(state)) { | 769 | 1.99k | *eos = false; | 770 | 1.99k | } | 771 | 3.94k | } | 772 | 3.94k | return Status::OK(); | 773 | 3.94k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.89k | bool* eos) { | 745 | 1.89k | auto& local_state = get_local_state(state); | 746 | 1.89k | if (need_more_input_data(state)) { | 747 | 1.89k | local_state._child_block->clear_column_data( | 748 | 1.89k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.89k | .num_slots()); | 750 | 1.89k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.89k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.89k | *eos = local_state._child_eos; | 753 | 1.89k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 788 | return Status::OK(); | 755 | 788 | } | 756 | 1.10k | { | 757 | 1.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.10k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.10k | } | 760 | 1.10k | } | 761 | | | 762 | 1.10k | if (!need_more_input_data(state)) { | 763 | 1.10k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.10k | bool new_eos = false; | 765 | 1.10k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.10k | if (new_eos) { | 767 | 800 | *eos = true; | 768 | 800 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.10k | } | 772 | 1.10k | return Status::OK(); | 773 | 1.10k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 16.2k | bool* eos) { | 745 | 16.2k | auto& local_state = get_local_state(state); | 746 | 16.2k | if (need_more_input_data(state)) { | 747 | 16.2k | local_state._child_block->clear_column_data( | 748 | 16.2k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 16.2k | .num_slots()); | 750 | 16.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 16.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 16.2k | *eos = local_state._child_eos; | 753 | 16.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 3.98k | return Status::OK(); | 755 | 3.98k | } | 756 | 12.2k | { | 757 | 12.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 12.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 12.2k | } | 760 | 12.2k | } | 761 | | | 762 | 12.2k | if (!need_more_input_data(state)) { | 763 | 6.93k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.93k | bool new_eos = false; | 765 | 6.93k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.93k | if (new_eos) { | 767 | 6.81k | *eos = true; | 768 | 6.81k | } else if (!need_more_input_data(state)) { | 769 | 1 | *eos = false; | 770 | 1 | } | 771 | 6.93k | } | 772 | 12.2k | return Status::OK(); | 773 | 12.2k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 438k | bool* eos) { | 745 | 438k | auto& local_state = get_local_state(state); | 746 | 439k | if (need_more_input_data(state)) { | 747 | 439k | local_state._child_block->clear_column_data( | 748 | 439k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 439k | .num_slots()); | 750 | 439k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 439k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 439k | *eos = local_state._child_eos; | 753 | 439k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 40.5k | return Status::OK(); | 755 | 40.5k | } | 756 | 399k | { | 757 | 399k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 399k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 399k | } | 760 | 399k | } | 761 | | | 762 | 397k | if (!need_more_input_data(state)) { | 763 | 374k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 374k | bool new_eos = false; | 765 | 374k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 374k | if (new_eos) { | 767 | 373k | *eos = true; | 768 | 373k | } else if (!need_more_input_data(state)) { | 769 | 8 | *eos = false; | 770 | 8 | } | 771 | 374k | } | 772 | 397k | return Status::OK(); | 773 | 397k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 21.9k | bool* eos) { | 745 | 21.9k | auto& local_state = get_local_state(state); | 746 | 21.9k | if (need_more_input_data(state)) { | 747 | 11.1k | local_state._child_block->clear_column_data( | 748 | 11.1k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.1k | .num_slots()); | 750 | 11.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.1k | *eos = local_state._child_eos; | 753 | 11.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 557 | return Status::OK(); | 755 | 557 | } | 756 | 10.6k | { | 757 | 10.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.6k | } | 760 | 10.6k | } | 761 | | | 762 | 21.4k | if (!need_more_input_data(state)) { | 763 | 20.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 20.7k | bool new_eos = false; | 765 | 20.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 20.7k | if (new_eos) { | 767 | 6.72k | *eos = true; | 768 | 14.0k | } else if (!need_more_input_data(state)) { | 769 | 10.8k | *eos = false; | 770 | 10.8k | } | 771 | 20.7k | } | 772 | 21.4k | return Status::OK(); | 773 | 21.4k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 10.0k | bool* eos) { | 745 | 10.0k | auto& local_state = get_local_state(state); | 746 | 10.0k | if (need_more_input_data(state)) { | 747 | 9.66k | local_state._child_block->clear_column_data( | 748 | 9.66k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 9.66k | .num_slots()); | 750 | 9.66k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 9.66k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 9.66k | *eos = local_state._child_eos; | 753 | 9.66k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 920 | return Status::OK(); | 755 | 920 | } | 756 | 8.74k | { | 757 | 8.74k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 8.74k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 8.74k | } | 760 | 8.74k | } | 761 | | | 762 | 9.09k | if (!need_more_input_data(state)) { | 763 | 9.09k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 9.09k | bool new_eos = false; | 765 | 9.09k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 9.09k | if (new_eos) { | 767 | 6.72k | *eos = true; | 768 | 6.72k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 9.09k | } | 772 | 9.08k | return Status::OK(); | 773 | 9.08k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 48.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 48.2k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 48.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 48.2k | "AsyncWriterDependency", true); |
781 | 48.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 48.2k | _finish_dependency)); |
783 | | |
784 | 48.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 48.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 48.2k | return Status::OK(); |
787 | 48.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 354 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 354 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 354 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 354 | "AsyncWriterDependency", true); | 781 | 354 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 354 | _finish_dependency)); | 783 | | | 784 | 354 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 354 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 354 | return Status::OK(); | 787 | 354 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 47.9k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 47.9k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 47.9k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 47.9k | "AsyncWriterDependency", true); | 781 | 47.9k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 47.9k | _finish_dependency)); | 783 | | | 784 | 47.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 47.9k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 47.9k | return Status::OK(); | 787 | 47.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 32 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 32 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 32 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 32 | "AsyncWriterDependency", true); | 781 | 32 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 32 | _finish_dependency)); | 783 | | | 784 | 32 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 32 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 32 | return Status::OK(); | 787 | 32 | } |
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 | 49.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 49.0k | RETURN_IF_ERROR(Base::open(state)); |
793 | 49.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 383k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 334k | RETURN_IF_ERROR( |
796 | 334k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 334k | } |
798 | 49.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 49.0k | return Status::OK(); |
800 | 49.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 356 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 356 | RETURN_IF_ERROR(Base::open(state)); | 793 | 356 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.84k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.49k | RETURN_IF_ERROR( | 796 | 1.49k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.49k | } | 798 | 356 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 356 | return Status::OK(); | 800 | 356 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 48.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 48.6k | RETURN_IF_ERROR(Base::open(state)); | 793 | 48.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 380k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 332k | RETURN_IF_ERROR( | 796 | 332k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 332k | } | 798 | 48.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 48.6k | return Status::OK(); | 800 | 48.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 32 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 32 | RETURN_IF_ERROR(Base::open(state)); | 793 | 32 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 576 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 544 | RETURN_IF_ERROR( | 796 | 544 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 544 | } | 798 | 32 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 32 | return Status::OK(); | 800 | 32 | } |
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 | 64.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 64.6k | return _writer->sink(block, eos); |
806 | 64.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.43k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.43k | return _writer->sink(block, eos); | 806 | 1.43k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 63.1k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 63.1k | return _writer->sink(block, eos); | 806 | 63.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 32 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 32 | return _writer->sink(block, eos); | 806 | 32 | } |
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 | 49.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 49.1k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 49.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 49.1k | 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 | 49.1k | if (_writer) { |
818 | 49.1k | Status st = _writer->get_writer_status(); |
819 | 49.1k | if (exec_status.ok()) { |
820 | 49.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 49.0k | : Status::Cancelled("force close")); |
822 | 49.0k | } else { |
823 | 76 | _writer->force_close(exec_status); |
824 | 76 | } |
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 | 49.1k | RETURN_IF_ERROR(st); |
829 | 49.1k | } |
830 | 49.0k | return Base::close(state, exec_status); |
831 | 49.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 345 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 345 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 345 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 345 | 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 | 345 | if (_writer) { | 818 | 345 | Status st = _writer->get_writer_status(); | 819 | 345 | if (exec_status.ok()) { | 820 | 345 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 345 | : Status::Cancelled("force close")); | 822 | 345 | } 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 | 345 | RETURN_IF_ERROR(st); | 829 | 345 | } | 830 | 345 | return Base::close(state, exec_status); | 831 | 345 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 48.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 48.7k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 48.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 48.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 48.7k | if (_writer) { | 818 | 48.7k | Status st = _writer->get_writer_status(); | 819 | 48.7k | if (exec_status.ok()) { | 820 | 48.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 48.7k | : Status::Cancelled("force close")); | 822 | 48.7k | } else { | 823 | 76 | _writer->force_close(exec_status); | 824 | 76 | } | 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 | 48.7k | RETURN_IF_ERROR(st); | 829 | 48.7k | } | 830 | 48.7k | return Base::close(state, exec_status); | 831 | 48.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 32 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 32 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 32 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 32 | 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 | 32 | if (_writer) { | 818 | 32 | Status st = _writer->get_writer_status(); | 819 | 32 | if (exec_status.ok()) { | 820 | 32 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 32 | : Status::Cancelled("force close")); | 822 | 32 | } 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 | 32 | RETURN_IF_ERROR(st); | 829 | 32 | } | 830 | 32 | return Base::close(state, exec_status); | 831 | 32 | } |
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(PaimonTableSinkLocalState) |
850 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
852 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
853 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
854 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
855 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
856 | | DECLARE_OPERATOR(SortSinkLocalState) |
857 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
858 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
859 | | DECLARE_OPERATOR(AggSinkLocalState) |
860 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
862 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
863 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
864 | | DECLARE_OPERATOR(UnionSinkLocalState) |
865 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
866 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
868 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
870 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
871 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
872 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
873 | | DECLARE_OPERATOR(CacheSinkLocalState) |
874 | | DECLARE_OPERATOR(DictSinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
876 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
877 | | |
878 | | #undef DECLARE_OPERATOR |
879 | | |
880 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
881 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
882 | | DECLARE_OPERATOR(OlapScanLocalState) |
883 | | DECLARE_OPERATOR(GroupCommitLocalState) |
884 | | DECLARE_OPERATOR(JDBCScanLocalState) |
885 | | DECLARE_OPERATOR(FileScanLocalState) |
886 | | DECLARE_OPERATOR(AnalyticLocalState) |
887 | | DECLARE_OPERATOR(SortLocalState) |
888 | | DECLARE_OPERATOR(SpillSortLocalState) |
889 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
890 | | DECLARE_OPERATOR(AggLocalState) |
891 | | DECLARE_OPERATOR(BucketedAggLocalState) |
892 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
893 | | DECLARE_OPERATOR(TableFunctionLocalState) |
894 | | DECLARE_OPERATOR(ExchangeLocalState) |
895 | | DECLARE_OPERATOR(RepeatLocalState) |
896 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
897 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
898 | | DECLARE_OPERATOR(EmptySetLocalState) |
899 | | DECLARE_OPERATOR(UnionSourceLocalState) |
900 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
901 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
903 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
904 | | DECLARE_OPERATOR(DataGenLocalState) |
905 | | DECLARE_OPERATOR(SchemaScanLocalState) |
906 | | DECLARE_OPERATOR(MetaScanLocalState) |
907 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
908 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
909 | | DECLARE_OPERATOR(CacheSourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
911 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
912 | | |
913 | | #ifdef BE_TEST |
914 | | DECLARE_OPERATOR(MockLocalState) |
915 | | DECLARE_OPERATOR(MockScanLocalState) |
916 | | #endif |
917 | | #undef DECLARE_OPERATOR |
918 | | |
919 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
920 | | template class StreamingOperatorX<SelectLocalState>; |
921 | | |
922 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
924 | | template class StatefulOperatorX<RepeatLocalState>; |
925 | | template class StatefulOperatorX<MaterializationLocalState>; |
926 | | template class StatefulOperatorX<StreamingAggLocalState>; |
927 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
928 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
929 | | template class StatefulOperatorX<TableFunctionLocalState>; |
930 | | |
931 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
933 | | template class PipelineXSinkLocalState<SortSharedState>; |
934 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
935 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
936 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
937 | | template class PipelineXSinkLocalState<AggSharedState>; |
938 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
940 | | template class PipelineXSinkLocalState<FakeSharedState>; |
941 | | template class PipelineXSinkLocalState<UnionSharedState>; |
942 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
943 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
944 | | template class PipelineXSinkLocalState<SetSharedState>; |
945 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
946 | | template class PipelineXSinkLocalState<BasicSharedState>; |
947 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
948 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
949 | | |
950 | | template class PipelineXLocalState<HashJoinSharedState>; |
951 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
952 | | template class PipelineXLocalState<SortSharedState>; |
953 | | template class PipelineXLocalState<SpillSortSharedState>; |
954 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
955 | | template class PipelineXLocalState<AnalyticSharedState>; |
956 | | template class PipelineXLocalState<AggSharedState>; |
957 | | template class PipelineXLocalState<BucketedAggSharedState>; |
958 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
959 | | template class PipelineXLocalState<FakeSharedState>; |
960 | | template class PipelineXLocalState<UnionSharedState>; |
961 | | template class PipelineXLocalState<DataQueueSharedState>; |
962 | | template class PipelineXLocalState<MultiCastSharedState>; |
963 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
964 | | template class PipelineXLocalState<SetSharedState>; |
965 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
966 | | template class PipelineXLocalState<BasicSharedState>; |
967 | | template class PipelineXLocalState<RecCTESharedState>; |
968 | | |
969 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
972 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
973 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
979 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
980 | | |
981 | | #ifdef BE_TEST |
982 | | template class OperatorX<DummyOperatorLocalState>; |
983 | | template class DataSinkOperatorX<DummySinkLocalState>; |
984 | | #endif |
985 | | |
986 | | } // namespace doris |