be/src/exec/operator/operator.cpp
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include "exec/operator/operator.h" |
19 | | |
20 | | #include <algorithm> |
21 | | |
22 | | #include "common/status.h" |
23 | | #include "exec/common/util.hpp" |
24 | | #include "exec/exchange/local_exchange_sink_operator.h" |
25 | | #include "exec/exchange/local_exchange_source_operator.h" |
26 | | #include "exec/operator/aggregation_sink_operator.h" |
27 | | #include "exec/operator/aggregation_source_operator.h" |
28 | | #include "exec/operator/analytic_sink_operator.h" |
29 | | #include "exec/operator/analytic_source_operator.h" |
30 | | #include "exec/operator/assert_num_rows_operator.h" |
31 | | #include "exec/operator/blackhole_sink_operator.h" |
32 | | #include "exec/operator/bucketed_aggregation_sink_operator.h" |
33 | | #include "exec/operator/bucketed_aggregation_source_operator.h" |
34 | | #include "exec/operator/cache_sink_operator.h" |
35 | | #include "exec/operator/cache_source_operator.h" |
36 | | #include "exec/operator/datagen_operator.h" |
37 | | #include "exec/operator/dict_sink_operator.h" |
38 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
39 | | #include "exec/operator/empty_set_operator.h" |
40 | | #include "exec/operator/exchange_sink_operator.h" |
41 | | #include "exec/operator/exchange_source_operator.h" |
42 | | #include "exec/operator/file_scan_operator.h" |
43 | | #include "exec/operator/group_commit_block_sink_operator.h" |
44 | | #include "exec/operator/group_commit_scan_operator.h" |
45 | | #include "exec/operator/hashjoin_build_sink.h" |
46 | | #include "exec/operator/hashjoin_probe_operator.h" |
47 | | #include "exec/operator/hive_table_sink_operator.h" |
48 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
49 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
50 | | #include "exec/operator/iceberg_table_sink_operator.h" |
51 | | #include "exec/operator/jdbc_scan_operator.h" |
52 | | #include "exec/operator/jdbc_table_sink_operator.h" |
53 | | #include "exec/operator/local_merge_sort_source_operator.h" |
54 | | #include "exec/operator/materialization_opertor.h" |
55 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
56 | | #include "exec/operator/memory_scratch_sink_operator.h" |
57 | | #include "exec/operator/meta_scan_operator.h" |
58 | | #include "exec/operator/mock_operator.h" |
59 | | #include "exec/operator/mock_scan_operator.h" |
60 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
61 | | #include "exec/operator/multi_cast_data_stream_source.h" |
62 | | #include "exec/operator/nested_loop_join_build_operator.h" |
63 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
64 | | #include "exec/operator/olap_scan_operator.h" |
65 | | #include "exec/operator/olap_table_sink_operator.h" |
66 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
67 | | #include "exec/operator/partition_sort_sink_operator.h" |
68 | | #include "exec/operator/partition_sort_source_operator.h" |
69 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
70 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
71 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
72 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
73 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_scan_operator.h" |
75 | | #include "exec/operator/rec_cte_sink_operator.h" |
76 | | #include "exec/operator/rec_cte_source_operator.h" |
77 | | #include "exec/operator/repeat_operator.h" |
78 | | #include "exec/operator/result_file_sink_operator.h" |
79 | | #include "exec/operator/result_sink_operator.h" |
80 | | #include "exec/operator/schema_scan_operator.h" |
81 | | #include "exec/operator/select_operator.h" |
82 | | #include "exec/operator/set_probe_sink_operator.h" |
83 | | #include "exec/operator/set_sink_operator.h" |
84 | | #include "exec/operator/set_source_operator.h" |
85 | | #include "exec/operator/sort_sink_operator.h" |
86 | | #include "exec/operator/sort_source_operator.h" |
87 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
88 | | #include "exec/operator/spill_sort_sink_operator.h" |
89 | | #include "exec/operator/spill_sort_source_operator.h" |
90 | | #include "exec/operator/streaming_aggregation_operator.h" |
91 | | #include "exec/operator/table_function_operator.h" |
92 | | #include "exec/operator/tvf_table_sink_operator.h" |
93 | | #include "exec/operator/union_sink_operator.h" |
94 | | #include "exec/operator/union_source_operator.h" |
95 | | #include "exec/pipeline/dependency.h" |
96 | | #include "exec/pipeline/pipeline.h" |
97 | | #include "exprs/vexpr.h" |
98 | | #include "exprs/vexpr_context.h" |
99 | | #include "runtime/runtime_profile.h" |
100 | | #include "runtime/runtime_profile_counter_names.h" |
101 | | #include "util/debug_util.h" |
102 | | #include "util/string_util.h" |
103 | | |
104 | | namespace doris { |
105 | | class RowDescriptor; |
106 | | class RuntimeState; |
107 | | } // namespace doris |
108 | | |
109 | | namespace doris { |
110 | | |
111 | 0 | Status OperatorBase::close(RuntimeState* state) { |
112 | 0 | if (_is_closed) { |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | 0 | _is_closed = true; |
116 | 0 | return Status::OK(); |
117 | 0 | } |
118 | | |
119 | | template <typename SharedStateArg> |
120 | 1.46M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.46M | if (_parent->nereids_id() == -1) { |
122 | 774k | return fmt::format("(id={})", _parent->node_id()); |
123 | 774k | } else { |
124 | 692k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 692k | } |
126 | 1.46M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 73.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 73.4k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 73.4k | } else { | 124 | 73.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 73.4k | } | 126 | 73.4k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 1 | if (_parent->nereids_id() == -1) { | 122 | 1 | return fmt::format("(id={})", _parent->node_id()); | 123 | 1 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 171k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 171k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 171k | } else { | 124 | 171k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 171k | } | 126 | 171k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 28 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 28 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 28 | } else { | 124 | 28 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 28 | } | 126 | 28 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 8.24k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 8.24k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 8.24k | } else { | 124 | 8.24k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 8.24k | } | 126 | 8.24k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 8.37k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 8.37k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 8.36k | } else { | 124 | 8.36k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 8.36k | } | 126 | 8.37k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 87.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 87.6k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 87.5k | } else { | 124 | 87.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 87.5k | } | 126 | 87.6k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 54.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 54.3k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 54.3k | } else { | 124 | 54.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 54.3k | } | 126 | 54.3k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 108 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 108 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 108 | } else { | 124 | 108 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 108 | } | 126 | 108 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 448k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 448k | if (_parent->nereids_id() == -1) { | 122 | 214k | return fmt::format("(id={})", _parent->node_id()); | 123 | 233k | } else { | 124 | 233k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 233k | } | 126 | 448k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 51.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 51.1k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 51.1k | } else { | 124 | 51.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 51.1k | } | 126 | 51.1k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.78k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.78k | if (_parent->nereids_id() == -1) { | 122 | 4.78k | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.78k | } else { | 124 | 3 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 3 | } | 126 | 4.78k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 477 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 477 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 375 | } else { | 124 | 375 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 375 | } | 126 | 477 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.94k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.94k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.93k | } else { | 124 | 4.93k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.93k | } | 126 | 4.94k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 552k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 554k | if (_parent->nereids_id() == -1) { | 122 | 554k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 552k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 164 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 164 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 164 | } else { | 124 | 164 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 164 | } | 126 | 164 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.05M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.05M | if (_parent->nereids_id() == -1) { |
131 | 589k | return fmt::format("(id={})", _parent->node_id()); |
132 | 589k | } else { |
133 | 461k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 461k | } |
135 | 1.05M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 122k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 122k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 122k | } else { | 133 | 122k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 122k | } | 135 | 122k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 174k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 174k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 174k | } else { | 133 | 174k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 174k | } | 135 | 174k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 35 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 35 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 35 | } else { | 133 | 35 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 35 | } | 135 | 35 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.52k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.52k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.52k | } else { | 133 | 8.52k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.52k | } | 135 | 8.52k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.38k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.38k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.37k | } else { | 133 | 8.37k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.37k | } | 135 | 8.38k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 88.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 88.0k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 88.0k | } else { | 133 | 88.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 88.0k | } | 135 | 88.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 54.2k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 54.2k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 54.2k | } else { | 133 | 54.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 54.2k | } | 135 | 54.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 118 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 118 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 118 | } else { | 133 | 118 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 118 | } | 135 | 118 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 51 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 51 | if (_parent->nereids_id() == -1) { | 131 | 51 | return fmt::format("(id={})", _parent->node_id()); | 132 | 51 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 51 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 5.57k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 5.57k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 5.57k | } else { | 133 | 5.57k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 5.57k | } | 135 | 5.57k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 477 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 477 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 375 | } else { | 133 | 375 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 375 | } | 135 | 477 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.5k | if (_parent->nereids_id() == -1) { | 131 | 12.5k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 231k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 231k | if (_parent->nereids_id() == -1) { | 131 | 231k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 231k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 344k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 345k | if (_parent->nereids_id() == -1) { | 131 | 345k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 344k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 328 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 328 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 328 | } else { | 133 | 328 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 328 | } | 135 | 328 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 30.2k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 30.2k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 30.2k | _terminated = true; |
143 | 30.2k | return Status::OK(); |
144 | 30.2k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.91k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.91k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.91k | _terminated = true; | 143 | 1.91k | return Status::OK(); | 144 | 1.91k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2 | _terminated = true; | 143 | 2 | return Status::OK(); | 144 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.03k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.03k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.03k | _terminated = true; | 143 | 2.03k | return Status::OK(); | 144 | 2.03k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.01k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.01k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.01k | _terminated = true; | 143 | 1.01k | return Status::OK(); | 144 | 1.01k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 530 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 530 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 530 | _terminated = true; | 143 | 530 | return Status::OK(); | 144 | 530 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 35 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 35 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 35 | _terminated = true; | 143 | 35 | return Status::OK(); | 144 | 35 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2 | _terminated = true; | 143 | 2 | return Status::OK(); | 144 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 226 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 226 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 226 | _terminated = true; | 143 | 226 | return Status::OK(); | 144 | 226 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 9 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 9 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 9 | _terminated = true; | 143 | 9 | return Status::OK(); | 144 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 357 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 357 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 357 | _terminated = true; | 143 | 357 | return Status::OK(); | 144 | 357 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 133 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 133 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 133 | _terminated = true; | 143 | 133 | return Status::OK(); | 144 | 133 | } |
|
145 | | |
146 | 278k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 278k | return _child && _child->is_serial_operator() && !is_source() |
148 | 278k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 278k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 278k | } |
151 | | |
152 | 21.0k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 21.0k | if (!_child) { |
154 | 19.8k | return false; |
155 | 19.8k | } |
156 | 1.17k | if (_child->is_serial_operator()) { |
157 | 171 | return true; |
158 | 171 | } |
159 | 1.00k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 1.00k | return child_distribution.need_local_exchange() && |
161 | 1.00k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.17k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 19.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 19.1k | fmt::memory_buffer debug_string_buffer; |
167 | 19.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 19.1k | return fmt::to_string(debug_string_buffer); |
169 | 19.1k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 3 | fmt::memory_buffer debug_string_buffer; | 167 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 3 | return fmt::to_string(debug_string_buffer); | 169 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 19.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 19.1k | fmt::memory_buffer debug_string_buffer; | 167 | 19.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 19.1k | return fmt::to_string(debug_string_buffer); | 169 | 19.1k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 1 | fmt::memory_buffer debug_string_buffer; | 167 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 1 | return fmt::to_string(debug_string_buffer); | 169 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 19.1k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 19.1k | fmt::memory_buffer debug_string_buffer; |
174 | 19.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 19.1k | return fmt::to_string(debug_string_buffer); |
176 | 19.1k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 19.1k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 19.1k | fmt::memory_buffer debug_string_buffer; | 174 | 19.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 19.1k | return fmt::to_string(debug_string_buffer); | 176 | 19.1k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 19.1k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 19.1k | fmt::memory_buffer debug_string_buffer; |
180 | 19.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 19.1k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 19.1k | _is_serial_operator); |
183 | 19.1k | return fmt::to_string(debug_string_buffer); |
184 | 19.1k | } |
185 | | |
186 | 19.1k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 19.1k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 19.1k | } |
189 | | |
190 | 593k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 593k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 593k | _nereids_id = tnode.nereids_id; |
193 | 593k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.23k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.23k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.23k | tnode.intermediate_projections_list.size()) { |
199 | 0 | return Status::InternalError( |
200 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
201 | 0 | "intermediate_projections_list size:{}", |
202 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
203 | 0 | tnode.intermediate_projections_list.size()); |
204 | 0 | } |
205 | 3.23k | } |
206 | 593k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 593k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 593k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 593k | } else if (tnode.__isset.conjuncts) { |
212 | 253k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 253k | VExprContextSPtr context; |
214 | 253k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 253k | _conjuncts.emplace_back(context); |
216 | 253k | } |
217 | 86.2k | } |
218 | | |
219 | | // create the projections expr |
220 | 593k | if (tnode.__isset.projections) { |
221 | 235k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 235k | } |
223 | 593k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.23k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.23k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 4.34k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 4.34k | VExprContextSPtrs projections; |
228 | 4.34k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 4.34k | _projection->intermediate_projections.push_back(projections); |
230 | 4.34k | } |
231 | 3.23k | } |
232 | 593k | return Status::OK(); |
233 | 593k | } |
234 | | |
235 | 620k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 620k | for (auto& conjunct : _conjuncts) { |
237 | 253k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 253k | } |
239 | 620k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 570k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 327k | return a->execute_cost() < b->execute_cost(); |
242 | 327k | }); |
243 | 570k | }; |
244 | | |
245 | 620k | if (has_projection()) { |
246 | 234k | auto& projection = *_projection; |
247 | 239k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 4.34k | const auto& input_row_desc = |
249 | 4.34k | i == 0 ? operator_row_desc_before_projection() |
250 | 4.34k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 4.34k | RETURN_IF_ERROR( |
252 | 4.34k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 4.34k | } |
254 | 234k | const auto& final_projection_input_row_desc = |
255 | 234k | projection.intermediate_output_row_descriptors.empty() |
256 | 234k | ? operator_row_desc_before_projection() |
257 | 234k | : projection.intermediate_output_row_descriptors.back(); |
258 | 234k | RETURN_IF_ERROR( |
259 | 234k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 234k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 234k | projection.output_row_descriptor)); |
262 | 234k | } |
263 | | |
264 | 620k | for (auto& conjunct : _conjuncts) { |
265 | 253k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 253k | } |
267 | 620k | if (has_projection()) { |
268 | 234k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 234k | for (auto& projections : _projection->intermediate_projections) { |
270 | 4.34k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 4.34k | } |
272 | 234k | } |
273 | 620k | if (_child && !is_source()) { |
274 | 90.4k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 90.4k | } |
276 | | |
277 | 620k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 620k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 620k | return Status::OK(); |
283 | 620k | } |
284 | | |
285 | 6.94k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 6.94k | if (_child && !is_source()) { |
287 | 672 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 672 | } |
289 | 6.94k | auto result = state->get_local_state_result(operator_id()); |
290 | 6.94k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 6.94k | return result.value()->terminate(state); |
294 | 6.94k | } |
295 | | |
296 | 4.01M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.01M | if (_child && !is_source()) { |
298 | 622k | RETURN_IF_ERROR(_child->close(state)); |
299 | 622k | } |
300 | 4.01M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.01M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.01M | return result.value()->close(state); |
305 | 4.01M | } |
306 | | |
307 | 262k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 262k | _origin_block.clear_column_data( |
309 | 262k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 262k | } |
311 | | |
312 | 590k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 590k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 590k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 590k | return Status::OK(); |
317 | 590k | } |
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 | 262k | Block* output_block) const { |
326 | 262k | auto* local_state = state->get_local_state(operator_id()); |
327 | 262k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 262k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 262k | const size_t rows = origin_block->rows(); |
330 | 262k | if (rows == 0) { |
331 | 142k | return Status::OK(); |
332 | 142k | } |
333 | 120k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 120k | { |
336 | 120k | Block input_block = *origin_block; |
337 | | |
338 | 120k | ColumnsWithTypeAndName new_columns; |
339 | 120k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 1.80k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 1.80k | new_columns.resize(projections.size()); |
345 | 11.6k | for (int i = 0; i < projections.size(); i++) { |
346 | 9.88k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 9.88k | 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 | 9.88k | } |
355 | 1.80k | Block tmp_block {new_columns}; |
356 | 1.80k | input_block.swap(tmp_block); |
357 | 1.80k | } |
358 | | |
359 | 120k | 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 | 120k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 120k | output_block, _projection->output_row_descriptor); |
368 | 120k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 120k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 120k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 681k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 561k | ColumnPtr column_ptr; |
374 | 561k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 561k | 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 | 561k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 561k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 561k | if (column_ptr->is_exclusive()) { |
386 | 196k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 365k | } else { |
388 | 365k | shared_columns[i] = std::move(column_ptr); |
389 | 365k | } |
390 | 561k | } |
391 | | |
392 | 120k | scoped_mutable_block.restore(); |
393 | 681k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 561k | if (shared_columns[i]) { |
395 | 365k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 365k | } |
397 | 561k | } |
398 | 120k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 120k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 120k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 120k | return Status::OK(); |
405 | 120k | } |
406 | | |
407 | 3.95M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 3.95M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 3.95M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 3.95M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 3.95M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 3.95M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 3.95M | if (_debug_point_count++ % 2 == 0) { |
414 | 3.95M | return Status::OK(); |
415 | 3.95M | } |
416 | 3.95M | } |
417 | 3.95M | }); |
418 | | |
419 | 3.95M | Status status; |
420 | 3.95M | auto* local_state = state->get_local_state(operator_id()); |
421 | 3.95M | Defer defer([&]() { |
422 | 3.95M | if (status.ok()) { |
423 | 3.95M | local_state->update_output_block_counters(*block); |
424 | 3.95M | } |
425 | 3.95M | }); |
426 | 3.95M | if (has_projection()) { |
427 | 262k | local_state->clear_origin_block(); |
428 | 262k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 262k | if (UNLIKELY(!status.ok())) { |
430 | 24 | return status; |
431 | 24 | } |
432 | 262k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 262k | return status; |
434 | 262k | } |
435 | 3.69M | status = get_block(state, block, eos); |
436 | 3.69M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.69M | return status; |
438 | 3.69M | } |
439 | | |
440 | 2.47M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.47M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 3.51k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 3.51k | *eos = true; |
444 | 3.51k | } |
445 | | |
446 | 2.47M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.47M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.47M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.47M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.47M | if (op_name == arg_op_name) { |
452 | 2.47M | *eos = true; |
453 | 2.47M | } |
454 | 2.47M | }); |
455 | | |
456 | 2.47M | if (auto rows = block->rows()) { |
457 | 706k | _num_rows_returned += rows; |
458 | 706k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 706k | } |
460 | 2.47M | } |
461 | | |
462 | 30.2k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 30.2k | auto result = state->get_sink_local_state_result(); |
464 | 30.2k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 30.2k | return result.value()->terminate(state); |
468 | 30.2k | } |
469 | | |
470 | 19.1k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 19.1k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 19.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 19.1k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 19.1k | return fmt::to_string(debug_string_buffer); |
476 | 19.1k | } |
477 | | |
478 | 19.1k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 19.1k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 19.1k | } |
481 | | |
482 | 311k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 311k | std::string op_name = "UNKNOWN_SINK"; |
484 | 311k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 311k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 311k | op_name = it->second; |
488 | 311k | } |
489 | 311k | _name = op_name + "_OPERATOR"; |
490 | 311k | return Status::OK(); |
491 | 311k | } |
492 | | |
493 | 265k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 265k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 265k | _nereids_id = tnode.nereids_id; |
496 | 265k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 265k | _name = substr + "_SINK_OPERATOR"; |
498 | 265k | return Status::OK(); |
499 | 265k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.47M | LocalSinkStateInfo& info) { |
504 | 1.47M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.47M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.47M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.47M | return Status::OK(); |
508 | 1.47M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 122k | LocalSinkStateInfo& info) { | 504 | 122k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 122k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 122k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 122k | return Status::OK(); | 508 | 122k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 301k | LocalSinkStateInfo& info) { | 504 | 301k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 301k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 301k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 301k | return Status::OK(); | 508 | 301k | } |
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 | 351 | LocalSinkStateInfo& info) { | 504 | 351 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 351 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 351 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 351 | return Status::OK(); | 508 | 351 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 43.4k | LocalSinkStateInfo& info) { | 504 | 43.4k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 43.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 43.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 43.4k | return Status::OK(); | 508 | 43.4k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 20 | LocalSinkStateInfo& info) { | 504 | 20 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 20 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 20 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 20 | return Status::OK(); | 508 | 20 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.38k | LocalSinkStateInfo& info) { | 504 | 8.38k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.38k | return Status::OK(); | 508 | 8.38k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 48 | LocalSinkStateInfo& info) { | 504 | 48 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 48 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 48 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 48 | return Status::OK(); | 508 | 48 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 174k | LocalSinkStateInfo& info) { | 504 | 174k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 174k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 174k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 174k | return Status::OK(); | 508 | 174k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 35 | LocalSinkStateInfo& info) { | 504 | 35 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 35 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 35 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 35 | return Status::OK(); | 508 | 35 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 231k | LocalSinkStateInfo& info) { | 504 | 231k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 231k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 231k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 231k | return Status::OK(); | 508 | 231k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 88.1k | LocalSinkStateInfo& info) { | 504 | 88.1k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 88.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 88.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 88.1k | return Status::OK(); | 508 | 88.1k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 54.3k | LocalSinkStateInfo& info) { | 504 | 54.3k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 54.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 54.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 54.3k | return Status::OK(); | 508 | 54.3k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 118 | LocalSinkStateInfo& info) { | 504 | 118 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 118 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 118 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 118 | return Status::OK(); | 508 | 118 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 423k | LocalSinkStateInfo& info) { | 504 | 423k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 423k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 423k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 423k | return Status::OK(); | 508 | 423k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.51k | LocalSinkStateInfo& info) { | 504 | 8.51k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.51k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.51k | return Status::OK(); | 508 | 8.51k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 5.55k | LocalSinkStateInfo& info) { | 504 | 5.55k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 5.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 5.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 5.55k | return Status::OK(); | 508 | 5.55k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1.94k | LocalSinkStateInfo& info) { | 504 | 1.94k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1.94k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1.94k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1.94k | return Status::OK(); | 508 | 1.94k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 375 | LocalSinkStateInfo& info) { | 504 | 375 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 375 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 375 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 375 | return Status::OK(); | 508 | 375 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.74k | LocalSinkStateInfo& info) { | 504 | 4.74k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.74k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.74k | return Status::OK(); | 508 | 4.74k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.62k | LocalSinkStateInfo& info) { | 504 | 2.62k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.62k | return Status::OK(); | 508 | 2.62k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.58k | LocalSinkStateInfo& info) { | 504 | 2.58k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.58k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.58k | return Status::OK(); | 508 | 2.58k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.55k | LocalSinkStateInfo& info) { | 504 | 2.55k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.55k | return Status::OK(); | 508 | 2.55k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1 | LocalSinkStateInfo& info) { | 504 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1 | return Status::OK(); | 508 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 568 | LocalSinkStateInfo& info) { | 504 | 568 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 568 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 568 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 568 | return Status::OK(); | 508 | 568 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 102 | LocalSinkStateInfo& info) { | 504 | 102 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 102 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 102 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 102 | return Status::OK(); | 508 | 102 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 164 | LocalSinkStateInfo& info) { | 504 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 164 | return Status::OK(); | 508 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 164 | LocalSinkStateInfo& info) { | 504 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 164 | return Status::OK(); | 508 | 164 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.16M | 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.16M | } else { |
519 | 1.16M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.16M | ss->id = operator_id(); |
521 | 1.16M | for (auto& dest : dests_id()) { |
522 | 1.16M | ss->related_op_ids.insert(dest); |
523 | 1.16M | } |
524 | 1.16M | return ss; |
525 | 1.16M | } |
526 | 1.16M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 110k | 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 | 110k | } else { | 519 | 110k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 110k | ss->id = operator_id(); | 521 | 110k | for (auto& dest : dests_id()) { | 522 | 110k | ss->related_op_ids.insert(dest); | 523 | 110k | } | 524 | 110k | return ss; | 525 | 110k | } | 526 | 110k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 302k | 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 | 302k | } else { | 519 | 302k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 302k | ss->id = operator_id(); | 521 | 302k | for (auto& dest : dests_id()) { | 522 | 300k | ss->related_op_ids.insert(dest); | 523 | 300k | } | 524 | 302k | return ss; | 525 | 302k | } | 526 | 302k | } |
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 | 351 | 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 | 351 | } else { | 519 | 351 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 351 | ss->id = operator_id(); | 521 | 351 | for (auto& dest : dests_id()) { | 522 | 351 | ss->related_op_ids.insert(dest); | 523 | 351 | } | 524 | 351 | return ss; | 525 | 351 | } | 526 | 351 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 43.5k | 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 | 43.5k | } else { | 519 | 43.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 43.5k | ss->id = operator_id(); | 521 | 43.5k | for (auto& dest : dests_id()) { | 522 | 43.2k | ss->related_op_ids.insert(dest); | 523 | 43.2k | } | 524 | 43.5k | return ss; | 525 | 43.5k | } | 526 | 43.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 20 | 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 | 20 | } else { | 519 | 20 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 20 | ss->id = operator_id(); | 521 | 20 | for (auto& dest : dests_id()) { | 522 | 20 | ss->related_op_ids.insert(dest); | 523 | 20 | } | 524 | 20 | return ss; | 525 | 20 | } | 526 | 20 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 8.39k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 8.39k | } else { | 519 | 8.39k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.39k | ss->id = operator_id(); | 521 | 8.39k | for (auto& dest : dests_id()) { | 522 | 8.39k | ss->related_op_ids.insert(dest); | 523 | 8.39k | } | 524 | 8.39k | return ss; | 525 | 8.39k | } | 526 | 8.39k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 48 | 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 | } else { | 519 | 48 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 48 | ss->id = operator_id(); | 521 | 48 | for (auto& dest : dests_id()) { | 522 | 48 | ss->related_op_ids.insert(dest); | 523 | 48 | } | 524 | 48 | return ss; | 525 | 48 | } | 526 | 48 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 175k | 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 | 175k | } else { | 519 | 175k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 175k | ss->id = operator_id(); | 521 | 175k | for (auto& dest : dests_id()) { | 522 | 175k | ss->related_op_ids.insert(dest); | 523 | 175k | } | 524 | 175k | return ss; | 525 | 175k | } | 526 | 175k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 37 | 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 | 37 | } else { | 519 | 37 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 37 | ss->id = operator_id(); | 521 | 37 | for (auto& dest : dests_id()) { | 522 | 37 | ss->related_op_ids.insert(dest); | 523 | 37 | } | 524 | 37 | return ss; | 525 | 37 | } | 526 | 37 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 88.5k | 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 | 88.5k | } else { | 519 | 88.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 88.5k | ss->id = operator_id(); | 521 | 88.5k | for (auto& dest : dests_id()) { | 522 | 88.4k | ss->related_op_ids.insert(dest); | 523 | 88.4k | } | 524 | 88.5k | return ss; | 525 | 88.5k | } | 526 | 88.5k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 117 | 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 | 117 | } else { | 519 | 117 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 117 | ss->id = operator_id(); | 521 | 117 | for (auto& dest : dests_id()) { | 522 | 117 | ss->related_op_ids.insert(dest); | 523 | 117 | } | 524 | 117 | return ss; | 525 | 117 | } | 526 | 117 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 425k | 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 | 425k | } else { | 519 | 425k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 425k | ss->id = operator_id(); | 521 | 425k | for (auto& dest : dests_id()) { | 522 | 421k | ss->related_op_ids.insert(dest); | 523 | 421k | } | 524 | 425k | return ss; | 525 | 425k | } | 526 | 425k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 8.64k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 8.64k | } else { | 519 | 8.64k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.64k | ss->id = operator_id(); | 521 | 8.64k | for (auto& dest : dests_id()) { | 522 | 8.63k | ss->related_op_ids.insert(dest); | 523 | 8.63k | } | 524 | 8.64k | return ss; | 525 | 8.64k | } | 526 | 8.64k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 478 | 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 | 478 | } else { | 519 | 478 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 478 | ss->id = operator_id(); | 521 | 478 | for (auto& dest : dests_id()) { | 522 | 478 | ss->related_op_ids.insert(dest); | 523 | 478 | } | 524 | 478 | return ss; | 525 | 478 | } | 526 | 478 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.59k | 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.59k | } else { | 519 | 2.59k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.59k | ss->id = operator_id(); | 521 | 2.59k | for (auto& dest : dests_id()) { | 522 | 2.59k | ss->related_op_ids.insert(dest); | 523 | 2.59k | } | 524 | 2.59k | return ss; | 525 | 2.59k | } | 526 | 2.59k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.55k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.55k | } else { | 519 | 2.55k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.55k | ss->id = operator_id(); | 521 | 2.57k | for (auto& dest : dests_id()) { | 522 | 2.57k | ss->related_op_ids.insert(dest); | 523 | 2.57k | } | 524 | 2.55k | return ss; | 525 | 2.55k | } | 526 | 2.55k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 570 | 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 | 570 | } else { | 519 | 570 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 570 | ss->id = operator_id(); | 521 | 570 | for (auto& dest : dests_id()) { | 522 | 564 | ss->related_op_ids.insert(dest); | 523 | 564 | } | 524 | 570 | return ss; | 525 | 570 | } | 526 | 570 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 102 | 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 | 102 | } else { | 519 | 102 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 102 | ss->id = operator_id(); | 521 | 102 | for (auto& dest : dests_id()) { | 522 | 101 | ss->related_op_ids.insert(dest); | 523 | 101 | } | 524 | 102 | return ss; | 525 | 102 | } | 526 | 102 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 1.71M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 1.71M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 1.71M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 1.71M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 1.71M | return Status::OK(); |
534 | 1.71M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 74.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 74.1k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 74.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 74.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 74.1k | return Status::OK(); | 534 | 74.1k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 234k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 234k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 234k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 234k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 234k | return Status::OK(); | 534 | 234k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 128 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 128 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 128 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 128 | return Status::OK(); | 534 | 128 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.08k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.08k | return Status::OK(); | 534 | 3.08k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.37k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.37k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.37k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.37k | return Status::OK(); | 534 | 8.37k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.25k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.25k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.25k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.25k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.25k | return Status::OK(); | 534 | 8.25k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 28 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 28 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 28 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 28 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 28 | return Status::OK(); | 534 | 28 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 165k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 165k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 165k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 165k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 165k | return Status::OK(); | 534 | 165k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 87.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 87.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 87.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 87.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 87.9k | return Status::OK(); | 534 | 87.9k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 54.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 54.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 54.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 54.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 54.4k | return Status::OK(); | 534 | 54.4k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 108 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 108 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 108 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 108 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 108 | return Status::OK(); | 534 | 108 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.47k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.47k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.47k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.47k | return Status::OK(); | 534 | 4.47k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 215k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 215k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 215k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 215k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 215k | return Status::OK(); | 534 | 215k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.34k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.34k | return Status::OK(); | 534 | 1.34k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.28k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.28k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.28k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.28k | return Status::OK(); | 534 | 8.28k | } |
_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.49k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.49k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.49k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.49k | return Status::OK(); | 534 | 1.49k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 51.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 51.1k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 51.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 51.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 51.1k | return Status::OK(); | 534 | 51.1k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.78k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.78k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.78k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.78k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.78k | return Status::OK(); | 534 | 4.78k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 376 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 376 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 376 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 376 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 376 | return Status::OK(); | 534 | 376 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_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_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.51k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.51k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.51k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.51k | return Status::OK(); | 534 | 2.51k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 311 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 311 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 311 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 311 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 311 | return Status::OK(); | 534 | 311 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.56k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.56k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.56k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.56k | return Status::OK(); | 534 | 1.56k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.25k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.25k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.25k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.25k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.25k | return Status::OK(); | 534 | 4.25k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 557k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 557k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 557k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 557k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 557k | return Status::OK(); | 534 | 557k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 14 | return Status::OK(); | 534 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 164 | return Status::OK(); | 534 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.18k | return Status::OK(); | 534 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 780 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 780 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 780 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 780 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 780 | return Status::OK(); | 534 | 780 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 826 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 826 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 826 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 826 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 826 | return Status::OK(); | 534 | 826 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.49k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.49k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.49k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.49k | return Status::OK(); | 534 | 4.49k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 214k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 214k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 214k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 214k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 214k | return Status::OK(); | 534 | 214k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.47M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 1.70M | : _num_rows_returned(0), |
542 | 1.70M | _rows_returned_counter(nullptr), |
543 | 1.70M | _parent(parent), |
544 | 1.70M | _state(state), |
545 | 1.70M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 1.71M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 1.71M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 1.71M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 1.71M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 1.71M | _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.71M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 1.71M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 1.71M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 1.71M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 1.71M | if constexpr (!is_fake_shared) { |
560 | 1.03M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 622k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 622k | .first.get() |
563 | 622k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 622k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 622k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 622k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 622k | } else if (info.shared_state) { |
569 | 345k | 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 | 345k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 345k | _dependency = _shared_state->create_source_dependency( |
576 | 345k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 345k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 345k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 345k | } else { |
580 | 61.9k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 4.57k | DCHECK(false); |
582 | 4.57k | } |
583 | 61.9k | } |
584 | 1.03M | } |
585 | | |
586 | 1.71M | 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.71M | _rows_returned_counter = |
591 | 1.71M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 1.71M | _blocks_returned_counter = |
593 | 1.71M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 1.71M | _output_block_bytes_counter = |
595 | 1.71M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 1.71M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 1.71M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 1.71M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 1.71M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 1.71M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 1.71M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 1.71M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 1.71M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 1.71M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 1.71M | _memory_used_counter = |
606 | 1.71M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 1.71M | _common_profile->add_info_string("IsColocate", |
608 | 1.71M | std::to_string(_parent->is_colocated_operator())); |
609 | 1.71M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 1.71M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 1.71M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 1.71M | return Status::OK(); |
613 | 1.71M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 74.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 74.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 74.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 74.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 74.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 | 74.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 74.3k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 74.3k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 74.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 74.3k | if constexpr (!is_fake_shared) { | 560 | 74.3k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 12.3k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 12.3k | .first.get() | 563 | 12.3k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 12.3k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 12.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 12.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 61.9k | } 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 | 60.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 60.7k | _dependency = _shared_state->create_source_dependency( | 576 | 60.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 60.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 60.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 60.7k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.15k | } | 584 | 74.3k | } | 585 | | | 586 | 74.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 | 74.3k | _rows_returned_counter = | 591 | 74.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 74.3k | _blocks_returned_counter = | 593 | 74.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 74.3k | _output_block_bytes_counter = | 595 | 74.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 74.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 74.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 74.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 74.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 74.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 74.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 74.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 74.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 74.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 74.3k | _memory_used_counter = | 606 | 74.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 74.3k | _common_profile->add_info_string("IsColocate", | 608 | 74.3k | std::to_string(_parent->is_colocated_operator())); | 609 | 74.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 74.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 74.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 74.3k | return Status::OK(); | 613 | 74.3k | } |
_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 | 174k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 174k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 174k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 174k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 174k | _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 | 174k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 174k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 174k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 174k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 174k | if constexpr (!is_fake_shared) { | 560 | 174k | 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 | 174k | } 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 | 169k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 169k | _dependency = _shared_state->create_source_dependency( | 576 | 169k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 169k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 169k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 169k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 4.86k | } | 584 | 174k | } | 585 | | | 586 | 174k | 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 | 174k | _rows_returned_counter = | 591 | 174k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 174k | _blocks_returned_counter = | 593 | 174k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 174k | _output_block_bytes_counter = | 595 | 174k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 174k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 174k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 174k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 174k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 174k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 174k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 174k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 174k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 174k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 174k | _memory_used_counter = | 606 | 174k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 174k | _common_profile->add_info_string("IsColocate", | 608 | 174k | std::to_string(_parent->is_colocated_operator())); | 609 | 174k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 174k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 174k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 174k | return Status::OK(); | 613 | 174k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 28 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 28 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 28 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 28 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 28 | _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 | 28 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 28 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 28 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 28 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 28 | if constexpr (!is_fake_shared) { | 560 | 28 | 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 | 28 | } 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 | 28 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 28 | _dependency = _shared_state->create_source_dependency( | 576 | 28 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 28 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 28 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 28 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 28 | } | 585 | | | 586 | 28 | 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 | 28 | _rows_returned_counter = | 591 | 28 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 28 | _blocks_returned_counter = | 593 | 28 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 28 | _output_block_bytes_counter = | 595 | 28 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 28 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 28 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 28 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 28 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 28 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 28 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 28 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 28 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 28 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 28 | _memory_used_counter = | 606 | 28 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 28 | _common_profile->add_info_string("IsColocate", | 608 | 28 | std::to_string(_parent->is_colocated_operator())); | 609 | 28 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 28 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 28 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 28 | return Status::OK(); | 613 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.41k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.41k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.41k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.41k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.41k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 8.41k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.41k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.41k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.41k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.41k | if constexpr (!is_fake_shared) { | 560 | 8.41k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 8.41k | } 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 | 8.12k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 8.12k | _dependency = _shared_state->create_source_dependency( | 576 | 8.12k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 8.12k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 8.12k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.12k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 292 | } | 584 | 8.41k | } | 585 | | | 586 | 8.41k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 8.41k | _rows_returned_counter = | 591 | 8.41k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.41k | _blocks_returned_counter = | 593 | 8.41k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.41k | _output_block_bytes_counter = | 595 | 8.41k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.41k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.41k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.41k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.41k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.41k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.41k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.41k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.41k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.41k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.41k | _memory_used_counter = | 606 | 8.41k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.41k | _common_profile->add_info_string("IsColocate", | 608 | 8.41k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.41k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.41k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.41k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.41k | return Status::OK(); | 613 | 8.41k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.40k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.40k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.40k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.40k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.40k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 8.40k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.40k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.40k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.40k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.40k | if constexpr (!is_fake_shared) { | 560 | 8.40k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 8.40k | } 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 | 8.36k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 8.36k | _dependency = _shared_state->create_source_dependency( | 576 | 8.36k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 8.36k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 8.36k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.36k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 41 | } | 584 | 8.40k | } | 585 | | | 586 | 8.40k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 8.40k | _rows_returned_counter = | 591 | 8.40k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.40k | _blocks_returned_counter = | 593 | 8.40k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.40k | _output_block_bytes_counter = | 595 | 8.40k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.40k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.40k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.40k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.40k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.40k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.40k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.40k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.40k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.40k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.40k | _memory_used_counter = | 606 | 8.40k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.40k | _common_profile->add_info_string("IsColocate", | 608 | 8.40k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.40k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.40k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.40k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.40k | return Status::OK(); | 613 | 8.40k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 88.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 88.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 88.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 88.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 88.2k | _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 | 88.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 88.2k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 88.2k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 88.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 88.2k | if constexpr (!is_fake_shared) { | 560 | 88.2k | 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 | 88.2k | } 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 | 86.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 86.2k | _dependency = _shared_state->create_source_dependency( | 576 | 86.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 86.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 86.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 86.2k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.06k | } | 584 | 88.2k | } | 585 | | | 586 | 88.2k | 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 | 88.2k | _rows_returned_counter = | 591 | 88.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 88.2k | _blocks_returned_counter = | 593 | 88.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 88.2k | _output_block_bytes_counter = | 595 | 88.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 88.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 88.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 88.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 88.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 88.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 88.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 88.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 88.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 88.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 88.2k | _memory_used_counter = | 606 | 88.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 88.2k | _common_profile->add_info_string("IsColocate", | 608 | 88.2k | std::to_string(_parent->is_colocated_operator())); | 609 | 88.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 88.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 88.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 88.2k | return Status::OK(); | 613 | 88.2k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 54.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 54.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 54.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 54.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 54.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 | 54.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 54.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 54.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 54.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 54.4k | if constexpr (!is_fake_shared) { | 560 | 54.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 54.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 54.4k | .first.get() | 563 | 54.4k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 54.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 54.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 54.4k | _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 | 54.4k | } | 585 | | | 586 | 54.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 | 54.4k | _rows_returned_counter = | 591 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 54.4k | _blocks_returned_counter = | 593 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 54.4k | _output_block_bytes_counter = | 595 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 54.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 54.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 54.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 54.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 54.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 54.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 54.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 54.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 54.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 54.4k | _memory_used_counter = | 606 | 54.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 54.4k | _common_profile->add_info_string("IsColocate", | 608 | 54.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 54.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 54.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 54.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 54.4k | return Status::OK(); | 613 | 54.4k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 108 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 108 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 108 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 108 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 108 | _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 | 108 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 108 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 108 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 108 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 108 | if constexpr (!is_fake_shared) { | 560 | 108 | 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 | 108 | } 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 | 108 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 108 | _dependency = _shared_state->create_source_dependency( | 576 | 108 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 108 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 108 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 108 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 108 | } | 585 | | | 586 | 108 | 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 | 108 | _rows_returned_counter = | 591 | 108 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 108 | _blocks_returned_counter = | 593 | 108 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 108 | _output_block_bytes_counter = | 595 | 108 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 108 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 108 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 108 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 108 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 108 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 108 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 108 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 108 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 108 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 108 | _memory_used_counter = | 606 | 108 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 108 | _common_profile->add_info_string("IsColocate", | 608 | 108 | std::to_string(_parent->is_colocated_operator())); | 609 | 108 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 108 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 108 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 108 | return Status::OK(); | 613 | 108 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 687k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 687k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 687k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 687k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 687k | _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 | 687k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 687k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 687k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 687k | 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 | 687k | 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 | 687k | _rows_returned_counter = | 591 | 687k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 687k | _blocks_returned_counter = | 593 | 687k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 687k | _output_block_bytes_counter = | 595 | 687k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 687k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 687k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 687k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 687k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 687k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 687k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 687k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 687k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 687k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 687k | _memory_used_counter = | 606 | 687k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 687k | _common_profile->add_info_string("IsColocate", | 608 | 687k | std::to_string(_parent->is_colocated_operator())); | 609 | 687k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 687k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 687k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 687k | return Status::OK(); | 613 | 687k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 51.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 51.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 51.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 51.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 51.1k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 51.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 51.1k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 51.1k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 51.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 51.1k | if constexpr (!is_fake_shared) { | 560 | 51.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 51.1k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 2.61k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 2.61k | _dependency = _shared_state->create_source_dependency( | 576 | 2.61k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 2.61k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 2.61k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 48.5k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 48.5k | } | 584 | 51.1k | } | 585 | | | 586 | 51.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 51.1k | _rows_returned_counter = | 591 | 51.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 51.1k | _blocks_returned_counter = | 593 | 51.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 51.1k | _output_block_bytes_counter = | 595 | 51.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 51.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 51.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 51.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 51.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 51.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 51.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 51.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 51.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 51.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 51.1k | _memory_used_counter = | 606 | 51.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 51.1k | _common_profile->add_info_string("IsColocate", | 608 | 51.1k | std::to_string(_parent->is_colocated_operator())); | 609 | 51.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 51.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 51.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 51.1k | return Status::OK(); | 613 | 51.1k | } |
_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 | 4.82k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 4.82k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 4.82k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 4.82k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 4.82k | _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 | 4.82k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 4.82k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 4.82k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 4.82k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 4.82k | if constexpr (!is_fake_shared) { | 560 | 4.82k | 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 | 4.82k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.73k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.73k | _dependency = _shared_state->create_source_dependency( | 576 | 4.73k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.73k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.73k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.73k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 92 | } | 584 | 4.82k | } | 585 | | | 586 | 4.82k | 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 | 4.82k | _rows_returned_counter = | 591 | 4.82k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 4.82k | _blocks_returned_counter = | 593 | 4.82k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 4.82k | _output_block_bytes_counter = | 595 | 4.82k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 4.82k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 4.82k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 4.82k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 4.82k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 4.82k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 4.82k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 4.82k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 4.82k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 4.82k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 4.82k | _memory_used_counter = | 606 | 4.82k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 4.82k | _common_profile->add_info_string("IsColocate", | 608 | 4.82k | std::to_string(_parent->is_colocated_operator())); | 609 | 4.82k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 4.82k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 4.82k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 4.82k | return Status::OK(); | 613 | 4.82k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 477 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 477 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 477 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 477 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 477 | _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 | 477 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 477 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 477 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 477 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 477 | if constexpr (!is_fake_shared) { | 560 | 477 | 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 | 477 | } 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 | 476 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 476 | _dependency = _shared_state->create_source_dependency( | 576 | 476 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 476 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 476 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 476 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1 | } | 584 | 477 | } | 585 | | | 586 | 477 | 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 | 477 | _rows_returned_counter = | 591 | 477 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 477 | _blocks_returned_counter = | 593 | 477 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 477 | _output_block_bytes_counter = | 595 | 477 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 477 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 477 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 477 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 477 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 477 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 477 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 477 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 477 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 477 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 477 | _memory_used_counter = | 606 | 477 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 477 | _common_profile->add_info_string("IsColocate", | 608 | 477 | std::to_string(_parent->is_colocated_operator())); | 609 | 477 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 477 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 477 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 477 | return Status::OK(); | 613 | 477 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.15k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.15k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.15k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.15k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.15k | _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.15k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.15k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.15k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.15k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.15k | if constexpr (!is_fake_shared) { | 560 | 5.15k | 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.15k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.75k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.75k | _dependency = _shared_state->create_source_dependency( | 576 | 4.75k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.75k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 399 | } | 584 | 5.15k | } | 585 | | | 586 | 5.15k | 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.15k | _rows_returned_counter = | 591 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.15k | _blocks_returned_counter = | 593 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.15k | _output_block_bytes_counter = | 595 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.15k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.15k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.15k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.15k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.15k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.15k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.15k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.15k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.15k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.15k | _memory_used_counter = | 606 | 5.15k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.15k | _common_profile->add_info_string("IsColocate", | 608 | 5.15k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.15k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.15k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.15k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.15k | return Status::OK(); | 613 | 5.15k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 560k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 560k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 560k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 560k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 560k | _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 | 560k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 560k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 560k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 560k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 560k | if constexpr (!is_fake_shared) { | 560 | 560k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 555k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 555k | .first.get() | 563 | 555k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 555k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 555k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 555k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 555k | } 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 | 4.57k | } else { | 580 | 4.57k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 4.57k | DCHECK(false); | 582 | 4.57k | } | 583 | 4.57k | } | 584 | 560k | } | 585 | | | 586 | 560k | 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 | 560k | _rows_returned_counter = | 591 | 560k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 560k | _blocks_returned_counter = | 593 | 560k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 560k | _output_block_bytes_counter = | 595 | 560k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 560k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 560k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 560k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 560k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 560k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 560k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 560k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 560k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 560k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 560k | _memory_used_counter = | 606 | 560k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 560k | _common_profile->add_info_string("IsColocate", | 608 | 560k | std::to_string(_parent->is_colocated_operator())); | 609 | 560k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 560k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 560k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 560k | return Status::OK(); | 613 | 560k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 164 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 164 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 164 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 164 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 164 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 164 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 164 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 164 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 164 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 164 | if constexpr (!is_fake_shared) { | 560 | 164 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 164 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 164 | _dependency = _shared_state->create_source_dependency( | 576 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 164 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 164 | } | 585 | | | 586 | 164 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 164 | _rows_returned_counter = | 591 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 164 | _blocks_returned_counter = | 593 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 164 | _output_block_bytes_counter = | 595 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 164 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 164 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 164 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 164 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 164 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 164 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 164 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 164 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 164 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 164 | _memory_used_counter = | 606 | 164 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 164 | _common_profile->add_info_string("IsColocate", | 608 | 164 | std::to_string(_parent->is_colocated_operator())); | 609 | 164 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 164 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 164 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 164 | return Status::OK(); | 613 | 164 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 1.73M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 1.73M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.01M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 280k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 280k | } |
621 | 1.73M | if (_parent->has_projection()) { |
622 | 361k | const auto& projection = *_parent->_projection; |
623 | 361k | _projections.resize(projection.projections.size()); |
624 | 2.23M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.87M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.87M | } |
627 | 361k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 370k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 8.48k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 52.0k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 43.5k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 43.5k | state, _intermediate_projections[i][j])); |
633 | 43.5k | } |
634 | 8.48k | } |
635 | 361k | } |
636 | 1.73M | return Status::OK(); |
637 | 1.73M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 75.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 75.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 76.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.27k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.27k | } | 621 | 75.7k | if (_parent->has_projection()) { | 622 | 75.6k | const auto& projection = *_parent->_projection; | 623 | 75.6k | _projections.resize(projection.projections.size()); | 624 | 416k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 340k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 340k | } | 627 | 75.6k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 76.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 832 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 6.77k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 5.93k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 5.93k | state, _intermediate_projections[i][j])); | 633 | 5.93k | } | 634 | 832 | } | 635 | 75.6k | } | 636 | 75.7k | return Status::OK(); | 637 | 75.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 | 175k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 175k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 175k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 175k | if (_parent->has_projection()) { | 622 | 73 | const auto& projection = *_parent->_projection; | 623 | 73 | _projections.resize(projection.projections.size()); | 624 | 364 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 291 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 291 | } | 627 | 73 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 73 | 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 | 73 | } | 636 | 175k | return Status::OK(); | 637 | 175k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 28 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 28 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 28 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 28 | 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 | 28 | return Status::OK(); | 637 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.68k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.68k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.74k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 63 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 63 | } | 621 | 8.68k | if (_parent->has_projection()) { | 622 | 8.68k | const auto& projection = *_parent->_projection; | 623 | 8.68k | _projections.resize(projection.projections.size()); | 624 | 39.4k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 30.7k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 30.7k | } | 627 | 8.68k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 8.71k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 28 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 180 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 152 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 152 | state, _intermediate_projections[i][j])); | 633 | 152 | } | 634 | 28 | } | 635 | 8.68k | } | 636 | 8.68k | return Status::OK(); | 637 | 8.68k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.40k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.40k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 9.26k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 866 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 866 | } | 621 | 8.40k | if (_parent->has_projection()) { | 622 | 4.87k | const auto& projection = *_parent->_projection; | 623 | 4.87k | _projections.resize(projection.projections.size()); | 624 | 19.4k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 14.6k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 14.6k | } | 627 | 4.87k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.96k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 83 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 624 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 541 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 541 | state, _intermediate_projections[i][j])); | 633 | 541 | } | 634 | 83 | } | 635 | 4.87k | } | 636 | 8.40k | return Status::OK(); | 637 | 8.40k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 88.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 88.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 90.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.19k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.19k | } | 621 | 88.8k | if (_parent->has_projection()) { | 622 | 26.8k | const auto& projection = *_parent->_projection; | 623 | 26.8k | _projections.resize(projection.projections.size()); | 624 | 240k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 213k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 213k | } | 627 | 26.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 27.0k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 173 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.33k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.15k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.15k | state, _intermediate_projections[i][j])); | 633 | 1.15k | } | 634 | 173 | } | 635 | 26.8k | } | 636 | 88.8k | return Status::OK(); | 637 | 88.8k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 54.5k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 54.5k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 54.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 39 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 39 | } | 621 | 54.5k | if (_parent->has_projection()) { | 622 | 162 | const auto& projection = *_parent->_projection; | 623 | 162 | _projections.resize(projection.projections.size()); | 624 | 586 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 424 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 424 | } | 627 | 162 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 162 | 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 | 162 | } | 636 | 54.5k | return Status::OK(); | 637 | 54.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 112 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 112 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 112 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 112 | if (_parent->has_projection()) { | 622 | 84 | const auto& projection = *_parent->_projection; | 623 | 84 | _projections.resize(projection.projections.size()); | 624 | 252 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 168 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 168 | } | 627 | 84 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 84 | 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 | 84 | } | 636 | 112 | return Status::OK(); | 637 | 112 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 691k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 691k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 967k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 276k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 276k | } | 621 | 691k | if (_parent->has_projection()) { | 622 | 235k | const auto& projection = *_parent->_projection; | 623 | 235k | _projections.resize(projection.projections.size()); | 624 | 1.42M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.18M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.18M | } | 627 | 235k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 242k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 7.35k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 43.1k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 35.7k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 35.7k | state, _intermediate_projections[i][j])); | 633 | 35.7k | } | 634 | 7.35k | } | 635 | 235k | } | 636 | 691k | return Status::OK(); | 637 | 691k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 51.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 51.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 51.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 51.4k | if (_parent->has_projection()) { | 622 | 9.71k | const auto& projection = *_parent->_projection; | 623 | 9.71k | _projections.resize(projection.projections.size()); | 624 | 94.8k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 85.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 85.0k | } | 627 | 9.71k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 9.71k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 7 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 39 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 32 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 32 | state, _intermediate_projections[i][j])); | 633 | 32 | } | 634 | 7 | } | 635 | 9.71k | } | 636 | 51.4k | return Status::OK(); | 637 | 51.4k | } |
_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 | 4.79k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 4.79k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.27k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 480 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 480 | } | 621 | 4.79k | 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 | 4.79k | return Status::OK(); | 637 | 4.79k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 478 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 478 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 478 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 478 | 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 | 478 | return Status::OK(); | 637 | 478 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.24k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.24k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.24k | 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.24k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 226 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 166 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 166 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 60 | } | 636 | 5.24k | return Status::OK(); | 637 | 5.24k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 565k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 565k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 565k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 565k | 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 | 565k | return Status::OK(); | 637 | 565k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 164 | if (_parent->has_projection()) { | 622 | 161 | const auto& projection = *_parent->_projection; | 623 | 161 | _projections.resize(projection.projections.size()); | 624 | 480 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 319 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 319 | } | 627 | 161 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 164 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 161 | } | 636 | 164 | return Status::OK(); | 637 | 164 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 6.94k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 6.94k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 6.94k | _terminated = true; |
645 | 6.94k | return Status::OK(); |
646 | 6.94k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 349 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 349 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 349 | _terminated = true; | 645 | 349 | return Status::OK(); | 646 | 349 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 16 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 16 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 16 | _terminated = true; | 645 | 16 | return Status::OK(); | 646 | 16 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 45 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 45 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 45 | _terminated = true; | 645 | 45 | return Status::OK(); | 646 | 45 | } |
_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 | 83 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 83 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 83 | _terminated = true; | 645 | 83 | return Status::OK(); | 646 | 83 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.25k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.25k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5.25k | _terminated = true; | 645 | 5.25k | return Status::OK(); | 646 | 5.25k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_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_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 214 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 214 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 214 | _terminated = true; | 645 | 214 | return Status::OK(); | 646 | 214 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 942 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 942 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 942 | _terminated = true; | 645 | 942 | return Status::OK(); | 646 | 942 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 33 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 33 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 33 | _terminated = true; | 645 | 33 | return Status::OK(); | 646 | 33 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 1.93M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 1.93M | if (_closed) { |
651 | 205k | return Status::OK(); |
652 | 205k | } |
653 | 1.73M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.03M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.03M | } |
656 | 1.73M | _closed = true; |
657 | 1.73M | return Status::OK(); |
658 | 1.93M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 75.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 75.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 75.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 75.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 75.6k | } | 656 | 75.6k | _closed = true; | 657 | 75.6k | return Status::OK(); | 658 | 75.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 | 349k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 349k | if (_closed) { | 651 | 174k | return Status::OK(); | 652 | 174k | } | 653 | 174k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 174k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 174k | } | 656 | 174k | _closed = true; | 657 | 174k | return Status::OK(); | 658 | 349k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 28 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 28 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 28 | } | 656 | 28 | _closed = true; | 657 | 28 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 8.66k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 8.66k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 8.66k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.66k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.66k | } | 656 | 8.66k | _closed = true; | 657 | 8.66k | return Status::OK(); | 658 | 8.66k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 16.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 16.9k | if (_closed) { | 651 | 8.59k | return Status::OK(); | 652 | 8.59k | } | 653 | 8.38k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.38k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.38k | } | 656 | 8.38k | _closed = true; | 657 | 8.38k | return Status::OK(); | 658 | 16.9k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 88.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 88.5k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 88.5k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 88.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 88.5k | } | 656 | 88.5k | _closed = true; | 657 | 88.5k | return Status::OK(); | 658 | 88.5k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 54.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 54.3k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 54.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 54.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 54.3k | } | 656 | 54.3k | _closed = true; | 657 | 54.3k | return Status::OK(); | 658 | 54.3k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 107 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 107 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 107 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 107 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 107 | } | 656 | 107 | _closed = true; | 657 | 107 | return Status::OK(); | 658 | 107 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 707k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 707k | if (_closed) { | 651 | 15.8k | return Status::OK(); | 652 | 15.8k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 691k | _closed = true; | 657 | 691k | return Status::OK(); | 658 | 707k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 51.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 51.4k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 51.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 51.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 51.4k | } | 656 | 51.4k | _closed = true; | 657 | 51.4k | return Status::OK(); | 658 | 51.4k | } |
_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 | 4.82k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4.82k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4.82k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4.82k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4.82k | } | 656 | 4.82k | _closed = true; | 657 | 4.82k | return Status::OK(); | 658 | 4.82k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 752 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 752 | if (_closed) { | 651 | 376 | return Status::OK(); | 652 | 376 | } | 653 | 376 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 376 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 376 | } | 656 | 376 | _closed = true; | 657 | 376 | return Status::OK(); | 658 | 752 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.8k | if (_closed) { | 651 | 5.60k | return Status::OK(); | 652 | 5.60k | } | 653 | 5.23k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.23k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.23k | } | 656 | 5.23k | _closed = true; | 657 | 5.23k | return Status::OK(); | 658 | 10.8k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 567k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 567k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 567k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 567k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 567k | } | 656 | 567k | _closed = true; | 657 | 567k | return Status::OK(); | 658 | 567k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 322 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 322 | if (_closed) { | 651 | 167 | return Status::OK(); | 652 | 167 | } | 653 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 155 | } | 656 | 155 | _closed = true; | 657 | 155 | return Status::OK(); | 658 | 322 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.48M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.48M | _operator_profile = |
664 | 1.48M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.48M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.48M | _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.48M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.48M | _operator_profile->add_child(_common_profile, true); |
673 | 1.48M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.48M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.48M | _wait_for_finish_dependency_timer = |
677 | 1.48M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.48M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.48M | if constexpr (!is_fake_shared) { |
680 | 1.05M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.05M | info.shared_state_map.end()) { |
682 | 299k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 232k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 232k | } |
685 | 299k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 299k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 299k | ? 0 |
688 | 299k | : info.task_idx] |
689 | 299k | .get(); |
690 | 299k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 758k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 758k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 758k | _dependency = _shared_state->create_sink_dependency( |
697 | 758k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 758k | } |
699 | 1.05M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.05M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.05M | } |
702 | | |
703 | 1.48M | 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.48M | _rows_input_counter = |
708 | 1.48M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.48M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.48M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.48M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.48M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.48M | _memory_used_counter = |
714 | 1.48M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.48M | _common_profile->add_info_string("IsColocate", |
716 | 1.48M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.48M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.48M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.48M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.48M | return Status::OK(); |
721 | 1.48M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 123k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 123k | _operator_profile = | 664 | 123k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 123k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 123k | _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 | 123k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 123k | _operator_profile->add_child(_common_profile, true); | 673 | 123k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 123k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 123k | _wait_for_finish_dependency_timer = | 677 | 123k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 123k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 123k | if constexpr (!is_fake_shared) { | 680 | 123k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 123k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 12.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 12.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 12.4k | ? 0 | 688 | 12.4k | : info.task_idx] | 689 | 12.4k | .get(); | 690 | 12.4k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 110k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 110k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 110k | _dependency = _shared_state->create_sink_dependency( | 697 | 110k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 110k | } | 699 | 123k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 123k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 123k | } | 702 | | | 703 | 123k | 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 | 123k | _rows_input_counter = | 708 | 123k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 123k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 123k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 123k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 123k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 123k | _memory_used_counter = | 714 | 123k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 123k | _common_profile->add_info_string("IsColocate", | 716 | 123k | std::to_string(_parent->is_colocated_operator())); | 717 | 123k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 123k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 123k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 123k | return Status::OK(); | 721 | 123k | } |
_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 | 175k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 175k | _operator_profile = | 664 | 175k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 175k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 175k | _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 | 175k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 175k | _operator_profile->add_child(_common_profile, true); | 673 | 175k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 175k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 175k | _wait_for_finish_dependency_timer = | 677 | 175k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 175k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 175k | if constexpr (!is_fake_shared) { | 680 | 175k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 175k | 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 | 175k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 175k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 175k | _dependency = _shared_state->create_sink_dependency( | 697 | 175k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 175k | } | 699 | 175k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 175k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 175k | } | 702 | | | 703 | 175k | 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 | 175k | _rows_input_counter = | 708 | 175k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 175k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 175k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 175k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 175k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 175k | _memory_used_counter = | 714 | 175k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 175k | _common_profile->add_info_string("IsColocate", | 716 | 175k | std::to_string(_parent->is_colocated_operator())); | 717 | 175k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 175k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 175k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 175k | return Status::OK(); | 721 | 175k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 35 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 35 | _operator_profile = | 664 | 35 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 35 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 35 | _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 | 35 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 35 | _operator_profile->add_child(_common_profile, true); | 673 | 35 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 35 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 35 | _wait_for_finish_dependency_timer = | 677 | 35 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 35 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 35 | if constexpr (!is_fake_shared) { | 680 | 35 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 35 | 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 | 35 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 35 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 35 | _dependency = _shared_state->create_sink_dependency( | 697 | 35 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 35 | } | 699 | 35 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 35 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 35 | } | 702 | | | 703 | 35 | 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 | 35 | _rows_input_counter = | 708 | 35 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 35 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 35 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 35 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 35 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 35 | _memory_used_counter = | 714 | 35 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 35 | _common_profile->add_info_string("IsColocate", | 716 | 35 | std::to_string(_parent->is_colocated_operator())); | 717 | 35 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 35 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 35 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 35 | return Status::OK(); | 721 | 35 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.61k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.61k | _operator_profile = | 664 | 8.61k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.61k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.61k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.61k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.61k | _operator_profile->add_child(_common_profile, true); | 673 | 8.61k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.61k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.61k | _wait_for_finish_dependency_timer = | 677 | 8.61k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.61k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.61k | if constexpr (!is_fake_shared) { | 680 | 8.61k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.61k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.61k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.61k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.61k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.61k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.61k | } | 699 | 8.61k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.61k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.61k | } | 702 | | | 703 | 8.61k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.61k | _rows_input_counter = | 708 | 8.61k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.61k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.61k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.61k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.61k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.61k | _memory_used_counter = | 714 | 8.61k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.61k | _common_profile->add_info_string("IsColocate", | 716 | 8.61k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.61k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.61k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.61k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.61k | return Status::OK(); | 721 | 8.61k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.40k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.40k | _operator_profile = | 664 | 8.40k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.40k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.40k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.40k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.40k | _operator_profile->add_child(_common_profile, true); | 673 | 8.40k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.40k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.40k | _wait_for_finish_dependency_timer = | 677 | 8.40k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.40k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.40k | if constexpr (!is_fake_shared) { | 680 | 8.40k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.40k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.40k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.40k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.40k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.40k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.40k | } | 699 | 8.40k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.40k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.40k | } | 702 | | | 703 | 8.40k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.40k | _rows_input_counter = | 708 | 8.40k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.40k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.40k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.40k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.40k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.40k | _memory_used_counter = | 714 | 8.40k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.40k | _common_profile->add_info_string("IsColocate", | 716 | 8.40k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.40k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.40k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.40k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.40k | return Status::OK(); | 721 | 8.40k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 88.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 88.5k | _operator_profile = | 664 | 88.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 88.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 88.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 88.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 88.5k | _operator_profile->add_child(_common_profile, true); | 673 | 88.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 88.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 88.5k | _wait_for_finish_dependency_timer = | 677 | 88.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 88.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 88.5k | if constexpr (!is_fake_shared) { | 680 | 88.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 88.5k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 88.5k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 88.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 88.5k | _dependency = _shared_state->create_sink_dependency( | 697 | 88.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 88.5k | } | 699 | 88.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 88.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 88.5k | } | 702 | | | 703 | 88.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 88.5k | _rows_input_counter = | 708 | 88.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 88.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 88.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 88.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 88.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 88.5k | _memory_used_counter = | 714 | 88.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 88.5k | _common_profile->add_info_string("IsColocate", | 716 | 88.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 88.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 88.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 88.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 88.5k | return Status::OK(); | 721 | 88.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 54.4k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 54.4k | _operator_profile = | 664 | 54.4k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 54.4k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 54.4k | _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 | 54.4k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 54.4k | _operator_profile->add_child(_common_profile, true); | 673 | 54.4k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 54.4k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 54.4k | _wait_for_finish_dependency_timer = | 677 | 54.4k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 54.4k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 54.4k | if constexpr (!is_fake_shared) { | 680 | 54.4k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 54.5k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 54.5k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 54.5k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 54.5k | ? 0 | 688 | 54.5k | : info.task_idx] | 689 | 54.5k | .get(); | 690 | 54.5k | _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 | 54.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 54.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 54.4k | } | 702 | | | 703 | 54.4k | 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 | 54.4k | _rows_input_counter = | 708 | 54.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 54.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 54.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 54.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 54.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 54.4k | _memory_used_counter = | 714 | 54.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 54.4k | _common_profile->add_info_string("IsColocate", | 716 | 54.4k | std::to_string(_parent->is_colocated_operator())); | 717 | 54.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 54.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 54.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 54.4k | return Status::OK(); | 721 | 54.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 118 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 118 | _operator_profile = | 664 | 118 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 118 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 118 | _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 | 118 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 118 | _operator_profile->add_child(_common_profile, true); | 673 | 118 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 118 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 118 | _wait_for_finish_dependency_timer = | 677 | 118 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 118 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 118 | if constexpr (!is_fake_shared) { | 680 | 118 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 118 | 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 | 118 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 118 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 118 | _dependency = _shared_state->create_sink_dependency( | 697 | 118 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 118 | } | 699 | 118 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 118 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 118 | } | 702 | | | 703 | 118 | 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 | 118 | _rows_input_counter = | 708 | 118 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 118 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 118 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 118 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 118 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 118 | _memory_used_counter = | 714 | 118 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 118 | _common_profile->add_info_string("IsColocate", | 716 | 118 | std::to_string(_parent->is_colocated_operator())); | 717 | 118 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 118 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 118 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 118 | return Status::OK(); | 721 | 118 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 425k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 425k | _operator_profile = | 664 | 425k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 425k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 425k | _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 | 425k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 425k | _operator_profile->add_child(_common_profile, true); | 673 | 425k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 425k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 425k | _wait_for_finish_dependency_timer = | 677 | 425k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 425k | 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 | 425k | 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 | 425k | _rows_input_counter = | 708 | 425k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 425k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 425k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 425k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 425k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 425k | _memory_used_counter = | 714 | 425k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 425k | _common_profile->add_info_string("IsColocate", | 716 | 425k | std::to_string(_parent->is_colocated_operator())); | 717 | 425k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 425k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 425k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 425k | return Status::OK(); | 721 | 425k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 5.62k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 5.62k | _operator_profile = | 664 | 5.62k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 5.62k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 5.62k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 5.62k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 5.62k | _operator_profile->add_child(_common_profile, true); | 673 | 5.62k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 5.62k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 5.62k | _wait_for_finish_dependency_timer = | 677 | 5.62k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 5.62k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 5.62k | if constexpr (!is_fake_shared) { | 680 | 5.62k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 5.62k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 5.62k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 5.62k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 5.62k | _dependency = _shared_state->create_sink_dependency( | 697 | 5.62k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 5.62k | } | 699 | 5.62k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 5.62k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 5.62k | } | 702 | | | 703 | 5.62k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 5.62k | _rows_input_counter = | 708 | 5.62k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 5.62k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 5.62k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 5.62k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 5.62k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 5.62k | _memory_used_counter = | 714 | 5.62k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 5.62k | _common_profile->add_info_string("IsColocate", | 716 | 5.62k | std::to_string(_parent->is_colocated_operator())); | 717 | 5.62k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 5.62k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 5.62k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 5.62k | return Status::OK(); | 721 | 5.62k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 478 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 478 | _operator_profile = | 664 | 478 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 478 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 478 | _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 | 478 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 478 | _operator_profile->add_child(_common_profile, true); | 673 | 478 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 478 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 478 | _wait_for_finish_dependency_timer = | 677 | 478 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 478 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 478 | if constexpr (!is_fake_shared) { | 680 | 478 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 478 | 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 | 478 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 478 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 478 | _dependency = _shared_state->create_sink_dependency( | 697 | 478 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 478 | } | 699 | 478 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 478 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 478 | } | 702 | | | 703 | 478 | 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 | 478 | _rows_input_counter = | 708 | 478 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 478 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 478 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 478 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 478 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 478 | _memory_used_counter = | 714 | 478 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 478 | _common_profile->add_info_string("IsColocate", | 716 | 478 | std::to_string(_parent->is_colocated_operator())); | 717 | 478 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 478 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 478 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 478 | return Status::OK(); | 721 | 478 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 1.96k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 1.96k | _operator_profile = | 664 | 1.96k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 1.96k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 1.96k | _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.96k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 1.96k | _operator_profile->add_child(_common_profile, true); | 673 | 1.96k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 1.96k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 1.96k | _wait_for_finish_dependency_timer = | 677 | 1.96k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 1.96k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 1.96k | if constexpr (!is_fake_shared) { | 680 | 1.96k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 1.96k | 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 | 1.96k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 1.96k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 1.96k | _dependency = _shared_state->create_sink_dependency( | 697 | 1.96k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 1.96k | } | 699 | 1.96k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 1.96k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 1.96k | } | 702 | | | 703 | 1.96k | 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.96k | _rows_input_counter = | 708 | 1.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 1.96k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 1.96k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 1.96k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 1.96k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 1.96k | _memory_used_counter = | 714 | 1.96k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 1.96k | _common_profile->add_info_string("IsColocate", | 716 | 1.96k | std::to_string(_parent->is_colocated_operator())); | 717 | 1.96k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 1.96k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 1.96k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 1.96k | return Status::OK(); | 721 | 1.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.5k | _operator_profile = | 664 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.5k | _operator_profile->add_child(_common_profile, true); | 673 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.5k | _wait_for_finish_dependency_timer = | 677 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.5k | if constexpr (!is_fake_shared) { | 680 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.5k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.5k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.5k | } | 699 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.5k | } | 702 | | | 703 | 12.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.5k | _rows_input_counter = | 708 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.5k | _memory_used_counter = | 714 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.5k | _common_profile->add_info_string("IsColocate", | 716 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.5k | return Status::OK(); | 721 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 232k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 232k | _operator_profile = | 664 | 232k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 232k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 232k | _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 | 232k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 232k | _operator_profile->add_child(_common_profile, true); | 673 | 232k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 232k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 232k | _wait_for_finish_dependency_timer = | 677 | 232k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 232k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 232k | if constexpr (!is_fake_shared) { | 680 | 232k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 232k | info.shared_state_map.end()) { | 682 | 232k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 232k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 232k | } | 685 | 232k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 232k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 232k | ? 0 | 688 | 232k | : info.task_idx] | 689 | 232k | .get(); | 690 | 232k | _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 | 232k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 232k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 232k | } | 702 | | | 703 | 232k | 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 | 232k | _rows_input_counter = | 708 | 232k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 232k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 232k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 232k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 232k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 232k | _memory_used_counter = | 714 | 232k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 232k | _common_profile->add_info_string("IsColocate", | 716 | 232k | std::to_string(_parent->is_colocated_operator())); | 717 | 232k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 232k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 232k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 232k | return Status::OK(); | 721 | 232k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 346k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 346k | _operator_profile = | 664 | 346k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 346k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 346k | _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 | 346k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 346k | _operator_profile->add_child(_common_profile, true); | 673 | 346k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 346k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 346k | _wait_for_finish_dependency_timer = | 677 | 346k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 346k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 346k | if constexpr (!is_fake_shared) { | 680 | 346k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 346k | 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 | 346k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 346k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 346k | _dependency = _shared_state->create_sink_dependency( | 697 | 346k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 346k | } | 699 | 346k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 346k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 346k | } | 702 | | | 703 | 346k | 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 | 346k | _rows_input_counter = | 708 | 346k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 346k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 346k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 346k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 346k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 346k | _memory_used_counter = | 714 | 346k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 346k | _common_profile->add_info_string("IsColocate", | 716 | 346k | std::to_string(_parent->is_colocated_operator())); | 717 | 346k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 346k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 346k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 346k | return Status::OK(); | 721 | 346k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 25 | _operator_profile = | 664 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 25 | _operator_profile->add_child(_common_profile, true); | 673 | 25 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 25 | _wait_for_finish_dependency_timer = | 677 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 25 | if constexpr (!is_fake_shared) { | 680 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 25 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 25 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 25 | _dependency = _shared_state->create_sink_dependency( | 697 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 25 | } | 699 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 25 | } | 702 | | | 703 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 25 | _rows_input_counter = | 708 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 25 | _memory_used_counter = | 714 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 25 | _common_profile->add_info_string("IsColocate", | 716 | 25 | std::to_string(_parent->is_colocated_operator())); | 717 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 25 | return Status::OK(); | 721 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 328 | _operator_profile = | 664 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 328 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 328 | _operator_profile->add_child(_common_profile, true); | 673 | 328 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 328 | _wait_for_finish_dependency_timer = | 677 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 328 | if constexpr (!is_fake_shared) { | 680 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 328 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 328 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 328 | _dependency = _shared_state->create_sink_dependency( | 697 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 328 | } | 699 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 328 | } | 702 | | | 703 | 328 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 328 | _rows_input_counter = | 708 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 328 | _memory_used_counter = | 714 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 328 | _common_profile->add_info_string("IsColocate", | 716 | 328 | std::to_string(_parent->is_colocated_operator())); | 717 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 328 | return Status::OK(); | 721 | 328 | } |
|
722 | | |
723 | | template <typename SharedState> |
724 | 1.48M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.48M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.48M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.06M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.06M | } |
731 | 1.48M | _closed = true; |
732 | 1.48M | return Status::OK(); |
733 | 1.48M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 123k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 123k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 123k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 123k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 123k | } | 731 | 123k | _closed = true; | 732 | 123k | return Status::OK(); | 733 | 123k | } |
_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 | 175k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 175k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 175k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 175k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 175k | } | 731 | 175k | _closed = true; | 732 | 175k | return Status::OK(); | 733 | 175k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 26 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 26 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 24 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 24 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 24 | } | 731 | 24 | _closed = true; | 732 | 24 | return Status::OK(); | 733 | 26 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.54k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.54k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.54k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.54k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.54k | } | 731 | 8.54k | _closed = true; | 732 | 8.54k | return Status::OK(); | 733 | 8.54k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.37k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.37k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.37k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.37k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.37k | } | 731 | 8.37k | _closed = true; | 732 | 8.37k | return Status::OK(); | 733 | 8.37k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 88.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 88.4k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 88.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 88.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 88.4k | } | 731 | 88.4k | _closed = true; | 732 | 88.4k | return Status::OK(); | 733 | 88.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 54.3k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 54.3k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 54.3k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 54.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 54.3k | } | 731 | 54.3k | _closed = true; | 732 | 54.3k | return Status::OK(); | 733 | 54.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 107 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 107 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 107 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 107 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 107 | } | 731 | 107 | _closed = true; | 732 | 107 | return Status::OK(); | 733 | 107 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 428k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 428k | 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 | 428k | _closed = true; | 732 | 428k | return Status::OK(); | 733 | 428k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 5.64k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 5.64k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 5.64k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 5.64k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 5.64k | } | 731 | 5.64k | _closed = true; | 732 | 5.64k | return Status::OK(); | 733 | 5.64k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 374 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 374 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 374 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 374 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 374 | } | 731 | 374 | _closed = true; | 732 | 374 | return Status::OK(); | 733 | 374 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1.98k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1.98k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1.98k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1.98k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1.98k | } | 731 | 1.98k | _closed = true; | 732 | 1.98k | return Status::OK(); | 733 | 1.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.6k | } | 731 | 12.6k | _closed = true; | 732 | 12.6k | return Status::OK(); | 733 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 233k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 233k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 233k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 233k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 233k | } | 731 | 233k | _closed = true; | 732 | 233k | return Status::OK(); | 733 | 233k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 347k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 347k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 347k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 347k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 347k | } | 731 | 347k | _closed = true; | 732 | 347k | return Status::OK(); | 733 | 347k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 14 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 14 | } | 731 | 14 | _closed = true; | 732 | 14 | return Status::OK(); | 733 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 328 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 328 | } | 731 | 328 | _closed = true; | 732 | 328 | return Status::OK(); | 733 | 328 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 7.27k | bool* eos) { |
738 | 7.27k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 7.27k | return pull(state, block, eos); |
740 | 7.27k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 38 | bool* eos) { | 738 | 38 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 38 | return pull(state, block, eos); | 740 | 38 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 7.23k | bool* eos) { | 738 | 7.23k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 7.23k | return pull(state, block, eos); | 740 | 7.23k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 458k | bool* eos) { |
745 | 458k | auto& local_state = get_local_state(state); |
746 | 458k | if (need_more_input_data(state)) { |
747 | 424k | local_state._child_block->clear_column_data( |
748 | 424k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 424k | .num_materialized_slots()); |
750 | 424k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 424k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 424k | *eos = local_state._child_eos; |
753 | 424k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 71.9k | return Status::OK(); |
755 | 71.9k | } |
756 | 353k | { |
757 | 353k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 353k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 353k | } |
760 | 353k | } |
761 | | |
762 | 386k | if (!need_more_input_data(state)) { |
763 | 362k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 362k | bool new_eos = false; |
765 | 362k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 362k | if (new_eos) { |
767 | 285k | *eos = true; |
768 | 285k | } else if (!need_more_input_data(state)) { |
769 | 23.5k | *eos = false; |
770 | 23.5k | } |
771 | 362k | } |
772 | 386k | return Status::OK(); |
773 | 386k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 139k | bool* eos) { | 745 | 139k | auto& local_state = get_local_state(state); | 746 | 139k | if (need_more_input_data(state)) { | 747 | 118k | local_state._child_block->clear_column_data( | 748 | 118k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 118k | .num_materialized_slots()); | 750 | 118k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 118k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 118k | *eos = local_state._child_eos; | 753 | 118k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 30.4k | return Status::OK(); | 755 | 30.4k | } | 756 | 88.2k | { | 757 | 88.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 88.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 88.2k | } | 760 | 88.2k | } | 761 | | | 762 | 109k | if (!need_more_input_data(state)) { | 763 | 109k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 109k | bool new_eos = false; | 765 | 109k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 109k | if (new_eos) { | 767 | 51.3k | *eos = true; | 768 | 57.7k | } else if (!need_more_input_data(state)) { | 769 | 10.7k | *eos = false; | 770 | 10.7k | } | 771 | 109k | } | 772 | 109k | return Status::OK(); | 773 | 109k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 3.94k | bool* eos) { | 745 | 3.94k | auto& local_state = get_local_state(state); | 746 | 3.94k | if (need_more_input_data(state)) { | 747 | 2.15k | local_state._child_block->clear_column_data( | 748 | 2.15k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.15k | .num_materialized_slots()); | 750 | 2.15k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.15k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.15k | *eos = local_state._child_eos; | 753 | 2.15k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 306 | return Status::OK(); | 755 | 306 | } | 756 | 1.84k | { | 757 | 1.84k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.84k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.84k | } | 760 | 1.84k | } | 761 | | | 762 | 3.66k | if (!need_more_input_data(state)) { | 763 | 3.66k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.66k | bool new_eos = false; | 765 | 3.66k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.66k | if (new_eos) { | 767 | 1.33k | *eos = true; | 768 | 2.32k | } else if (!need_more_input_data(state)) { | 769 | 1.79k | *eos = false; | 770 | 1.79k | } | 771 | 3.66k | } | 772 | 3.64k | return Status::OK(); | 773 | 3.64k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.83k | bool* eos) { | 745 | 1.83k | auto& local_state = get_local_state(state); | 746 | 1.83k | if (need_more_input_data(state)) { | 747 | 1.83k | local_state._child_block->clear_column_data( | 748 | 1.83k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.83k | .num_materialized_slots()); | 750 | 1.83k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.83k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.83k | *eos = local_state._child_eos; | 753 | 1.83k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 762 | return Status::OK(); | 755 | 762 | } | 756 | 1.07k | { | 757 | 1.07k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.07k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.07k | } | 760 | 1.07k | } | 761 | | | 762 | 1.07k | if (!need_more_input_data(state)) { | 763 | 1.07k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.07k | bool new_eos = false; | 765 | 1.07k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.07k | if (new_eos) { | 767 | 781 | *eos = true; | 768 | 781 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.07k | } | 772 | 1.07k | return Status::OK(); | 773 | 1.07k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 10.5k | bool* eos) { | 745 | 10.5k | auto& local_state = get_local_state(state); | 746 | 10.5k | if (need_more_input_data(state)) { | 747 | 10.5k | local_state._child_block->clear_column_data( | 748 | 10.5k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 10.5k | .num_materialized_slots()); | 750 | 10.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 10.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 10.5k | *eos = local_state._child_eos; | 753 | 10.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 2.45k | return Status::OK(); | 755 | 2.45k | } | 756 | 8.06k | { | 757 | 8.06k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 8.06k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 8.06k | } | 760 | 8.06k | } | 761 | | | 762 | 8.05k | if (!need_more_input_data(state)) { | 763 | 4.51k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 4.51k | bool new_eos = false; | 765 | 4.51k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 4.51k | if (new_eos) { | 767 | 4.44k | *eos = true; | 768 | 4.44k | } else if (!need_more_input_data(state)) { | 769 | 6 | *eos = false; | 770 | 6 | } | 771 | 4.51k | } | 772 | 8.05k | return Status::OK(); | 773 | 8.05k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 270k | bool* eos) { | 745 | 270k | auto& local_state = get_local_state(state); | 746 | 270k | if (need_more_input_data(state)) { | 747 | 270k | local_state._child_block->clear_column_data( | 748 | 270k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 270k | .num_materialized_slots()); | 750 | 270k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 270k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 270k | *eos = local_state._child_eos; | 753 | 270k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 36.0k | return Status::OK(); | 755 | 36.0k | } | 756 | 234k | { | 757 | 234k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 234k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 234k | } | 760 | 234k | } | 761 | | | 762 | 234k | if (!need_more_input_data(state)) { | 763 | 214k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 214k | bool new_eos = false; | 765 | 214k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 214k | if (new_eos) { | 767 | 214k | *eos = true; | 768 | 214k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 214k | } | 772 | 234k | return Status::OK(); | 773 | 234k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 24.4k | bool* eos) { | 745 | 24.4k | auto& local_state = get_local_state(state); | 746 | 24.4k | if (need_more_input_data(state)) { | 747 | 13.7k | local_state._child_block->clear_column_data( | 748 | 13.7k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 13.7k | .num_materialized_slots()); | 750 | 13.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 13.7k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 13.7k | *eos = local_state._child_eos; | 753 | 13.7k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 797 | return Status::OK(); | 755 | 797 | } | 756 | 12.9k | { | 757 | 12.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 12.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 12.9k | } | 760 | 12.9k | } | 761 | | | 762 | 23.6k | if (!need_more_input_data(state)) { | 763 | 23.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 23.0k | bool new_eos = false; | 765 | 23.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 23.0k | if (new_eos) { | 767 | 8.61k | *eos = true; | 768 | 14.4k | } else if (!need_more_input_data(state)) { | 769 | 10.6k | *eos = false; | 770 | 10.6k | } | 771 | 23.0k | } | 772 | 23.6k | return Status::OK(); | 773 | 23.6k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 7.76k | bool* eos) { | 745 | 7.76k | auto& local_state = get_local_state(state); | 746 | 7.76k | if (need_more_input_data(state)) { | 747 | 7.40k | local_state._child_block->clear_column_data( | 748 | 7.40k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.40k | .num_materialized_slots()); | 750 | 7.40k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.40k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.40k | *eos = local_state._child_eos; | 753 | 7.40k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 1.16k | return Status::OK(); | 755 | 1.16k | } | 756 | 6.24k | { | 757 | 6.24k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.24k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.24k | } | 760 | 6.24k | } | 761 | | | 762 | 6.59k | if (!need_more_input_data(state)) { | 763 | 6.59k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.59k | bool new_eos = false; | 765 | 6.59k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.59k | if (new_eos) { | 767 | 4.46k | *eos = true; | 768 | 4.46k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 6.59k | } | 772 | 6.59k | return Status::OK(); | 773 | 6.59k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 43.5k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 43.5k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 43.5k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 43.5k | "AsyncWriterDependency", true); |
781 | 43.5k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 43.5k | _finish_dependency)); |
783 | | |
784 | 43.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 43.5k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 43.5k | return Status::OK(); |
787 | 43.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 351 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 351 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 351 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 351 | "AsyncWriterDependency", true); | 781 | 351 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 351 | _finish_dependency)); | 783 | | | 784 | 351 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 351 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 351 | return Status::OK(); | 787 | 351 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 43.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 43.1k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 43.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 43.1k | "AsyncWriterDependency", true); | 781 | 43.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 43.1k | _finish_dependency)); | 783 | | | 784 | 43.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 43.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 43.1k | return Status::OK(); | 787 | 43.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 20 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 20 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 20 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 20 | "AsyncWriterDependency", true); | 781 | 20 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 20 | _finish_dependency)); | 783 | | | 784 | 20 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 20 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 20 | return Status::OK(); | 787 | 20 | } |
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 | 44.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 44.0k | RETURN_IF_ERROR(Base::open(state)); |
793 | 44.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 339k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 295k | RETURN_IF_ERROR( |
796 | 295k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 295k | } |
798 | 44.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 44.0k | return Status::OK(); |
800 | 44.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 351 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 351 | RETURN_IF_ERROR(Base::open(state)); | 793 | 351 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.83k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.48k | RETURN_IF_ERROR( | 796 | 1.48k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.48k | } | 798 | 351 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 351 | return Status::OK(); | 800 | 351 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 43.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 43.6k | RETURN_IF_ERROR(Base::open(state)); | 793 | 43.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 337k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 294k | RETURN_IF_ERROR( | 796 | 294k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 294k | } | 798 | 43.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 43.6k | return Status::OK(); | 800 | 43.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 20 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 20 | RETURN_IF_ERROR(Base::open(state)); | 793 | 20 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 360 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 340 | RETURN_IF_ERROR( | 796 | 340 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 340 | } | 798 | 20 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 20 | return Status::OK(); | 800 | 20 | } |
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 | 59.1k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 59.1k | return _writer->sink(block, eos); |
806 | 59.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.67k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.67k | return _writer->sink(block, eos); | 806 | 1.67k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 57.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 57.4k | return _writer->sink(block, eos); | 806 | 57.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 20 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 20 | return _writer->sink(block, eos); | 806 | 20 | } |
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 | 44.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 44.1k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 44.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 44.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 | 44.1k | if (_writer) { |
818 | 44.1k | Status st = _writer->get_writer_status(); |
819 | 44.1k | if (exec_status.ok()) { |
820 | 44.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 44.0k | : Status::Cancelled("force close")); |
822 | 44.0k | } else { |
823 | 61 | _writer->force_close(exec_status); |
824 | 61 | } |
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 | 44.1k | RETURN_IF_ERROR(st); |
829 | 44.1k | } |
830 | 44.0k | return Base::close(state, exec_status); |
831 | 44.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 339 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 339 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 339 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 339 | 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 | 339 | if (_writer) { | 818 | 339 | Status st = _writer->get_writer_status(); | 819 | 339 | if (exec_status.ok()) { | 820 | 339 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 339 | : Status::Cancelled("force close")); | 822 | 339 | } 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 | 339 | RETURN_IF_ERROR(st); | 829 | 339 | } | 830 | 339 | return Base::close(state, exec_status); | 831 | 339 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 43.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 43.7k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 43.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 43.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 | 43.8k | if (_writer) { | 818 | 43.8k | Status st = _writer->get_writer_status(); | 819 | 43.8k | if (exec_status.ok()) { | 820 | 43.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 43.7k | : Status::Cancelled("force close")); | 822 | 43.7k | } else { | 823 | 61 | _writer->force_close(exec_status); | 824 | 61 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 43.8k | RETURN_IF_ERROR(st); | 829 | 43.8k | } | 830 | 43.7k | return Base::close(state, exec_status); | 831 | 43.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 20 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 20 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 20 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 20 | 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 | 20 | if (_writer) { | 818 | 20 | Status st = _writer->get_writer_status(); | 819 | 20 | if (exec_status.ok()) { | 820 | 20 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 20 | : Status::Cancelled("force close")); | 822 | 20 | } 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 | 20 | RETURN_IF_ERROR(st); | 829 | 20 | } | 830 | 20 | return Base::close(state, exec_status); | 831 | 20 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
832 | | |
833 | | // An instantiation added outside the macros below needs the matching |
834 | | // 'extern template' declaration in the operator's header (enforced by |
835 | | // build-support/check-extern-template-pairing.py). Instantiations expanded |
836 | | // through DECLARE_OPERATOR are invisible to that check -- macro bodies are |
837 | | // skipped -- so their extern pairing has to be kept in sync by hand. |
838 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
839 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
840 | | DECLARE_OPERATOR(ResultSinkLocalState) |
841 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
842 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
843 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
844 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
845 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
846 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
847 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
848 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
849 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
850 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
852 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
853 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
854 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
855 | | DECLARE_OPERATOR(SortSinkLocalState) |
856 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
857 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
858 | | DECLARE_OPERATOR(AggSinkLocalState) |
859 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
860 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
862 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
863 | | DECLARE_OPERATOR(UnionSinkLocalState) |
864 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
865 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
866 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
868 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
870 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
871 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
872 | | DECLARE_OPERATOR(CacheSinkLocalState) |
873 | | DECLARE_OPERATOR(DictSinkLocalState) |
874 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
876 | | |
877 | | #undef DECLARE_OPERATOR |
878 | | |
879 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
880 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
881 | | DECLARE_OPERATOR(OlapScanLocalState) |
882 | | DECLARE_OPERATOR(GroupCommitLocalState) |
883 | | DECLARE_OPERATOR(JDBCScanLocalState) |
884 | | DECLARE_OPERATOR(FileScanLocalState) |
885 | | DECLARE_OPERATOR(AnalyticLocalState) |
886 | | DECLARE_OPERATOR(SortLocalState) |
887 | | DECLARE_OPERATOR(SpillSortLocalState) |
888 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
889 | | DECLARE_OPERATOR(AggLocalState) |
890 | | DECLARE_OPERATOR(BucketedAggLocalState) |
891 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
892 | | DECLARE_OPERATOR(TableFunctionLocalState) |
893 | | DECLARE_OPERATOR(ExchangeLocalState) |
894 | | DECLARE_OPERATOR(RepeatLocalState) |
895 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
896 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
897 | | DECLARE_OPERATOR(EmptySetLocalState) |
898 | | DECLARE_OPERATOR(UnionSourceLocalState) |
899 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
900 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
901 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
903 | | DECLARE_OPERATOR(DataGenLocalState) |
904 | | DECLARE_OPERATOR(SchemaScanLocalState) |
905 | | DECLARE_OPERATOR(MetaScanLocalState) |
906 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
907 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
908 | | DECLARE_OPERATOR(CacheSourceLocalState) |
909 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
911 | | |
912 | | #ifdef BE_TEST |
913 | | DECLARE_OPERATOR(MockLocalState) |
914 | | DECLARE_OPERATOR(MockScanLocalState) |
915 | | #endif |
916 | | #undef DECLARE_OPERATOR |
917 | | |
918 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
919 | | template class StreamingOperatorX<SelectLocalState>; |
920 | | |
921 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
922 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<RepeatLocalState>; |
924 | | template class StatefulOperatorX<MaterializationLocalState>; |
925 | | template class StatefulOperatorX<StreamingAggLocalState>; |
926 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
927 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
928 | | template class StatefulOperatorX<TableFunctionLocalState>; |
929 | | |
930 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
931 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<SortSharedState>; |
933 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
934 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
935 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
936 | | template class PipelineXSinkLocalState<AggSharedState>; |
937 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
938 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<FakeSharedState>; |
940 | | template class PipelineXSinkLocalState<UnionSharedState>; |
941 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
942 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
943 | | template class PipelineXSinkLocalState<SetSharedState>; |
944 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
945 | | template class PipelineXSinkLocalState<BasicSharedState>; |
946 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
947 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
948 | | |
949 | | template class PipelineXLocalState<HashJoinSharedState>; |
950 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
951 | | template class PipelineXLocalState<SortSharedState>; |
952 | | template class PipelineXLocalState<SpillSortSharedState>; |
953 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
954 | | template class PipelineXLocalState<AnalyticSharedState>; |
955 | | template class PipelineXLocalState<AggSharedState>; |
956 | | template class PipelineXLocalState<BucketedAggSharedState>; |
957 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
958 | | template class PipelineXLocalState<FakeSharedState>; |
959 | | template class PipelineXLocalState<UnionSharedState>; |
960 | | template class PipelineXLocalState<DataQueueSharedState>; |
961 | | template class PipelineXLocalState<MultiCastSharedState>; |
962 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
963 | | template class PipelineXLocalState<SetSharedState>; |
964 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
965 | | template class PipelineXLocalState<BasicSharedState>; |
966 | | template class PipelineXLocalState<RecCTESharedState>; |
967 | | |
968 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
969 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
972 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
973 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
979 | | |
980 | | #ifdef BE_TEST |
981 | | template class OperatorX<DummyOperatorLocalState>; |
982 | | template class DataSinkOperatorX<DummySinkLocalState>; |
983 | | #endif |
984 | | |
985 | | } // namespace doris |