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 | 2.30M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 2.30M | if (_parent->nereids_id() == -1) { |
122 | 1.24M | return fmt::format("(id={})", _parent->node_id()); |
123 | 1.24M | } else { |
124 | 1.06M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 1.06M | } |
126 | 2.30M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 70.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 70.8k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 70.8k | } else { | 124 | 70.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 70.8k | } | 126 | 70.8k | } |
_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 | 266k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 266k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 266k | } else { | 124 | 266k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 266k | } | 126 | 266k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 24 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 24 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 24 | } else { | 124 | 24 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 24 | } | 126 | 24 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 10.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 10.2k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 10.2k | } else { | 124 | 10.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 10.2k | } | 126 | 10.2k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 10.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 10.0k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 10.0k | } else { | 124 | 10.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 10.0k | } | 126 | 10.0k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 156k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 156k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 156k | } else { | 124 | 156k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 156k | } | 126 | 156k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 546 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 546 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 546 | } else { | 124 | 546 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 546 | } | 126 | 546 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 103 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 103 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 103 | } else { | 124 | 103 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 103 | } | 126 | 103 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 896k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 896k | if (_parent->nereids_id() == -1) { | 122 | 406k | return fmt::format("(id={})", _parent->node_id()); | 123 | 489k | } else { | 124 | 489k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 489k | } | 126 | 896k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 55.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 55.5k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 55.5k | } else { | 124 | 55.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 55.5k | } | 126 | 55.5k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 17 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 17 | if (_parent->nereids_id() == -1) { | 122 | 17 | return fmt::format("(id={})", _parent->node_id()); | 123 | 17 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 17 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 11.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 11.1k | if (_parent->nereids_id() == -1) { | 122 | 11.1k | return fmt::format("(id={})", _parent->node_id()); | 123 | 11.1k | } else { | 124 | 3 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 3 | } | 126 | 11.1k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 534 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 534 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 432 | } else { | 124 | 432 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 432 | } | 126 | 534 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.25k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.25k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.23k | } else { | 124 | 5.23k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.23k | } | 126 | 5.25k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 823k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 823k | if (_parent->nereids_id() == -1) { | 122 | 822k | return fmt::format("(id={})", _parent->node_id()); | 123 | 822k | } else { | 124 | 1.00k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 1.00k | } | 126 | 823k | } |
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.45M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.45M | if (_parent->nereids_id() == -1) { |
131 | 876k | return fmt::format("(id={})", _parent->node_id()); |
132 | 876k | } else { |
133 | 574k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 574k | } |
135 | 1.45M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 119k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 119k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 119k | } else { | 133 | 119k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 119k | } | 135 | 119k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 268k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 268k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 268k | } else { | 133 | 268k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 268k | } | 135 | 268k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 31 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 31 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 31 | } else { | 133 | 31 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 31 | } | 135 | 31 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 10.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 10.3k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 10.3k | } else { | 133 | 10.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 10.3k | } | 135 | 10.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 10.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 10.3k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 10.2k | } else { | 133 | 10.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 10.2k | } | 135 | 10.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 156k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 156k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 156k | } else { | 133 | 156k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 156k | } | 135 | 156k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 545 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 545 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 545 | } else { | 133 | 545 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 545 | } | 135 | 545 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 113 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 113 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 113 | } else { | 133 | 113 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 113 | } | 135 | 113 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 131 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 131 | if (_parent->nereids_id() == -1) { | 131 | 131 | return fmt::format("(id={})", _parent->node_id()); | 132 | 131 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 131 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 5.88k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 5.88k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 5.88k | } else { | 133 | 5.88k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 5.88k | } | 135 | 5.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 537 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 537 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 435 | } else { | 133 | 435 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 435 | } | 135 | 537 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.8k | if (_parent->nereids_id() == -1) { | 131 | 12.8k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 347k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 347k | if (_parent->nereids_id() == -1) { | 131 | 347k | 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 | 347k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 517k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 517k | if (_parent->nereids_id() == -1) { | 131 | 516k | return fmt::format("(id={})", _parent->node_id()); | 132 | 516k | } else { | 133 | 1.24k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1.24k | } | 135 | 517k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 17 | if (_parent->nereids_id() == -1) { | 131 | 17 | return fmt::format("(id={})", _parent->node_id()); | 132 | 17 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 17 | } |
_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 | 29.3k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 29.3k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 29.3k | _terminated = true; |
143 | 29.3k | return Status::OK(); |
144 | 29.3k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 686 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 686 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 686 | _terminated = true; | 143 | 686 | return Status::OK(); | 144 | 686 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3 | _terminated = true; | 143 | 3 | return Status::OK(); | 144 | 3 | } |
_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.55k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.55k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.55k | _terminated = true; | 143 | 2.55k | return Status::OK(); | 144 | 2.55k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.03k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.03k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.03k | _terminated = true; | 143 | 1.03k | return Status::OK(); | 144 | 1.03k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_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_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 | 768 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 768 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 768 | _terminated = true; | 143 | 768 | return Status::OK(); | 144 | 768 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 152 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 152 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 152 | _terminated = true; | 143 | 152 | return Status::OK(); | 144 | 152 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 139 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 139 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 139 | _terminated = true; | 143 | 139 | return Status::OK(); | 144 | 139 | } |
|
145 | | |
146 | 415k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 415k | return _child && _child->is_serial_operator() && !is_source() |
148 | 415k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 415k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 415k | } |
151 | | |
152 | 26.8k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 26.8k | if (!_child) { |
154 | 21.4k | return false; |
155 | 21.4k | } |
156 | 5.38k | if (_child->is_serial_operator()) { |
157 | 139 | return true; |
158 | 139 | } |
159 | 5.24k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 5.24k | return child_distribution.need_local_exchange() && |
161 | 5.24k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 5.38k | } |
163 | | |
164 | 82.7k | const RowDescriptor& OperatorBase::row_desc() const { |
165 | 82.7k | return _child->row_desc(); |
166 | 82.7k | } |
167 | | |
168 | | template <typename SharedStateArg> |
169 | 21.1k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
170 | 21.1k | fmt::memory_buffer debug_string_buffer; |
171 | 21.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
172 | 21.1k | return fmt::to_string(debug_string_buffer); |
173 | 21.1k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 230 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 230 | fmt::memory_buffer debug_string_buffer; | 171 | 230 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 230 | return fmt::to_string(debug_string_buffer); | 173 | 230 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 3 | fmt::memory_buffer debug_string_buffer; | 171 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 3 | return fmt::to_string(debug_string_buffer); | 173 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 59 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 59 | fmt::memory_buffer debug_string_buffer; | 171 | 59 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 59 | return fmt::to_string(debug_string_buffer); | 173 | 59 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 6 | fmt::memory_buffer debug_string_buffer; | 171 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 6 | return fmt::to_string(debug_string_buffer); | 173 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 81 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 81 | fmt::memory_buffer debug_string_buffer; | 171 | 81 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 81 | return fmt::to_string(debug_string_buffer); | 173 | 81 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 20.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 20.4k | fmt::memory_buffer debug_string_buffer; | 171 | 20.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 20.4k | return fmt::to_string(debug_string_buffer); | 173 | 20.4k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 1 | fmt::memory_buffer debug_string_buffer; | 171 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 1 | return fmt::to_string(debug_string_buffer); | 173 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 272 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 272 | fmt::memory_buffer debug_string_buffer; | 171 | 272 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 272 | return fmt::to_string(debug_string_buffer); | 173 | 272 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
174 | | |
175 | | template <typename SharedStateArg> |
176 | 20.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
177 | 20.8k | fmt::memory_buffer debug_string_buffer; |
178 | 20.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
179 | 20.8k | return fmt::to_string(debug_string_buffer); |
180 | 20.8k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 34 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 34 | fmt::memory_buffer debug_string_buffer; | 178 | 34 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 34 | return fmt::to_string(debug_string_buffer); | 180 | 34 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 59 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 59 | fmt::memory_buffer debug_string_buffer; | 178 | 59 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 59 | return fmt::to_string(debug_string_buffer); | 180 | 59 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 81 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 81 | fmt::memory_buffer debug_string_buffer; | 178 | 81 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 81 | return fmt::to_string(debug_string_buffer); | 180 | 81 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 218 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 218 | fmt::memory_buffer debug_string_buffer; | 178 | 218 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 218 | return fmt::to_string(debug_string_buffer); | 180 | 218 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 164 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 164 | fmt::memory_buffer debug_string_buffer; | 178 | 164 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 164 | return fmt::to_string(debug_string_buffer); | 180 | 164 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 20.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 20.2k | fmt::memory_buffer debug_string_buffer; | 178 | 20.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 20.2k | return fmt::to_string(debug_string_buffer); | 180 | 20.2k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
181 | | |
182 | 21.1k | std::string OperatorXBase::debug_string(int indentation_level) const { |
183 | 21.1k | fmt::memory_buffer debug_string_buffer; |
184 | 21.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
185 | 21.1k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
186 | 21.1k | _is_serial_operator); |
187 | 21.1k | return fmt::to_string(debug_string_buffer); |
188 | 21.1k | } |
189 | | |
190 | 21.1k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
191 | 21.1k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
192 | 21.1k | } |
193 | | |
194 | 826k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
195 | 826k | std::string node_name = print_plan_node_type(tnode.node_type); |
196 | 826k | _nereids_id = tnode.nereids_id; |
197 | 826k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
198 | 4.16k | if (!tnode.__isset.output_tuple_id) { |
199 | 0 | return Status::InternalError("no final output tuple id"); |
200 | 0 | } |
201 | 4.16k | if (tnode.intermediate_output_tuple_id_list.size() != |
202 | 4.16k | tnode.intermediate_projections_list.size()) { |
203 | 0 | return Status::InternalError( |
204 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
205 | 0 | "intermediate_projections_list size:{}", |
206 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
207 | 0 | tnode.intermediate_projections_list.size()); |
208 | 0 | } |
209 | 4.16k | } |
210 | 826k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
211 | 826k | _op_name = substr + "_OPERATOR"; |
212 | | |
213 | 826k | if (tnode.__isset.vconjunct) { |
214 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
215 | 826k | } else if (tnode.__isset.conjuncts) { |
216 | 451k | for (const auto& conjunct : tnode.conjuncts) { |
217 | 451k | VExprContextSPtr context; |
218 | 451k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
219 | 451k | _conjuncts.emplace_back(context); |
220 | 451k | } |
221 | 148k | } |
222 | | |
223 | | // create the projections expr |
224 | 826k | if (tnode.__isset.projections) { |
225 | 324k | DCHECK(tnode.__isset.output_tuple_id); |
226 | 324k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
227 | 324k | } |
228 | 826k | if (!tnode.intermediate_projections_list.empty()) { |
229 | 4.16k | DCHECK(tnode.__isset.projections) << "no final projections"; |
230 | 4.16k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
231 | 8.75k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
232 | 8.75k | VExprContextSPtrs projections; |
233 | 8.75k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
234 | 8.75k | _intermediate_projections.push_back(projections); |
235 | 8.75k | } |
236 | 4.16k | } |
237 | 826k | return Status::OK(); |
238 | 826k | } |
239 | | |
240 | 860k | Status OperatorXBase::prepare(RuntimeState* state) { |
241 | 860k | for (auto& conjunct : _conjuncts) { |
242 | 451k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
243 | 451k | } |
244 | 860k | if (state->enable_adjust_conjunct_order_by_cost()) { |
245 | 807k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
246 | 594k | return a->execute_cost() < b->execute_cost(); |
247 | 594k | }); |
248 | 807k | }; |
249 | | |
250 | 869k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
251 | 8.75k | RETURN_IF_ERROR( |
252 | 8.75k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
253 | 8.75k | } |
254 | 860k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
255 | | |
256 | 860k | if (has_output_row_desc()) { |
257 | 323k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
258 | 323k | } |
259 | | |
260 | 860k | for (auto& conjunct : _conjuncts) { |
261 | 451k | RETURN_IF_ERROR(conjunct->open(state)); |
262 | 451k | } |
263 | 860k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
264 | 860k | for (auto& projections : _intermediate_projections) { |
265 | 8.75k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
266 | 8.75k | } |
267 | 860k | if (_child && !is_source()) { |
268 | 127k | RETURN_IF_ERROR(_child->prepare(state)); |
269 | 127k | } |
270 | | |
271 | 860k | if (VExpr::contains_blockable_function(_conjuncts) || |
272 | 860k | VExpr::contains_blockable_function(_projections)) { |
273 | 0 | _blockable = true; |
274 | 0 | } |
275 | | |
276 | 860k | return Status::OK(); |
277 | 860k | } |
278 | | |
279 | 6.67k | Status OperatorXBase::terminate(RuntimeState* state) { |
280 | 6.67k | if (_child && !is_source()) { |
281 | 1.32k | RETURN_IF_ERROR(_child->terminate(state)); |
282 | 1.32k | } |
283 | 6.67k | auto result = state->get_local_state_result(operator_id()); |
284 | 6.67k | if (!result) { |
285 | 0 | return result.error(); |
286 | 0 | } |
287 | 6.67k | return result.value()->terminate(state); |
288 | 6.67k | } |
289 | | |
290 | 6.42M | Status OperatorXBase::close(RuntimeState* state) { |
291 | 6.42M | if (_child && !is_source()) { |
292 | 1.13M | RETURN_IF_ERROR(_child->close(state)); |
293 | 1.13M | } |
294 | 6.42M | auto result = state->get_local_state_result(operator_id()); |
295 | 6.42M | if (!result) { |
296 | 0 | return result.error(); |
297 | 0 | } |
298 | 6.42M | return result.value()->close(state); |
299 | 6.42M | } |
300 | | |
301 | 307k | void PipelineXLocalStateBase::clear_origin_block() { |
302 | 307k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
303 | 307k | } |
304 | | |
305 | 686k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
306 | 686k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
307 | | |
308 | 686k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
309 | 686k | return Status::OK(); |
310 | 686k | } |
311 | | |
312 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
313 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
314 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
315 | 0 | } |
316 | | |
317 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
318 | 308k | Block* output_block) const { |
319 | 308k | auto* local_state = state->get_local_state(operator_id()); |
320 | 308k | SCOPED_TIMER(local_state->exec_time_counter()); |
321 | 308k | SCOPED_TIMER(local_state->_projection_timer); |
322 | 308k | const size_t rows = origin_block->rows(); |
323 | 308k | if (rows == 0) { |
324 | 168k | return Status::OK(); |
325 | 168k | } |
326 | 139k | Block input_block = *origin_block; |
327 | | |
328 | 139k | size_t bytes_usage = 0; |
329 | 139k | ColumnsWithTypeAndName new_columns; |
330 | 139k | for (const auto& projections : local_state->_intermediate_projections) { |
331 | 1.60k | if (projections.empty()) { |
332 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
333 | 0 | node_id()); |
334 | 0 | } |
335 | 1.60k | new_columns.resize(projections.size()); |
336 | 11.2k | for (int i = 0; i < projections.size(); i++) { |
337 | 9.61k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
338 | 9.61k | if (new_columns[i].column->size() != rows) { |
339 | 0 | return Status::InternalError( |
340 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
341 | 0 | "expr: {}", |
342 | 0 | new_columns[i].column->size(), rows, |
343 | 0 | projections[i]->root()->debug_string()); |
344 | 0 | } |
345 | 9.61k | } |
346 | 1.60k | Block tmp_block {new_columns}; |
347 | 1.60k | bytes_usage += tmp_block.allocated_bytes(); |
348 | 1.60k | input_block.swap(tmp_block); |
349 | 1.60k | } |
350 | | |
351 | 139k | if (input_block.rows() != rows) { |
352 | 0 | return Status::InternalError( |
353 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
354 | 0 | "input_block: {}", |
355 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
356 | 0 | } |
357 | 674k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
358 | 674k | if (is_column_nullable(*to) && !is_column_nullable(*from)) { |
359 | 0 | if (_keep_origin || !from->is_exclusive()) { |
360 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
361 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
362 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
363 | 0 | bytes_usage += null_column.allocated_bytes(); |
364 | 0 | } else { |
365 | 0 | to = make_nullable(from, false)->assert_mutable(); |
366 | 0 | } |
367 | 674k | } else { |
368 | 674k | if (_keep_origin || !from->is_exclusive()) { |
369 | 674k | to->insert_range_from(*from, 0, rows); |
370 | 674k | bytes_usage += from->allocated_bytes(); |
371 | 18.4E | } else { |
372 | 18.4E | to = from->assert_mutable(); |
373 | 18.4E | } |
374 | 674k | } |
375 | 674k | }; |
376 | | |
377 | 139k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
378 | 139k | output_block, *_output_row_descriptor); |
379 | 139k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
380 | 139k | auto& mutable_columns = mutable_block.mutable_columns(); |
381 | 139k | if (rows != 0) { |
382 | 139k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
383 | 814k | for (int i = 0; i < mutable_columns.size(); ++i) { |
384 | 674k | ColumnPtr column_ptr; |
385 | 674k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
386 | 674k | if (column_ptr->size() != rows) { |
387 | 0 | return Status::InternalError( |
388 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
389 | 0 | column_ptr->size(), rows, |
390 | 0 | local_state->_projections[i]->root()->debug_string()); |
391 | 0 | } |
392 | 674k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
393 | 674k | bytes_usage += column_ptr->allocated_bytes(); |
394 | 674k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
395 | 674k | } |
396 | 139k | DCHECK(mutable_block.rows() == rows); |
397 | 139k | } |
398 | 139k | local_state->_estimate_memory_usage += bytes_usage; |
399 | | |
400 | 139k | return Status::OK(); |
401 | 139k | } |
402 | | |
403 | 4.90M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
404 | 4.90M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
405 | 4.90M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
406 | 4.90M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
407 | 4.90M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
408 | 4.90M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
409 | 4.90M | if (_debug_point_count++ % 2 == 0) { |
410 | 4.90M | return Status::OK(); |
411 | 4.90M | } |
412 | 4.90M | } |
413 | 4.90M | }); |
414 | | |
415 | 4.90M | Status status; |
416 | 4.90M | auto* local_state = state->get_local_state(operator_id()); |
417 | 4.90M | Defer defer([&]() { |
418 | 4.90M | if (status.ok()) { |
419 | 4.90M | local_state->update_output_block_counters(*block); |
420 | 4.90M | } |
421 | 4.90M | }); |
422 | 4.90M | if (_output_row_descriptor) { |
423 | 307k | local_state->clear_origin_block(); |
424 | 307k | status = get_block(state, &local_state->_origin_block, eos); |
425 | 307k | if (UNLIKELY(!status.ok())) { |
426 | 19 | return status; |
427 | 19 | } |
428 | 307k | status = do_projections(state, &local_state->_origin_block, block); |
429 | 307k | return status; |
430 | 307k | } |
431 | 4.59M | status = get_block(state, block, eos); |
432 | 4.59M | RETURN_IF_ERROR(block->check_type_and_column()); |
433 | 4.59M | return status; |
434 | 4.59M | } |
435 | | |
436 | 3.25M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
437 | 3.25M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
438 | 7.53k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
439 | 7.53k | *eos = true; |
440 | 7.53k | } |
441 | | |
442 | 3.25M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
443 | 3.25M | auto op_name = to_lower(_parent->_op_name); |
444 | 3.25M | auto arg_op_name = dp->param<std::string>("op_name"); |
445 | 3.25M | arg_op_name = to_lower(arg_op_name); |
446 | | |
447 | 3.25M | if (op_name == arg_op_name) { |
448 | 3.25M | *eos = true; |
449 | 3.25M | } |
450 | 3.25M | }); |
451 | | |
452 | 3.25M | if (auto rows = block->rows()) { |
453 | 921k | _num_rows_returned += rows; |
454 | 921k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
455 | 921k | } |
456 | 3.25M | } |
457 | | |
458 | 29.3k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
459 | 29.3k | auto result = state->get_sink_local_state_result(); |
460 | 29.3k | if (!result) { |
461 | 0 | return result.error(); |
462 | 0 | } |
463 | 29.3k | return result.value()->terminate(state); |
464 | 29.3k | } |
465 | | |
466 | 20.8k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
467 | 20.8k | fmt::memory_buffer debug_string_buffer; |
468 | | |
469 | 20.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
470 | 20.8k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
471 | 20.8k | return fmt::to_string(debug_string_buffer); |
472 | 20.8k | } |
473 | | |
474 | 20.8k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
475 | 20.8k | return state->get_sink_local_state()->debug_string(indentation_level); |
476 | 20.8k | } |
477 | | |
478 | 463k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
479 | 463k | std::string op_name = "UNKNOWN_SINK"; |
480 | 463k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
481 | | |
482 | 464k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
483 | 464k | op_name = it->second; |
484 | 464k | } |
485 | 463k | _name = op_name + "_OPERATOR"; |
486 | 463k | return Status::OK(); |
487 | 463k | } |
488 | | |
489 | 315k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
490 | 315k | std::string op_name = print_plan_node_type(tnode.node_type); |
491 | 315k | _nereids_id = tnode.nereids_id; |
492 | 315k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
493 | 315k | _name = substr + "_SINK_OPERATOR"; |
494 | 315k | return Status::OK(); |
495 | 315k | } |
496 | | |
497 | | template <typename LocalStateType> |
498 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
499 | 2.17M | LocalSinkStateInfo& info) { |
500 | 2.17M | auto local_state = LocalStateType::create_unique(this, state); |
501 | 2.17M | RETURN_IF_ERROR(local_state->init(state, info)); |
502 | 2.17M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
503 | 2.17M | return Status::OK(); |
504 | 2.17M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 119k | LocalSinkStateInfo& info) { | 500 | 119k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 119k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 119k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 119k | return Status::OK(); | 504 | 119k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 452k | LocalSinkStateInfo& info) { | 500 | 452k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 452k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 452k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 452k | return Status::OK(); | 504 | 452k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 86 | LocalSinkStateInfo& info) { | 500 | 86 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 86 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 86 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 86 | return Status::OK(); | 504 | 86 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 3 | LocalSinkStateInfo& info) { | 500 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 3 | return Status::OK(); | 504 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 517 | LocalSinkStateInfo& info) { | 500 | 517 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 517 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 517 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 517 | return Status::OK(); | 504 | 517 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 47.0k | LocalSinkStateInfo& info) { | 500 | 47.0k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 47.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 47.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 47.0k | return Status::OK(); | 504 | 47.0k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 9.52k | LocalSinkStateInfo& info) { | 500 | 9.52k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 9.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 9.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 9.52k | return Status::OK(); | 504 | 9.52k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 5.17k | LocalSinkStateInfo& info) { | 500 | 5.17k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 5.17k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 5.17k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 5.17k | return Status::OK(); | 504 | 5.17k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 156 | LocalSinkStateInfo& info) { | 500 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 156 | return Status::OK(); | 504 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 3.40k | LocalSinkStateInfo& info) { | 500 | 3.40k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 3.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 3.40k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 3.40k | return Status::OK(); | 504 | 3.40k | } |
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 32 | LocalSinkStateInfo& info) { | 500 | 32 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 32 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 32 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 32 | return Status::OK(); | 504 | 32 | } |
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 192 | LocalSinkStateInfo& info) { | 500 | 192 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 192 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 192 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 192 | return Status::OK(); | 504 | 192 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 640 | LocalSinkStateInfo& info) { | 500 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 640 | return Status::OK(); | 504 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 10.3k | LocalSinkStateInfo& info) { | 500 | 10.3k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 10.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 10.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 10.3k | return Status::OK(); | 504 | 10.3k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 128 | LocalSinkStateInfo& info) { | 500 | 128 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 128 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 128 | return Status::OK(); | 504 | 128 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 269k | LocalSinkStateInfo& info) { | 500 | 269k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 269k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 269k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 269k | return Status::OK(); | 504 | 269k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 31 | LocalSinkStateInfo& info) { | 500 | 31 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 31 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 31 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 31 | return Status::OK(); | 504 | 31 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 347k | LocalSinkStateInfo& info) { | 500 | 347k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 347k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 347k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 347k | return Status::OK(); | 504 | 347k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 156k | LocalSinkStateInfo& info) { | 500 | 156k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 156k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 156k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 156k | return Status::OK(); | 504 | 156k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 546 | LocalSinkStateInfo& info) { | 500 | 546 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 546 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 546 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 546 | return Status::OK(); | 504 | 546 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 113 | LocalSinkStateInfo& info) { | 500 | 113 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 113 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 113 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 113 | return Status::OK(); | 504 | 113 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 717k | LocalSinkStateInfo& info) { | 500 | 717k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 717k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 717k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 717k | return Status::OK(); | 504 | 717k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 10.3k | LocalSinkStateInfo& info) { | 500 | 10.3k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 10.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 10.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 10.3k | return Status::OK(); | 504 | 10.3k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 5.87k | LocalSinkStateInfo& info) { | 500 | 5.87k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 5.87k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 5.87k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 5.87k | return Status::OK(); | 504 | 5.87k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 3.93k | LocalSinkStateInfo& info) { | 500 | 3.93k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 3.93k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 3.93k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 3.93k | return Status::OK(); | 504 | 3.93k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 434 | LocalSinkStateInfo& info) { | 500 | 434 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 434 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 434 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 434 | return Status::OK(); | 504 | 434 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 4.85k | LocalSinkStateInfo& info) { | 500 | 4.85k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 4.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 4.85k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 4.85k | return Status::OK(); | 504 | 4.85k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.78k | LocalSinkStateInfo& info) { | 500 | 2.78k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.78k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.78k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.78k | return Status::OK(); | 504 | 2.78k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.58k | LocalSinkStateInfo& info) { | 500 | 2.58k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.58k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.58k | return Status::OK(); | 504 | 2.58k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.61k | LocalSinkStateInfo& info) { | 500 | 2.61k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.61k | return Status::OK(); | 504 | 2.61k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 1 | LocalSinkStateInfo& info) { | 500 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 559 | LocalSinkStateInfo& info) { | 500 | 559 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 559 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 559 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 559 | return Status::OK(); | 504 | 559 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 14 | LocalSinkStateInfo& info) { | 500 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 14 | return Status::OK(); | 504 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 104 | LocalSinkStateInfo& info) { | 500 | 104 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 104 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 104 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 104 | return Status::OK(); | 504 | 104 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 164 | LocalSinkStateInfo& info) { | 500 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 164 | return Status::OK(); | 504 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 164 | LocalSinkStateInfo& info) { | 500 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 164 | return Status::OK(); | 504 | 164 | } |
|
505 | | |
506 | | template <typename LocalStateType> |
507 | 1.79M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
509 | 0 | LocalExchangeSharedState>) { |
510 | 0 | return nullptr; |
511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
512 | 0 | MultiCastSharedState>) { |
513 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
514 | 1.79M | } else { |
515 | 1.79M | auto ss = LocalStateType::SharedStateType::create_shared(); |
516 | 1.79M | ss->id = operator_id(); |
517 | 1.79M | for (auto& dest : dests_id()) { |
518 | 1.78M | ss->related_op_ids.insert(dest); |
519 | 1.78M | } |
520 | 1.79M | return ss; |
521 | 1.79M | } |
522 | 1.79M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 101k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 101k | } else { | 515 | 101k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 101k | ss->id = operator_id(); | 517 | 101k | for (auto& dest : dests_id()) { | 518 | 100k | ss->related_op_ids.insert(dest); | 519 | 100k | } | 520 | 101k | return ss; | 521 | 101k | } | 522 | 101k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 452k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 452k | } else { | 515 | 452k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 452k | ss->id = operator_id(); | 517 | 452k | for (auto& dest : dests_id()) { | 518 | 451k | ss->related_op_ids.insert(dest); | 519 | 451k | } | 520 | 452k | return ss; | 521 | 452k | } | 522 | 452k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 86 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 86 | } else { | 515 | 86 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 86 | ss->id = operator_id(); | 517 | 86 | for (auto& dest : dests_id()) { | 518 | 86 | ss->related_op_ids.insert(dest); | 519 | 86 | } | 520 | 86 | return ss; | 521 | 86 | } | 522 | 86 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 3 | } else { | 515 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 3 | ss->id = operator_id(); | 517 | 3 | for (auto& dest : dests_id()) { | 518 | 3 | ss->related_op_ids.insert(dest); | 519 | 3 | } | 520 | 3 | return ss; | 521 | 3 | } | 522 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 517 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 517 | } else { | 515 | 517 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 517 | ss->id = operator_id(); | 517 | 517 | for (auto& dest : dests_id()) { | 518 | 517 | ss->related_op_ids.insert(dest); | 519 | 517 | } | 520 | 517 | return ss; | 521 | 517 | } | 522 | 517 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 47.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 47.1k | } else { | 515 | 47.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 47.1k | ss->id = operator_id(); | 517 | 47.1k | for (auto& dest : dests_id()) { | 518 | 46.9k | ss->related_op_ids.insert(dest); | 519 | 46.9k | } | 520 | 47.1k | return ss; | 521 | 47.1k | } | 522 | 47.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 9.52k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 9.52k | } else { | 515 | 9.52k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 9.52k | ss->id = operator_id(); | 517 | 9.52k | for (auto& dest : dests_id()) { | 518 | 9.52k | ss->related_op_ids.insert(dest); | 519 | 9.52k | } | 520 | 9.52k | return ss; | 521 | 9.52k | } | 522 | 9.52k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 5.17k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 5.17k | } else { | 515 | 5.17k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 5.17k | ss->id = operator_id(); | 517 | 5.17k | for (auto& dest : dests_id()) { | 518 | 5.17k | ss->related_op_ids.insert(dest); | 519 | 5.17k | } | 520 | 5.17k | return ss; | 521 | 5.17k | } | 522 | 5.17k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 156 | } else { | 515 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 156 | ss->id = operator_id(); | 517 | 156 | for (auto& dest : dests_id()) { | 518 | 156 | ss->related_op_ids.insert(dest); | 519 | 156 | } | 520 | 156 | return ss; | 521 | 156 | } | 522 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 3.40k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 3.40k | } else { | 515 | 3.40k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 3.40k | ss->id = operator_id(); | 517 | 3.40k | for (auto& dest : dests_id()) { | 518 | 3.40k | ss->related_op_ids.insert(dest); | 519 | 3.40k | } | 520 | 3.40k | return ss; | 521 | 3.40k | } | 522 | 3.40k | } |
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 32 | } else { | 515 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 32 | ss->id = operator_id(); | 517 | 32 | for (auto& dest : dests_id()) { | 518 | 32 | ss->related_op_ids.insert(dest); | 519 | 32 | } | 520 | 32 | return ss; | 521 | 32 | } | 522 | 32 | } |
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 192 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 192 | } else { | 515 | 192 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 192 | ss->id = operator_id(); | 517 | 192 | for (auto& dest : dests_id()) { | 518 | 192 | ss->related_op_ids.insert(dest); | 519 | 192 | } | 520 | 192 | return ss; | 521 | 192 | } | 522 | 192 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 640 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 640 | } else { | 515 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 640 | ss->id = operator_id(); | 517 | 640 | for (auto& dest : dests_id()) { | 518 | 640 | ss->related_op_ids.insert(dest); | 519 | 640 | } | 520 | 640 | return ss; | 521 | 640 | } | 522 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 10.4k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 10.4k | } else { | 515 | 10.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 10.4k | ss->id = operator_id(); | 517 | 10.4k | for (auto& dest : dests_id()) { | 518 | 10.4k | ss->related_op_ids.insert(dest); | 519 | 10.4k | } | 520 | 10.4k | return ss; | 521 | 10.4k | } | 522 | 10.4k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 128 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 128 | } else { | 515 | 128 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 128 | ss->id = operator_id(); | 517 | 128 | for (auto& dest : dests_id()) { | 518 | 128 | ss->related_op_ids.insert(dest); | 519 | 128 | } | 520 | 128 | return ss; | 521 | 128 | } | 522 | 128 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 269k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 269k | } else { | 515 | 269k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 269k | ss->id = operator_id(); | 517 | 269k | for (auto& dest : dests_id()) { | 518 | 269k | ss->related_op_ids.insert(dest); | 519 | 269k | } | 520 | 269k | return ss; | 521 | 269k | } | 522 | 269k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 33 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 33 | } else { | 515 | 33 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 33 | ss->id = operator_id(); | 517 | 33 | for (auto& dest : dests_id()) { | 518 | 33 | ss->related_op_ids.insert(dest); | 519 | 33 | } | 520 | 33 | return ss; | 521 | 33 | } | 522 | 33 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 157k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 157k | } else { | 515 | 157k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 157k | ss->id = operator_id(); | 517 | 157k | for (auto& dest : dests_id()) { | 518 | 156k | ss->related_op_ids.insert(dest); | 519 | 156k | } | 520 | 157k | return ss; | 521 | 157k | } | 522 | 157k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 112 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 112 | } else { | 515 | 112 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 112 | ss->id = operator_id(); | 517 | 112 | for (auto& dest : dests_id()) { | 518 | 112 | ss->related_op_ids.insert(dest); | 519 | 112 | } | 520 | 112 | return ss; | 521 | 112 | } | 522 | 112 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 717k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 717k | } else { | 515 | 717k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 717k | ss->id = operator_id(); | 517 | 717k | for (auto& dest : dests_id()) { | 518 | 712k | ss->related_op_ids.insert(dest); | 519 | 712k | } | 520 | 717k | return ss; | 521 | 717k | } | 522 | 717k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 10.3k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 10.3k | } else { | 515 | 10.3k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 10.3k | ss->id = operator_id(); | 517 | 10.3k | for (auto& dest : dests_id()) { | 518 | 10.3k | ss->related_op_ids.insert(dest); | 519 | 10.3k | } | 520 | 10.3k | return ss; | 521 | 10.3k | } | 522 | 10.3k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 537 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 537 | } else { | 515 | 537 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 537 | ss->id = operator_id(); | 517 | 537 | for (auto& dest : dests_id()) { | 518 | 537 | ss->related_op_ids.insert(dest); | 519 | 537 | } | 520 | 537 | return ss; | 521 | 537 | } | 522 | 537 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 507 | 2.57k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 2.57k | } else { | 515 | 2.57k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 2.57k | ss->id = operator_id(); | 517 | 2.57k | for (auto& dest : dests_id()) { | 518 | 2.56k | ss->related_op_ids.insert(dest); | 519 | 2.56k | } | 520 | 2.57k | return ss; | 521 | 2.57k | } | 522 | 2.57k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 507 | 2.59k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 2.59k | } else { | 515 | 2.59k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 2.59k | ss->id = operator_id(); | 517 | 2.59k | for (auto& dest : dests_id()) { | 518 | 2.58k | ss->related_op_ids.insert(dest); | 519 | 2.58k | } | 520 | 2.59k | return ss; | 521 | 2.59k | } | 522 | 2.59k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 565 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 565 | } else { | 515 | 565 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 565 | ss->id = operator_id(); | 517 | 565 | for (auto& dest : dests_id()) { | 518 | 561 | ss->related_op_ids.insert(dest); | 519 | 561 | } | 520 | 565 | return ss; | 521 | 565 | } | 522 | 565 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 105 | } else { | 515 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 105 | ss->id = operator_id(); | 517 | 105 | for (auto& dest : dests_id()) { | 518 | 104 | ss->related_op_ids.insert(dest); | 519 | 104 | } | 520 | 105 | return ss; | 521 | 105 | } | 522 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
523 | | |
524 | | template <typename LocalStateType> |
525 | 2.66M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
526 | 2.66M | auto local_state = LocalStateType::create_unique(state, this); |
527 | 2.66M | RETURN_IF_ERROR(local_state->init(state, info)); |
528 | 2.66M | state->emplace_local_state(operator_id(), std::move(local_state)); |
529 | 2.66M | return Status::OK(); |
530 | 2.66M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 71.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 71.1k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 71.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 71.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 71.1k | return Status::OK(); | 530 | 71.1k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 307k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 307k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 307k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 307k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 307k | return Status::OK(); | 530 | 307k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 140 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 140 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 140 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 140 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 140 | return Status::OK(); | 530 | 140 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 34.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 34.8k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 34.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 34.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 34.8k | return Status::OK(); | 530 | 34.8k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 10.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 10.2k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 10.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 10.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 10.2k | return Status::OK(); | 530 | 10.2k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 10.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 10.5k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 10.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 10.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 10.5k | return Status::OK(); | 530 | 10.5k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 24 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 24 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 24 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 24 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 24 | return Status::OK(); | 530 | 24 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 257k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 257k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 257k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 257k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 257k | return Status::OK(); | 530 | 257k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 156k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 156k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 156k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 156k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 156k | return Status::OK(); | 530 | 156k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 548 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 548 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 548 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 548 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 548 | return Status::OK(); | 530 | 548 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 103 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 103 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 103 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 103 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 103 | return Status::OK(); | 530 | 103 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 3.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 3.62k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 3.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 3.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 3.62k | return Status::OK(); | 530 | 3.62k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 410k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 410k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 410k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 410k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 410k | return Status::OK(); | 530 | 410k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 1.37k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.37k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.37k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.37k | return Status::OK(); | 530 | 1.37k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 10.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 10.3k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 10.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 10.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 10.3k | return Status::OK(); | 530 | 10.3k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 221 | return Status::OK(); | 530 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 1.67k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.67k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.67k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.67k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.67k | return Status::OK(); | 530 | 1.67k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 55.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 55.6k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 55.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 55.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 55.6k | return Status::OK(); | 530 | 55.6k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 11.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 11.1k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 11.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 11.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 11.1k | return Status::OK(); | 530 | 11.1k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 433 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 433 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 433 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 433 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 433 | return Status::OK(); | 530 | 433 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.61k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.61k | return Status::OK(); | 530 | 2.61k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.63k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.63k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.63k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.63k | return Status::OK(); | 530 | 2.63k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 499 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 499 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 499 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 499 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 499 | return Status::OK(); | 530 | 499 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.19k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.19k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.19k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.19k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.19k | return Status::OK(); | 530 | 2.19k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 7.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 7.20k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 7.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 7.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 7.20k | return Status::OK(); | 530 | 7.20k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 830k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 830k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 830k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 830k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 830k | return Status::OK(); | 530 | 830k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 14 | return Status::OK(); | 530 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 164 | return Status::OK(); | 530 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.18k | return Status::OK(); | 530 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 1.74k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.74k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.74k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.74k | return Status::OK(); | 530 | 1.74k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 3.00k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 3.00k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 3.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 3.00k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 3.00k | return Status::OK(); | 530 | 3.00k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 13.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 13.5k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 13.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 13.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 13.5k | return Status::OK(); | 530 | 13.5k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 457k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 457k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 457k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 457k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 457k | return Status::OK(); | 530 | 457k | } |
|
531 | | |
532 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
533 | | RuntimeState* state) |
534 | 2.17M | : _parent(parent), _state(state) {} |
535 | | |
536 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
537 | 2.66M | : _num_rows_returned(0), |
538 | 2.66M | _rows_returned_counter(nullptr), |
539 | 2.66M | _parent(parent), |
540 | 2.66M | _state(state), |
541 | 2.66M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
542 | | |
543 | | template <typename SharedStateArg> |
544 | 2.67M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
545 | 2.67M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
546 | 2.67M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
547 | 2.67M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
548 | 2.67M | _operator_profile->set_metadata(_parent->node_id()); |
549 | | // indent is false so that source operator will have same |
550 | | // indentation_level with its parent operator. |
551 | 2.67M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
552 | 2.67M | _operator_profile->add_child(_common_profile.get(), true); |
553 | 2.67M | _operator_profile->add_child(_custom_profile.get(), true); |
554 | 2.67M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
555 | 2.67M | if constexpr (!is_fake_shared) { |
556 | 1.42M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
557 | 846k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
558 | 846k | .first.get() |
559 | 846k | ->template cast<SharedStateArg>(); |
560 | | |
561 | 846k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
562 | 846k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
563 | 846k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
564 | 846k | } else if (info.shared_state) { |
565 | 508k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
566 | 0 | DCHECK(false); |
567 | 0 | } |
568 | | // For UnionSourceOperator without children, there is no shared state. |
569 | 508k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
570 | | |
571 | 508k | _dependency = _shared_state->create_source_dependency( |
572 | 508k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
573 | 508k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
574 | 508k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
575 | 508k | } else { |
576 | 72.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
577 | 7.48k | DCHECK(false); |
578 | 7.48k | } |
579 | 72.3k | } |
580 | 1.42M | } |
581 | | |
582 | 2.67M | if (must_set_shared_state() && _shared_state == nullptr) { |
583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
584 | 0 | } |
585 | | |
586 | 2.67M | _rows_returned_counter = |
587 | 2.67M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
588 | 2.67M | _blocks_returned_counter = |
589 | 2.67M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
590 | 2.67M | _output_block_bytes_counter = |
591 | 2.67M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
592 | 2.67M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
593 | 2.67M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
594 | 2.67M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
595 | 2.67M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.67M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
597 | 2.67M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
598 | 2.67M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
599 | 2.67M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
600 | 2.67M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
601 | 2.67M | _memory_used_counter = |
602 | 2.67M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
603 | 2.67M | _common_profile->add_info_string("IsColocate", |
604 | 2.67M | std::to_string(_parent->is_colocated_operator())); |
605 | 2.67M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
606 | 2.67M | _common_profile->add_info_string("FollowedByShuffledOperator", |
607 | 2.67M | std::to_string(_parent->followed_by_shuffled_operator())); |
608 | 2.67M | return Status::OK(); |
609 | 2.67M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 71.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 71.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 71.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 71.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 71.4k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 71.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 71.4k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 71.4k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 71.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 71.4k | if constexpr (!is_fake_shared) { | 556 | 71.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 18.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 18.1k | .first.get() | 559 | 18.1k | ->template cast<SharedStateArg>(); | 560 | | | 561 | 18.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 18.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 18.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 53.2k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 52.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 52.0k | _dependency = _shared_state->create_source_dependency( | 572 | 52.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 52.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 52.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 52.0k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 1.21k | } | 580 | 71.4k | } | 581 | | | 582 | 71.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 71.4k | _rows_returned_counter = | 587 | 71.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 71.4k | _blocks_returned_counter = | 589 | 71.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 71.4k | _output_block_bytes_counter = | 591 | 71.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 71.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 71.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 71.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 71.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 71.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 71.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 71.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 71.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 71.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 71.4k | _memory_used_counter = | 602 | 71.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 71.4k | _common_profile->add_info_string("IsColocate", | 604 | 71.4k | std::to_string(_parent->is_colocated_operator())); | 605 | 71.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 71.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 71.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 71.4k | return Status::OK(); | 609 | 71.4k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 1 | if constexpr (!is_fake_shared) { | 556 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 1 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 1 | _dependency = _shared_state->create_source_dependency( | 572 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 1 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 1 | } | 581 | | | 582 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 1 | _rows_returned_counter = | 587 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 1 | _blocks_returned_counter = | 589 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 1 | _output_block_bytes_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 1 | _memory_used_counter = | 602 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 1 | _common_profile->add_info_string("IsColocate", | 604 | 1 | std::to_string(_parent->is_colocated_operator())); | 605 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 1 | return Status::OK(); | 609 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 269k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 269k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 269k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 269k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 269k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 269k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 269k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 269k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 269k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 269k | if constexpr (!is_fake_shared) { | 556 | 269k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 269k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 260k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 260k | _dependency = _shared_state->create_source_dependency( | 572 | 260k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 260k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 260k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 260k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 8.41k | } | 580 | 269k | } | 581 | | | 582 | 269k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 269k | _rows_returned_counter = | 587 | 269k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 269k | _blocks_returned_counter = | 589 | 269k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 269k | _output_block_bytes_counter = | 591 | 269k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 269k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 269k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 269k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 269k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 269k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 269k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 269k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 269k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 269k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 269k | _memory_used_counter = | 602 | 269k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 269k | _common_profile->add_info_string("IsColocate", | 604 | 269k | std::to_string(_parent->is_colocated_operator())); | 605 | 269k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 269k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 269k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 269k | return Status::OK(); | 609 | 269k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 24 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 24 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 24 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 24 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 24 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 24 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 24 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 24 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 24 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 24 | if constexpr (!is_fake_shared) { | 556 | 24 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 24 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 24 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 24 | _dependency = _shared_state->create_source_dependency( | 572 | 24 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 24 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 24 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 24 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 24 | } | 581 | | | 582 | 24 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 24 | _rows_returned_counter = | 587 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 24 | _blocks_returned_counter = | 589 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 24 | _output_block_bytes_counter = | 591 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 24 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 24 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 24 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 24 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 24 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 24 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 24 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 24 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 24 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 24 | _memory_used_counter = | 602 | 24 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 24 | _common_profile->add_info_string("IsColocate", | 604 | 24 | std::to_string(_parent->is_colocated_operator())); | 605 | 24 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 24 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 24 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 24 | return Status::OK(); | 609 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 10.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 10.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 10.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 10.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 10.3k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 10.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 10.3k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 10.3k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 10.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 10.3k | if constexpr (!is_fake_shared) { | 556 | 10.3k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 10.3k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 10.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 10.2k | _dependency = _shared_state->create_source_dependency( | 572 | 10.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 10.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 10.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 10.2k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 47 | } | 580 | 10.3k | } | 581 | | | 582 | 10.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 10.3k | _rows_returned_counter = | 587 | 10.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 10.3k | _blocks_returned_counter = | 589 | 10.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 10.3k | _output_block_bytes_counter = | 591 | 10.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 10.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 10.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 10.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 10.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 10.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 10.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 10.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 10.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 10.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 10.3k | _memory_used_counter = | 602 | 10.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 10.3k | _common_profile->add_info_string("IsColocate", | 604 | 10.3k | std::to_string(_parent->is_colocated_operator())); | 605 | 10.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 10.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 10.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 10.3k | return Status::OK(); | 609 | 10.3k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 10.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 10.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 10.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 10.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 10.3k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 10.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 10.3k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 10.3k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 10.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 10.3k | if constexpr (!is_fake_shared) { | 556 | 10.3k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 10.3k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 9.98k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 9.98k | _dependency = _shared_state->create_source_dependency( | 572 | 9.98k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 9.98k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 9.98k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 9.98k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 346 | } | 580 | 10.3k | } | 581 | | | 582 | 10.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 10.3k | _rows_returned_counter = | 587 | 10.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 10.3k | _blocks_returned_counter = | 589 | 10.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 10.3k | _output_block_bytes_counter = | 591 | 10.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 10.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 10.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 10.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 10.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 10.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 10.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 10.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 10.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 10.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 10.3k | _memory_used_counter = | 602 | 10.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 10.3k | _common_profile->add_info_string("IsColocate", | 604 | 10.3k | std::to_string(_parent->is_colocated_operator())); | 605 | 10.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 10.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 10.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 10.3k | return Status::OK(); | 609 | 10.3k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 157k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 157k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 157k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 157k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 157k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 157k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 157k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 157k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 157k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 157k | if constexpr (!is_fake_shared) { | 556 | 157k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 157k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 155k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 155k | _dependency = _shared_state->create_source_dependency( | 572 | 155k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 155k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 155k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 155k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 1.87k | } | 580 | 157k | } | 581 | | | 582 | 157k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 157k | _rows_returned_counter = | 587 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 157k | _blocks_returned_counter = | 589 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 157k | _output_block_bytes_counter = | 591 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 157k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 157k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 157k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 157k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 157k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 157k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 157k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 157k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 157k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 157k | _memory_used_counter = | 602 | 157k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 157k | _common_profile->add_info_string("IsColocate", | 604 | 157k | std::to_string(_parent->is_colocated_operator())); | 605 | 157k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 157k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 157k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 157k | return Status::OK(); | 609 | 157k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 551 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 551 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 551 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 551 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 551 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 551 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 551 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 551 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 551 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 551 | if constexpr (!is_fake_shared) { | 556 | 551 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 543 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 543 | .first.get() | 559 | 543 | ->template cast<SharedStateArg>(); | 560 | | | 561 | 543 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 543 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 543 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 543 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | |
| 571 | 0 | _dependency = _shared_state->create_source_dependency( | 572 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 8 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 8 | } | 580 | 551 | } | 581 | | | 582 | 551 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 551 | _rows_returned_counter = | 587 | 551 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 551 | _blocks_returned_counter = | 589 | 551 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 551 | _output_block_bytes_counter = | 591 | 551 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 551 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 551 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 551 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 551 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 551 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 551 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 551 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 551 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 551 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 551 | _memory_used_counter = | 602 | 551 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 551 | _common_profile->add_info_string("IsColocate", | 604 | 551 | std::to_string(_parent->is_colocated_operator())); | 605 | 551 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 551 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 551 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 551 | return Status::OK(); | 609 | 551 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 103 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 103 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 103 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 103 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 103 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 103 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 103 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 103 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 103 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 103 | if constexpr (!is_fake_shared) { | 556 | 103 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 103 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 103 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 103 | _dependency = _shared_state->create_source_dependency( | 572 | 103 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 103 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 103 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 103 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 103 | } | 581 | | | 582 | 103 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 103 | _rows_returned_counter = | 587 | 103 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 103 | _blocks_returned_counter = | 589 | 103 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 103 | _output_block_bytes_counter = | 591 | 103 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 103 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 103 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 103 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 103 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 103 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 103 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 103 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 103 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 103 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 103 | _memory_used_counter = | 602 | 103 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 103 | _common_profile->add_info_string("IsColocate", | 604 | 103 | std::to_string(_parent->is_colocated_operator())); | 605 | 103 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 103 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 103 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 103 | return Status::OK(); | 609 | 103 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 1.24M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 1.24M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 1.24M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 1.24M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 1.24M | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 1.24M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 1.24M | _operator_profile->add_child(_common_profile.get(), true); | 553 | 1.24M | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 1.24M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | | if constexpr (!is_fake_shared) { | 556 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | | .first.get() | 559 | | ->template cast<SharedStateArg>(); | 560 | | | 561 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | | _dependency = _shared_state->create_source_dependency( | 572 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | | } | 580 | | } | 581 | | | 582 | 1.24M | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 1.24M | _rows_returned_counter = | 587 | 1.24M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 1.24M | _blocks_returned_counter = | 589 | 1.24M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 1.24M | _output_block_bytes_counter = | 591 | 1.24M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 1.24M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 1.24M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 1.24M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 1.24M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1.24M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 1.24M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 1.24M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 1.24M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 1.24M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 1.24M | _memory_used_counter = | 602 | 1.24M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 1.24M | _common_profile->add_info_string("IsColocate", | 604 | 1.24M | std::to_string(_parent->is_colocated_operator())); | 605 | 1.24M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 1.24M | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 1.24M | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 1.24M | return Status::OK(); | 609 | 1.24M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 55.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 55.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 55.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 55.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 55.6k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 55.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 55.6k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 55.6k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 55.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 55.6k | if constexpr (!is_fake_shared) { | 556 | 55.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 55.6k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 2.75k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 2.75k | _dependency = _shared_state->create_source_dependency( | 572 | 2.75k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 2.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 2.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 52.8k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 52.8k | } | 580 | 55.6k | } | 581 | | | 582 | 55.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 55.6k | _rows_returned_counter = | 587 | 55.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 55.6k | _blocks_returned_counter = | 589 | 55.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 55.6k | _output_block_bytes_counter = | 591 | 55.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 55.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 55.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 55.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 55.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 55.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 55.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 55.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 55.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 55.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 55.6k | _memory_used_counter = | 602 | 55.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 55.6k | _common_profile->add_info_string("IsColocate", | 604 | 55.6k | std::to_string(_parent->is_colocated_operator())); | 605 | 55.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 55.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 55.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 55.6k | return Status::OK(); | 609 | 55.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 17 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 17 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 17 | if constexpr (!is_fake_shared) { | 556 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 17 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 17 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 17 | _dependency = _shared_state->create_source_dependency( | 572 | 17 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 17 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 17 | } | 581 | | | 582 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 17 | _rows_returned_counter = | 587 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 17 | _blocks_returned_counter = | 589 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 17 | _output_block_bytes_counter = | 591 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 17 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 17 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 17 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 17 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 17 | _memory_used_counter = | 602 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 17 | _common_profile->add_info_string("IsColocate", | 604 | 17 | std::to_string(_parent->is_colocated_operator())); | 605 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 17 | return Status::OK(); | 609 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 11.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 11.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 11.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 11.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 11.1k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 11.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 11.1k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 11.1k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 11.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 11.1k | if constexpr (!is_fake_shared) { | 556 | 11.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 11.1k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 11.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 11.1k | _dependency = _shared_state->create_source_dependency( | 572 | 11.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 11.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 11.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 11.1k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 33 | } | 580 | 11.1k | } | 581 | | | 582 | 11.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 11.1k | _rows_returned_counter = | 587 | 11.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 11.1k | _blocks_returned_counter = | 589 | 11.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 11.1k | _output_block_bytes_counter = | 591 | 11.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 11.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 11.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 11.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 11.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 11.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 11.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 11.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 11.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 11.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 11.1k | _memory_used_counter = | 602 | 11.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 11.1k | _common_profile->add_info_string("IsColocate", | 604 | 11.1k | std::to_string(_parent->is_colocated_operator())); | 605 | 11.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 11.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 11.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 11.1k | return Status::OK(); | 609 | 11.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 536 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 536 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 536 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 536 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 536 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 536 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 536 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 536 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 536 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 536 | if constexpr (!is_fake_shared) { | 556 | 536 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 536 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 533 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 533 | _dependency = _shared_state->create_source_dependency( | 572 | 533 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 533 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 533 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 533 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 3 | } | 580 | 536 | } | 581 | | | 582 | 536 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 536 | _rows_returned_counter = | 587 | 536 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 536 | _blocks_returned_counter = | 589 | 536 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 536 | _output_block_bytes_counter = | 591 | 536 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 536 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 536 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 536 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 536 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 536 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 536 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 536 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 536 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 536 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 536 | _memory_used_counter = | 602 | 536 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 536 | _common_profile->add_info_string("IsColocate", | 604 | 536 | std::to_string(_parent->is_colocated_operator())); | 605 | 536 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 536 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 536 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 536 | return Status::OK(); | 609 | 536 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 5.26k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 5.26k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 5.26k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 5.26k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 5.26k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 5.26k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 5.26k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 5.26k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 5.26k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 5.26k | if constexpr (!is_fake_shared) { | 556 | 5.26k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 5.26k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 5.22k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 5.22k | _dependency = _shared_state->create_source_dependency( | 572 | 5.22k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 5.22k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 5.22k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 5.22k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 39 | } | 580 | 5.26k | } | 581 | | | 582 | 5.26k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 5.26k | _rows_returned_counter = | 587 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 5.26k | _blocks_returned_counter = | 589 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 5.26k | _output_block_bytes_counter = | 591 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 5.26k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 5.26k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 5.26k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 5.26k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.26k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 5.26k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 5.26k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 5.26k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 5.26k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 5.26k | _memory_used_counter = | 602 | 5.26k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 5.26k | _common_profile->add_info_string("IsColocate", | 604 | 5.26k | std::to_string(_parent->is_colocated_operator())); | 605 | 5.26k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 5.26k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 5.26k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 5.26k | return Status::OK(); | 609 | 5.26k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 835k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 835k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 835k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 835k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 835k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 835k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 835k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 835k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 835k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 835k | if constexpr (!is_fake_shared) { | 556 | 835k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 827k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 827k | .first.get() | 559 | 827k | ->template cast<SharedStateArg>(); | 560 | | | 561 | 827k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 827k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 827k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 827k | } else if (info.shared_state) { | 565 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | 0 | DCHECK(false); | 567 | 0 | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | |
| 571 | 0 | _dependency = _shared_state->create_source_dependency( | 572 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 7.48k | } else { | 576 | 7.48k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | 7.48k | DCHECK(false); | 578 | 7.48k | } | 579 | 7.48k | } | 580 | 835k | } | 581 | | | 582 | 835k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 835k | _rows_returned_counter = | 587 | 835k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 835k | _blocks_returned_counter = | 589 | 835k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 835k | _output_block_bytes_counter = | 591 | 835k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 835k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 835k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 835k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 835k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 835k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 835k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 835k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 835k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 835k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 835k | _memory_used_counter = | 602 | 835k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 835k | _common_profile->add_info_string("IsColocate", | 604 | 835k | std::to_string(_parent->is_colocated_operator())); | 605 | 835k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 835k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 835k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 835k | return Status::OK(); | 609 | 835k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 164 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 164 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 164 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 164 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 164 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 164 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 164 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 164 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 164 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 164 | if constexpr (!is_fake_shared) { | 556 | 164 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 164 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 164 | _dependency = _shared_state->create_source_dependency( | 572 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 164 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 164 | } | 581 | | | 582 | 164 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 164 | _rows_returned_counter = | 587 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 164 | _blocks_returned_counter = | 589 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 164 | _output_block_bytes_counter = | 591 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 164 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 164 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 164 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 164 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 164 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 164 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 164 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 164 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 164 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 164 | _memory_used_counter = | 602 | 164 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 164 | _common_profile->add_info_string("IsColocate", | 604 | 164 | std::to_string(_parent->is_colocated_operator())); | 605 | 164 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 164 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 164 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 164 | return Status::OK(); | 609 | 164 | } |
|
610 | | |
611 | | template <typename SharedStateArg> |
612 | 2.68M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
613 | 2.68M | _conjuncts.resize(_parent->_conjuncts.size()); |
614 | 2.68M | _projections.resize(_parent->_projections.size()); |
615 | 3.19M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
616 | 507k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
617 | 507k | } |
618 | 5.40M | for (size_t i = 0; i < _projections.size(); i++) { |
619 | 2.72M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
620 | 2.72M | } |
621 | 2.68M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
622 | 2.70M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
623 | 14.9k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
624 | 98.8k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
625 | 83.9k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
626 | 83.9k | state, _intermediate_projections[i][j])); |
627 | 83.9k | } |
628 | 14.9k | } |
629 | 2.68M | return Status::OK(); |
630 | 2.68M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 71.5k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 71.5k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 71.5k | _projections.resize(_parent->_projections.size()); | 615 | 72.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 806 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 806 | } | 618 | 362k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 290k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 290k | } | 621 | 71.5k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 73.5k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 1.93k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 20.5k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 18.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 18.5k | state, _intermediate_projections[i][j])); | 627 | 18.5k | } | 628 | 1.93k | } | 629 | 71.5k | return Status::OK(); | 630 | 71.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 3 | _projections.resize(_parent->_projections.size()); | 615 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 3 | return Status::OK(); | 630 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 269k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 269k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 269k | _projections.resize(_parent->_projections.size()); | 615 | 269k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 270k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 365 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 365 | } | 621 | 269k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 269k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 269k | return Status::OK(); | 630 | 269k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 23 | _projections.resize(_parent->_projections.size()); | 615 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 23 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 23 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 23 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 23 | return Status::OK(); | 630 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 10.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 10.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 10.3k | _projections.resize(_parent->_projections.size()); | 615 | 10.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 109 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 109 | } | 618 | 67.7k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 57.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 57.4k | } | 621 | 10.3k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 10.4k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 151 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 916 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 765 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 765 | state, _intermediate_projections[i][j])); | 627 | 765 | } | 628 | 151 | } | 629 | 10.3k | return Status::OK(); | 630 | 10.3k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 10.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 10.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 10.4k | _projections.resize(_parent->_projections.size()); | 615 | 11.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 1.33k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 1.33k | } | 618 | 28.4k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 17.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 17.9k | } | 621 | 10.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 10.5k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 92 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 689 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 597 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 597 | state, _intermediate_projections[i][j])); | 627 | 597 | } | 628 | 92 | } | 629 | 10.4k | return Status::OK(); | 630 | 10.4k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 157k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 157k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 157k | _projections.resize(_parent->_projections.size()); | 615 | 160k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 3.90k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 3.90k | } | 618 | 429k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 272k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 272k | } | 621 | 157k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 157k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 305 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 2.35k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 2.04k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 2.04k | state, _intermediate_projections[i][j])); | 627 | 2.04k | } | 628 | 305 | } | 629 | 157k | return Status::OK(); | 630 | 157k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 550 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 550 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 550 | _projections.resize(_parent->_projections.size()); | 615 | 574 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 24 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 24 | } | 618 | 1.92k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 1.37k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 1.37k | } | 621 | 550 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 550 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 550 | return Status::OK(); | 630 | 550 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 107 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 107 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 107 | _projections.resize(_parent->_projections.size()); | 615 | 107 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 287 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 180 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 180 | } | 621 | 107 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 107 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 107 | return Status::OK(); | 630 | 107 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 1.25M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 1.25M | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 1.25M | _projections.resize(_parent->_projections.size()); | 615 | 1.75M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 497k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 497k | } | 618 | 3.23M | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 1.98M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 1.98M | } | 621 | 1.25M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 1.26M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 12.4k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 74.4k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 62.0k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 62.0k | state, _intermediate_projections[i][j])); | 627 | 62.0k | } | 628 | 12.4k | } | 629 | 1.25M | return Status::OK(); | 630 | 1.25M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 55.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 55.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 55.9k | _projections.resize(_parent->_projections.size()); | 615 | 55.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 152k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 96.3k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 96.3k | } | 621 | 55.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 55.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 55.9k | return Status::OK(); | 630 | 55.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 17 | _projections.resize(_parent->_projections.size()); | 615 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 17 | return Status::OK(); | 630 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 11.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 11.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 11.1k | _projections.resize(_parent->_projections.size()); | 615 | 15.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 3.96k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 3.96k | } | 618 | 11.1k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 11.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 11.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 11.1k | return Status::OK(); | 630 | 11.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 537 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 537 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 537 | _projections.resize(_parent->_projections.size()); | 615 | 537 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 537 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 537 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 537 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 537 | return Status::OK(); | 630 | 537 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 5.26k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 5.26k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 5.26k | _projections.resize(_parent->_projections.size()); | 615 | 5.26k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 5.45k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 188 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 188 | } | 621 | 5.26k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 5.26k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 5.26k | return Status::OK(); | 630 | 5.26k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 839k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 839k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 839k | _projections.resize(_parent->_projections.size()); | 615 | 839k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 839k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 839k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 839k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 839k | return Status::OK(); | 630 | 839k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 164 | _projections.resize(_parent->_projections.size()); | 615 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 7 | } | 618 | 483 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 319 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 319 | } | 621 | 164 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 167 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 3 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 11 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 8 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 8 | state, _intermediate_projections[i][j])); | 627 | 8 | } | 628 | 3 | } | 629 | 164 | return Status::OK(); | 630 | 164 | } |
|
631 | | |
632 | | template <typename SharedStateArg> |
633 | 6.67k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
634 | 6.67k | if (_terminated) { |
635 | 0 | return Status::OK(); |
636 | 0 | } |
637 | 6.67k | _terminated = true; |
638 | 6.67k | return Status::OK(); |
639 | 6.67k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 272 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 272 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 272 | _terminated = true; | 638 | 272 | return Status::OK(); | 639 | 272 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 99 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 99 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 99 | _terminated = true; | 638 | 99 | return Status::OK(); | 639 | 99 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 45 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 45 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 45 | _terminated = true; | 638 | 45 | return Status::OK(); | 639 | 45 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 255 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 255 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 255 | _terminated = true; | 638 | 255 | return Status::OK(); | 639 | 255 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 5.12k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 5.12k | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 5.12k | _terminated = true; | 638 | 5.12k | return Status::OK(); | 639 | 5.12k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 2 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 2 | _terminated = true; | 638 | 2 | return Status::OK(); | 639 | 2 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 11 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 11 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 11 | _terminated = true; | 638 | 11 | return Status::OK(); | 639 | 11 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 18 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 18 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 18 | _terminated = true; | 638 | 18 | return Status::OK(); | 639 | 18 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 822 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 822 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 822 | _terminated = true; | 638 | 822 | return Status::OK(); | 639 | 822 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 21 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 21 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 21 | _terminated = true; | 638 | 21 | return Status::OK(); | 639 | 21 | } |
|
640 | | |
641 | | template <typename SharedStateArg> |
642 | 2.98M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
643 | 2.98M | if (_closed) { |
644 | 304k | return Status::OK(); |
645 | 304k | } |
646 | 2.68M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
647 | 1.43M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
648 | 1.43M | } |
649 | 2.68M | _closed = true; |
650 | 2.68M | return Status::OK(); |
651 | 2.98M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 71.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 71.5k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 71.5k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 71.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 71.5k | } | 649 | 71.5k | _closed = true; | 650 | 71.5k | return Status::OK(); | 651 | 71.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 4 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 4 | } | 649 | 4 | _closed = true; | 650 | 4 | return Status::OK(); | 651 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 536k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 536k | if (_closed) { | 644 | 268k | return Status::OK(); | 645 | 268k | } | 646 | 268k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 268k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 268k | } | 649 | 268k | _closed = true; | 650 | 268k | return Status::OK(); | 651 | 536k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 24 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 24 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 24 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 24 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 24 | } | 649 | 24 | _closed = true; | 650 | 24 | return Status::OK(); | 651 | 24 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 10.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 10.3k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 10.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 10.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 10.3k | } | 649 | 10.3k | _closed = true; | 650 | 10.3k | return Status::OK(); | 651 | 10.3k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 21.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 21.0k | if (_closed) { | 644 | 10.5k | return Status::OK(); | 645 | 10.5k | } | 646 | 10.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 10.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 10.4k | } | 649 | 10.4k | _closed = true; | 650 | 10.4k | return Status::OK(); | 651 | 21.0k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 156k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 156k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 156k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 156k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 156k | } | 649 | 156k | _closed = true; | 650 | 156k | return Status::OK(); | 651 | 156k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 550 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 550 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 550 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 550 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 550 | } | 649 | 550 | _closed = true; | 650 | 550 | return Status::OK(); | 651 | 550 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 102 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 102 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 102 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 102 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 102 | } | 649 | 102 | _closed = true; | 650 | 102 | return Status::OK(); | 651 | 102 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 1.27M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 1.27M | if (_closed) { | 644 | 18.9k | return Status::OK(); | 645 | 18.9k | } | 646 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | | } | 649 | 1.25M | _closed = true; | 650 | 1.25M | return Status::OK(); | 651 | 1.27M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 55.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 55.9k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 55.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 55.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 55.9k | } | 649 | 55.9k | _closed = true; | 650 | 55.9k | return Status::OK(); | 651 | 55.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 28 | if (_closed) { | 644 | 14 | return Status::OK(); | 645 | 14 | } | 646 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 14 | } | 649 | 14 | _closed = true; | 650 | 14 | return Status::OK(); | 651 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 11.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 11.1k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 11.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 11.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 11.1k | } | 649 | 11.1k | _closed = true; | 650 | 11.1k | return Status::OK(); | 651 | 11.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 865 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 865 | if (_closed) { | 644 | 434 | return Status::OK(); | 645 | 434 | } | 646 | 431 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 431 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 431 | } | 649 | 431 | _closed = true; | 650 | 431 | return Status::OK(); | 651 | 865 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 10.5k | if (_closed) { | 644 | 5.34k | return Status::OK(); | 645 | 5.34k | } | 646 | 5.24k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 5.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 5.24k | } | 649 | 5.24k | _closed = true; | 650 | 5.24k | return Status::OK(); | 651 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 841k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 841k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 841k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 841k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 841k | } | 649 | 841k | _closed = true; | 650 | 841k | return Status::OK(); | 651 | 841k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 333 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 333 | if (_closed) { | 644 | 178 | return Status::OK(); | 645 | 178 | } | 646 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 155 | } | 649 | 155 | _closed = true; | 650 | 155 | return Status::OK(); | 651 | 333 | } |
|
652 | | |
653 | | template <typename SharedState> |
654 | 2.17M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
655 | | // create profile |
656 | 2.17M | _operator_profile = |
657 | 2.17M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
658 | 2.17M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
659 | 2.17M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
660 | | |
661 | | // indentation is true |
662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
663 | | // So we should set the indentation to true. |
664 | 2.17M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
665 | 2.17M | _operator_profile->add_child(_common_profile, true); |
666 | 2.17M | _operator_profile->add_child(_custom_profile, true); |
667 | | |
668 | 2.17M | _operator_profile->set_metadata(_parent->node_id()); |
669 | 2.17M | _wait_for_finish_dependency_timer = |
670 | 2.17M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
671 | 2.17M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
672 | 2.17M | if constexpr (!is_fake_shared) { |
673 | 1.45M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
674 | 1.45M | info.shared_state_map.end()) { |
675 | 366k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
676 | 347k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
677 | 347k | } |
678 | 366k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
679 | 366k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
680 | 366k | ? 0 |
681 | 366k | : info.task_idx] |
682 | 366k | .get(); |
683 | 366k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
684 | 1.09M | } else { |
685 | 1.09M | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
686 | 247 | DCHECK(false); |
687 | 247 | } |
688 | 1.09M | _shared_state = info.shared_state->template cast<SharedState>(); |
689 | 1.09M | _dependency = _shared_state->create_sink_dependency( |
690 | 1.09M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
691 | 1.09M | } |
692 | 1.45M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
693 | 1.45M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
694 | 1.45M | } |
695 | | |
696 | 2.17M | if (must_set_shared_state() && _shared_state == nullptr) { |
697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
698 | 0 | } |
699 | | |
700 | 2.17M | _rows_input_counter = |
701 | 2.17M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
702 | 2.17M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
703 | 2.17M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
704 | 2.17M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
705 | 2.17M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
706 | 2.17M | _memory_used_counter = |
707 | 2.17M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
708 | 2.17M | _common_profile->add_info_string("IsColocate", |
709 | 2.17M | std::to_string(_parent->is_colocated_operator())); |
710 | 2.17M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
711 | 2.17M | _common_profile->add_info_string("FollowedByShuffledOperator", |
712 | 2.17M | std::to_string(_parent->followed_by_shuffled_operator())); |
713 | 2.17M | return Status::OK(); |
714 | 2.17M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 119k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 119k | _operator_profile = | 657 | 119k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 119k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 119k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 119k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 119k | _operator_profile->add_child(_common_profile, true); | 666 | 119k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 119k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 119k | _wait_for_finish_dependency_timer = | 670 | 119k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 119k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 119k | if constexpr (!is_fake_shared) { | 673 | 119k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 119k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 18.3k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 18.3k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 18.3k | ? 0 | 681 | 18.3k | : info.task_idx] | 682 | 18.3k | .get(); | 683 | 18.3k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 101k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 101k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 101k | _dependency = _shared_state->create_sink_dependency( | 690 | 101k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 101k | } | 692 | 119k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 119k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 119k | } | 695 | | | 696 | 119k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 119k | _rows_input_counter = | 701 | 119k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 119k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 119k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 119k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 119k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 119k | _memory_used_counter = | 707 | 119k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 119k | _common_profile->add_info_string("IsColocate", | 709 | 119k | std::to_string(_parent->is_colocated_operator())); | 710 | 119k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 119k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 119k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 119k | return Status::OK(); | 714 | 119k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 2 | _operator_profile = | 657 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 2 | _operator_profile->add_child(_common_profile, true); | 666 | 2 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 2 | _wait_for_finish_dependency_timer = | 670 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 2 | if constexpr (!is_fake_shared) { | 673 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 2 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 2 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 2 | _dependency = _shared_state->create_sink_dependency( | 690 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 2 | } | 692 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 2 | } | 695 | | | 696 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 2 | _rows_input_counter = | 701 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 2 | _memory_used_counter = | 707 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 2 | _common_profile->add_info_string("IsColocate", | 709 | 2 | std::to_string(_parent->is_colocated_operator())); | 710 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 2 | return Status::OK(); | 714 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 268k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 268k | _operator_profile = | 657 | 268k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 268k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 268k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 268k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 268k | _operator_profile->add_child(_common_profile, true); | 666 | 268k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 268k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 268k | _wait_for_finish_dependency_timer = | 670 | 268k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 268k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 268k | if constexpr (!is_fake_shared) { | 673 | 268k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 268k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 268k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 268k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 268k | _dependency = _shared_state->create_sink_dependency( | 690 | 268k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 268k | } | 692 | 268k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 268k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 268k | } | 695 | | | 696 | 268k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 268k | _rows_input_counter = | 701 | 268k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 268k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 268k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 268k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 268k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 268k | _memory_used_counter = | 707 | 268k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 268k | _common_profile->add_info_string("IsColocate", | 709 | 268k | std::to_string(_parent->is_colocated_operator())); | 710 | 268k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 268k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 268k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 268k | return Status::OK(); | 714 | 268k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 31 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 31 | _operator_profile = | 657 | 31 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 31 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 31 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 31 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 31 | _operator_profile->add_child(_common_profile, true); | 666 | 31 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 31 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 31 | _wait_for_finish_dependency_timer = | 670 | 31 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 31 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 31 | if constexpr (!is_fake_shared) { | 673 | 31 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 31 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 31 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 31 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 31 | _dependency = _shared_state->create_sink_dependency( | 690 | 31 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 31 | } | 692 | 31 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 31 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 31 | } | 695 | | | 696 | 31 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 31 | _rows_input_counter = | 701 | 31 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 31 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 31 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 31 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 31 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 31 | _memory_used_counter = | 707 | 31 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 31 | _common_profile->add_info_string("IsColocate", | 709 | 31 | std::to_string(_parent->is_colocated_operator())); | 710 | 31 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 31 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 31 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 31 | return Status::OK(); | 714 | 31 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 10.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 10.3k | _operator_profile = | 657 | 10.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 10.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 10.3k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 10.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 10.3k | _operator_profile->add_child(_common_profile, true); | 666 | 10.3k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 10.3k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 10.3k | _wait_for_finish_dependency_timer = | 670 | 10.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 10.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 10.3k | if constexpr (!is_fake_shared) { | 673 | 10.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 10.3k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 10.3k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 10.3k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 10.3k | _dependency = _shared_state->create_sink_dependency( | 690 | 10.3k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 10.3k | } | 692 | 10.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 10.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 10.3k | } | 695 | | | 696 | 10.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 10.3k | _rows_input_counter = | 701 | 10.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 10.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 10.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 10.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 10.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 10.3k | _memory_used_counter = | 707 | 10.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 10.3k | _common_profile->add_info_string("IsColocate", | 709 | 10.3k | std::to_string(_parent->is_colocated_operator())); | 710 | 10.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 10.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 10.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 10.3k | return Status::OK(); | 714 | 10.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 10.4k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 10.4k | _operator_profile = | 657 | 10.4k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 10.4k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 10.4k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 10.4k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 10.4k | _operator_profile->add_child(_common_profile, true); | 666 | 10.4k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 10.4k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 10.4k | _wait_for_finish_dependency_timer = | 670 | 10.4k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 10.4k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 10.4k | if constexpr (!is_fake_shared) { | 673 | 10.4k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 10.4k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 10.4k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 10.4k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 10.4k | _dependency = _shared_state->create_sink_dependency( | 690 | 10.4k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 10.4k | } | 692 | 10.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 10.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 10.4k | } | 695 | | | 696 | 10.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 10.4k | _rows_input_counter = | 701 | 10.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 10.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 10.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 10.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 10.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 10.4k | _memory_used_counter = | 707 | 10.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 10.4k | _common_profile->add_info_string("IsColocate", | 709 | 10.4k | std::to_string(_parent->is_colocated_operator())); | 710 | 10.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 10.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 10.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 10.4k | return Status::OK(); | 714 | 10.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 156k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 156k | _operator_profile = | 657 | 156k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 156k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 156k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 156k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 156k | _operator_profile->add_child(_common_profile, true); | 666 | 156k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 156k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 156k | _wait_for_finish_dependency_timer = | 670 | 156k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 156k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 156k | if constexpr (!is_fake_shared) { | 673 | 156k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 156k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 156k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 156k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 156k | _dependency = _shared_state->create_sink_dependency( | 690 | 156k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 156k | } | 692 | 156k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 156k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 156k | } | 695 | | | 696 | 156k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 156k | _rows_input_counter = | 701 | 156k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 156k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 156k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 156k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 156k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 156k | _memory_used_counter = | 707 | 156k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 156k | _common_profile->add_info_string("IsColocate", | 709 | 156k | std::to_string(_parent->is_colocated_operator())); | 710 | 156k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 156k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 156k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 156k | return Status::OK(); | 714 | 156k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 549 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 549 | _operator_profile = | 657 | 549 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 549 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 549 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 549 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 549 | _operator_profile->add_child(_common_profile, true); | 666 | 549 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 549 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 549 | _wait_for_finish_dependency_timer = | 670 | 549 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 549 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 549 | if constexpr (!is_fake_shared) { | 673 | 549 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 549 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 546 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 546 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 546 | ? 0 | 681 | 546 | : info.task_idx] | 682 | 546 | .get(); | 683 | 546 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 546 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 3 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 3 | _dependency = _shared_state->create_sink_dependency( | 690 | 3 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 3 | } | 692 | 549 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 549 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 549 | } | 695 | | | 696 | 549 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 549 | _rows_input_counter = | 701 | 549 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 549 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 549 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 549 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 549 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 549 | _memory_used_counter = | 707 | 549 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 549 | _common_profile->add_info_string("IsColocate", | 709 | 549 | std::to_string(_parent->is_colocated_operator())); | 710 | 549 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 549 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 549 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 549 | return Status::OK(); | 714 | 549 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 113 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 113 | _operator_profile = | 657 | 113 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 113 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 113 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 113 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 113 | _operator_profile->add_child(_common_profile, true); | 666 | 113 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 113 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 113 | _wait_for_finish_dependency_timer = | 670 | 113 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 113 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 113 | if constexpr (!is_fake_shared) { | 673 | 113 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 113 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 113 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 113 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 113 | _dependency = _shared_state->create_sink_dependency( | 690 | 113 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 113 | } | 692 | 113 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 113 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 113 | } | 695 | | | 696 | 113 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 113 | _rows_input_counter = | 701 | 113 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 113 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 113 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 113 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 113 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 113 | _memory_used_counter = | 707 | 113 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 113 | _common_profile->add_info_string("IsColocate", | 709 | 113 | std::to_string(_parent->is_colocated_operator())); | 710 | 113 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 113 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 113 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 113 | return Status::OK(); | 714 | 113 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 721k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 721k | _operator_profile = | 657 | 721k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 721k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 721k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 721k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 721k | _operator_profile->add_child(_common_profile, true); | 666 | 721k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 721k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 721k | _wait_for_finish_dependency_timer = | 670 | 721k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 721k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | | if constexpr (!is_fake_shared) { | 673 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | | ? 0 | 681 | | : info.task_idx] | 682 | | .get(); | 683 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | | _dependency = _shared_state->create_sink_dependency( | 690 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | | } | 692 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | | } | 695 | | | 696 | 721k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 721k | _rows_input_counter = | 701 | 721k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 721k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 721k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 721k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 721k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 721k | _memory_used_counter = | 707 | 721k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 721k | _common_profile->add_info_string("IsColocate", | 709 | 721k | std::to_string(_parent->is_colocated_operator())); | 710 | 721k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 721k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 721k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 721k | return Status::OK(); | 714 | 721k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 5.88k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 5.88k | _operator_profile = | 657 | 5.88k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 5.88k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 5.88k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 5.88k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 5.88k | _operator_profile->add_child(_common_profile, true); | 666 | 5.88k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 5.88k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 5.88k | _wait_for_finish_dependency_timer = | 670 | 5.88k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 5.88k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 5.88k | if constexpr (!is_fake_shared) { | 673 | 5.88k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 5.88k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 5.88k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 5.88k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 5.88k | _dependency = _shared_state->create_sink_dependency( | 690 | 5.88k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 5.88k | } | 692 | 5.88k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 5.88k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 5.88k | } | 695 | | | 696 | 5.88k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 5.88k | _rows_input_counter = | 701 | 5.88k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 5.88k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 5.88k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 5.88k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 5.88k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 5.88k | _memory_used_counter = | 707 | 5.88k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 5.88k | _common_profile->add_info_string("IsColocate", | 709 | 5.88k | std::to_string(_parent->is_colocated_operator())); | 710 | 5.88k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 5.88k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 5.88k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 5.88k | return Status::OK(); | 714 | 5.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 536 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 536 | _operator_profile = | 657 | 536 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 536 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 536 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 536 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 536 | _operator_profile->add_child(_common_profile, true); | 666 | 536 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 536 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 536 | _wait_for_finish_dependency_timer = | 670 | 536 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 536 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 536 | if constexpr (!is_fake_shared) { | 673 | 536 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 536 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 536 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 536 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 536 | _dependency = _shared_state->create_sink_dependency( | 690 | 536 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 536 | } | 692 | 536 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 536 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 536 | } | 695 | | | 696 | 536 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 536 | _rows_input_counter = | 701 | 536 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 536 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 536 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 536 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 536 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 536 | _memory_used_counter = | 707 | 536 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 536 | _common_profile->add_info_string("IsColocate", | 709 | 536 | std::to_string(_parent->is_colocated_operator())); | 710 | 536 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 536 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 536 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 536 | return Status::OK(); | 714 | 536 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 3.94k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 3.94k | _operator_profile = | 657 | 3.94k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 3.94k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 3.94k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 3.94k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 3.94k | _operator_profile->add_child(_common_profile, true); | 666 | 3.94k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 3.94k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 3.94k | _wait_for_finish_dependency_timer = | 670 | 3.94k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 3.94k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 3.94k | if constexpr (!is_fake_shared) { | 673 | 3.94k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 3.94k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 3.94k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 3.94k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 3.94k | _dependency = _shared_state->create_sink_dependency( | 690 | 3.94k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 3.94k | } | 692 | 3.94k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 3.94k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 3.94k | } | 695 | | | 696 | 3.94k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 3.94k | _rows_input_counter = | 701 | 3.94k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 3.94k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 3.94k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 3.94k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 3.94k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 3.94k | _memory_used_counter = | 707 | 3.94k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 3.94k | _common_profile->add_info_string("IsColocate", | 709 | 3.94k | std::to_string(_parent->is_colocated_operator())); | 710 | 3.94k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 3.94k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 3.94k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 3.94k | return Status::OK(); | 714 | 3.94k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 12.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 12.8k | _operator_profile = | 657 | 12.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 12.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 12.8k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 12.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 12.8k | _operator_profile->add_child(_common_profile, true); | 666 | 12.8k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 12.8k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 12.8k | _wait_for_finish_dependency_timer = | 670 | 12.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 12.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 12.8k | if constexpr (!is_fake_shared) { | 673 | 12.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 12.8k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 12.8k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 12.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 12.8k | _dependency = _shared_state->create_sink_dependency( | 690 | 12.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 12.8k | } | 692 | 12.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 12.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 12.8k | } | 695 | | | 696 | 12.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 12.8k | _rows_input_counter = | 701 | 12.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 12.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 12.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 12.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 12.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 12.8k | _memory_used_counter = | 707 | 12.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 12.8k | _common_profile->add_info_string("IsColocate", | 709 | 12.8k | std::to_string(_parent->is_colocated_operator())); | 710 | 12.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 12.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 12.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 12.8k | return Status::OK(); | 714 | 12.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 347k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 347k | _operator_profile = | 657 | 347k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 347k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 347k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 347k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 347k | _operator_profile->add_child(_common_profile, true); | 666 | 347k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 347k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 347k | _wait_for_finish_dependency_timer = | 670 | 347k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 347k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 347k | if constexpr (!is_fake_shared) { | 673 | 347k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 347k | info.shared_state_map.end()) { | 675 | 347k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | 347k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | 347k | } | 678 | 347k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 347k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 347k | ? 0 | 681 | 347k | : info.task_idx] | 682 | 347k | .get(); | 683 | 347k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 347k | } else { | 685 | 247 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | 247 | DCHECK(false); | 687 | 247 | } | 688 | 247 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 247 | _dependency = _shared_state->create_sink_dependency( | 690 | 247 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 247 | } | 692 | 347k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 347k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 347k | } | 695 | | | 696 | 347k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 347k | _rows_input_counter = | 701 | 347k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 347k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 347k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 347k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 347k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 347k | _memory_used_counter = | 707 | 347k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 347k | _common_profile->add_info_string("IsColocate", | 709 | 347k | std::to_string(_parent->is_colocated_operator())); | 710 | 347k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 347k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 347k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 347k | return Status::OK(); | 714 | 347k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 519k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 519k | _operator_profile = | 657 | 519k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 519k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 519k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 519k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 519k | _operator_profile->add_child(_common_profile, true); | 666 | 519k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 519k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 519k | _wait_for_finish_dependency_timer = | 670 | 519k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 519k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 519k | if constexpr (!is_fake_shared) { | 673 | 519k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 519k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 519k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 519k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 519k | _dependency = _shared_state->create_sink_dependency( | 690 | 519k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 519k | } | 692 | 519k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 519k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 519k | } | 695 | | | 696 | 519k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 519k | _rows_input_counter = | 701 | 519k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 519k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 519k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 519k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 519k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 519k | _memory_used_counter = | 707 | 519k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 519k | _common_profile->add_info_string("IsColocate", | 709 | 519k | std::to_string(_parent->is_colocated_operator())); | 710 | 519k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 519k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 519k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 519k | return Status::OK(); | 714 | 519k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 17 | _operator_profile = | 657 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 17 | _operator_profile->add_child(_common_profile, true); | 666 | 17 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 17 | _wait_for_finish_dependency_timer = | 670 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 17 | if constexpr (!is_fake_shared) { | 673 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 17 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 17 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 17 | _dependency = _shared_state->create_sink_dependency( | 690 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 17 | } | 692 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 17 | } | 695 | | | 696 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 17 | _rows_input_counter = | 701 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 17 | _memory_used_counter = | 707 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 17 | _common_profile->add_info_string("IsColocate", | 709 | 17 | std::to_string(_parent->is_colocated_operator())); | 710 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 17 | return Status::OK(); | 714 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 328 | _operator_profile = | 657 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 328 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 328 | _operator_profile->add_child(_common_profile, true); | 666 | 328 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 328 | _wait_for_finish_dependency_timer = | 670 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 328 | if constexpr (!is_fake_shared) { | 673 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 328 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 328 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 328 | _dependency = _shared_state->create_sink_dependency( | 690 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 328 | } | 692 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 328 | } | 695 | | | 696 | 328 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 328 | _rows_input_counter = | 701 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 328 | _memory_used_counter = | 707 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 328 | _common_profile->add_info_string("IsColocate", | 709 | 328 | std::to_string(_parent->is_colocated_operator())); | 710 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 328 | return Status::OK(); | 714 | 328 | } |
|
715 | | |
716 | | template <typename SharedState> |
717 | 2.18M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
718 | 2.18M | if (_closed) { |
719 | 2 | return Status::OK(); |
720 | 2 | } |
721 | 2.18M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
722 | 1.46M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
723 | 1.46M | } |
724 | 2.18M | _closed = true; |
725 | 2.18M | return Status::OK(); |
726 | 2.18M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 119k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 119k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 119k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 119k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 119k | } | 724 | 119k | _closed = true; | 725 | 119k | return Status::OK(); | 726 | 119k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 1 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 1 | } | 724 | 1 | _closed = true; | 725 | 1 | return Status::OK(); | 726 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 269k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 269k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 269k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 269k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 269k | } | 724 | 269k | _closed = true; | 725 | 269k | return Status::OK(); | 726 | 269k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 22 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 22 | if (_closed) { | 719 | 2 | return Status::OK(); | 720 | 2 | } | 721 | 20 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 20 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 20 | } | 724 | 20 | _closed = true; | 725 | 20 | return Status::OK(); | 726 | 22 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 10.3k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 10.3k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 10.3k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 10.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 10.3k | } | 724 | 10.3k | _closed = true; | 725 | 10.3k | return Status::OK(); | 726 | 10.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 10.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 10.4k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 10.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 10.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 10.4k | } | 724 | 10.4k | _closed = true; | 725 | 10.4k | return Status::OK(); | 726 | 10.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 156k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 156k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 156k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 156k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 156k | } | 724 | 156k | _closed = true; | 725 | 156k | return Status::OK(); | 726 | 156k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 548 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 548 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 548 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 548 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 548 | } | 724 | 548 | _closed = true; | 725 | 548 | return Status::OK(); | 726 | 548 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 102 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 102 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 102 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 102 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 102 | } | 724 | 102 | _closed = true; | 725 | 102 | return Status::OK(); | 726 | 102 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 723k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 723k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | | } | 724 | 723k | _closed = true; | 725 | 723k | return Status::OK(); | 726 | 723k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 5.89k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 5.89k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 5.89k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 5.89k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 5.89k | } | 724 | 5.89k | _closed = true; | 725 | 5.89k | return Status::OK(); | 726 | 5.89k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 433 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 433 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 433 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 433 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 433 | } | 724 | 433 | _closed = true; | 725 | 433 | return Status::OK(); | 726 | 433 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 3.95k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 3.95k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 3.95k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 3.95k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 3.95k | } | 724 | 3.95k | _closed = true; | 725 | 3.95k | return Status::OK(); | 726 | 3.95k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 13.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 13.0k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 13.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 13.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 13.0k | } | 724 | 13.0k | _closed = true; | 725 | 13.0k | return Status::OK(); | 726 | 13.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 349k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 349k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 349k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 349k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 349k | } | 724 | 349k | _closed = true; | 725 | 349k | return Status::OK(); | 726 | 349k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 524k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 524k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 524k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 524k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 524k | } | 724 | 524k | _closed = true; | 725 | 524k | return Status::OK(); | 726 | 524k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 14 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 14 | } | 724 | 14 | _closed = true; | 725 | 14 | return Status::OK(); | 726 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 328 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 328 | } | 724 | 328 | _closed = true; | 725 | 328 | return Status::OK(); | 726 | 328 | } |
|
727 | | |
728 | | template <typename LocalStateType> |
729 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
730 | 15.4k | bool* eos) { |
731 | 15.4k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
732 | 15.4k | return pull(state, block, eos); |
733 | 15.4k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 730 | 431 | bool* eos) { | 731 | 431 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 732 | 431 | return pull(state, block, eos); | 733 | 431 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 730 | 14.9k | bool* eos) { | 731 | 14.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 732 | 14.9k | return pull(state, block, eos); | 733 | 14.9k | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 737k | bool* eos) { |
738 | 737k | auto& local_state = get_local_state(state); |
739 | 737k | if (need_more_input_data(state)) { |
740 | 708k | local_state._child_block->clear_column_data( |
741 | 708k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
742 | 708k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
743 | 708k | state, local_state._child_block.get(), &local_state._child_eos)); |
744 | 708k | *eos = local_state._child_eos; |
745 | 708k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
746 | 69.9k | return Status::OK(); |
747 | 69.9k | } |
748 | 638k | { |
749 | 638k | SCOPED_TIMER(local_state.exec_time_counter()); |
750 | 638k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
751 | 638k | } |
752 | 638k | } |
753 | | |
754 | 667k | if (!need_more_input_data(state)) { |
755 | 617k | SCOPED_TIMER(local_state.exec_time_counter()); |
756 | 617k | bool new_eos = false; |
757 | 617k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
758 | 617k | if (new_eos) { |
759 | 536k | *eos = true; |
760 | 536k | } else if (!need_more_input_data(state)) { |
761 | 22.9k | *eos = false; |
762 | 22.9k | } |
763 | 617k | } |
764 | 667k | return Status::OK(); |
765 | 667k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 147k | bool* eos) { | 738 | 147k | auto& local_state = get_local_state(state); | 739 | 147k | if (need_more_input_data(state)) { | 740 | 130k | local_state._child_block->clear_column_data( | 741 | 130k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 130k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 130k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 130k | *eos = local_state._child_eos; | 745 | 130k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 42.3k | return Status::OK(); | 747 | 42.3k | } | 748 | 87.9k | { | 749 | 87.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 87.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 87.9k | } | 752 | 87.9k | } | 753 | | | 754 | 105k | if (!need_more_input_data(state)) { | 755 | 105k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 105k | bool new_eos = false; | 757 | 105k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 105k | if (new_eos) { | 759 | 47.2k | *eos = true; | 760 | 57.9k | } else if (!need_more_input_data(state)) { | 761 | 10.1k | *eos = false; | 762 | 10.1k | } | 763 | 105k | } | 764 | 105k | return Status::OK(); | 765 | 105k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 4.07k | bool* eos) { | 738 | 4.07k | auto& local_state = get_local_state(state); | 739 | 4.07k | if (need_more_input_data(state)) { | 740 | 2.30k | local_state._child_block->clear_column_data( | 741 | 2.30k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 2.30k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 2.30k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 2.30k | *eos = local_state._child_eos; | 745 | 2.30k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 416 | return Status::OK(); | 747 | 416 | } | 748 | 1.88k | { | 749 | 1.88k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 1.88k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 1.88k | } | 752 | 1.88k | } | 753 | | | 754 | 3.66k | if (!need_more_input_data(state)) { | 755 | 3.66k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 3.66k | bool new_eos = false; | 757 | 3.66k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 3.66k | if (new_eos) { | 759 | 1.38k | *eos = true; | 760 | 2.27k | } else if (!need_more_input_data(state)) { | 761 | 1.78k | *eos = false; | 762 | 1.78k | } | 763 | 3.66k | } | 764 | 3.66k | return Status::OK(); | 765 | 3.66k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 4.99k | bool* eos) { | 738 | 4.99k | auto& local_state = get_local_state(state); | 739 | 4.99k | if (need_more_input_data(state)) { | 740 | 4.99k | local_state._child_block->clear_column_data( | 741 | 4.99k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 4.99k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 4.99k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 4.99k | *eos = local_state._child_eos; | 745 | 4.99k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 1.73k | return Status::OK(); | 747 | 1.73k | } | 748 | 3.26k | { | 749 | 3.26k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 3.26k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 3.26k | } | 752 | 3.26k | } | 753 | | | 754 | 3.26k | if (!need_more_input_data(state)) { | 755 | 3.26k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 3.26k | bool new_eos = false; | 757 | 3.26k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 3.26k | if (new_eos) { | 759 | 1.74k | *eos = true; | 760 | 1.74k | } else if (!need_more_input_data(state)) { | 761 | 0 | *eos = false; | 762 | 0 | } | 763 | 3.26k | } | 764 | 3.26k | return Status::OK(); | 765 | 3.26k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 37.3k | bool* eos) { | 738 | 37.3k | auto& local_state = get_local_state(state); | 739 | 37.3k | if (need_more_input_data(state)) { | 740 | 37.3k | local_state._child_block->clear_column_data( | 741 | 37.3k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 37.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 37.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 37.3k | *eos = local_state._child_eos; | 745 | 37.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 4.58k | return Status::OK(); | 747 | 4.58k | } | 748 | 32.8k | { | 749 | 32.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 32.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 32.8k | } | 752 | 32.8k | } | 753 | | | 754 | 32.7k | if (!need_more_input_data(state)) { | 755 | 13.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 13.5k | bool new_eos = false; | 757 | 13.5k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 13.5k | if (new_eos) { | 759 | 13.3k | *eos = true; | 760 | 13.3k | } else if (!need_more_input_data(state)) { | 761 | 5 | *eos = false; | 762 | 5 | } | 763 | 13.5k | } | 764 | 32.7k | return Status::OK(); | 765 | 32.7k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 507k | bool* eos) { | 738 | 507k | auto& local_state = get_local_state(state); | 739 | 508k | if (need_more_input_data(state)) { | 740 | 508k | local_state._child_block->clear_column_data( | 741 | 508k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 508k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 508k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 508k | *eos = local_state._child_eos; | 745 | 508k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 17.6k | return Status::OK(); | 747 | 17.6k | } | 748 | 491k | { | 749 | 491k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 491k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 491k | } | 752 | 491k | } | 753 | | | 754 | 490k | if (!need_more_input_data(state)) { | 755 | 460k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 460k | bool new_eos = false; | 757 | 460k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 460k | if (new_eos) { | 759 | 459k | *eos = true; | 760 | 459k | } else if (!need_more_input_data(state)) { | 761 | 0 | *eos = false; | 762 | 0 | } | 763 | 460k | } | 764 | 490k | return Status::OK(); | 765 | 490k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 29.6k | bool* eos) { | 738 | 29.6k | auto& local_state = get_local_state(state); | 739 | 29.6k | if (need_more_input_data(state)) { | 740 | 18.9k | local_state._child_block->clear_column_data( | 741 | 18.9k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 18.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 18.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 18.9k | *eos = local_state._child_eos; | 745 | 18.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 3.04k | return Status::OK(); | 747 | 3.04k | } | 748 | 15.8k | { | 749 | 15.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 15.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 15.8k | } | 752 | 15.8k | } | 753 | | | 754 | 26.6k | if (!need_more_input_data(state)) { | 755 | 26.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 26.1k | bool new_eos = false; | 757 | 26.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 26.1k | if (new_eos) { | 759 | 10.2k | *eos = true; | 760 | 15.8k | } else if (!need_more_input_data(state)) { | 761 | 10.7k | *eos = false; | 762 | 10.7k | } | 763 | 26.1k | } | 764 | 26.6k | return Status::OK(); | 765 | 26.6k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 5.89k | bool* eos) { | 738 | 5.89k | auto& local_state = get_local_state(state); | 739 | 5.89k | if (need_more_input_data(state)) { | 740 | 5.54k | local_state._child_block->clear_column_data( | 741 | 5.54k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 5.54k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 5.54k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 5.54k | *eos = local_state._child_eos; | 745 | 5.54k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 221 | return Status::OK(); | 747 | 221 | } | 748 | 5.32k | { | 749 | 5.32k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 5.32k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 5.32k | } | 752 | 5.32k | } | 753 | | | 754 | 5.67k | if (!need_more_input_data(state)) { | 755 | 5.67k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 5.67k | bool new_eos = false; | 757 | 5.67k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 5.67k | if (new_eos) { | 759 | 3.63k | *eos = true; | 760 | 3.63k | } else if (!need_more_input_data(state)) { | 761 | 366 | *eos = false; | 762 | 366 | } | 763 | 5.67k | } | 764 | 5.66k | return Status::OK(); | 765 | 5.66k | } |
|
766 | | |
767 | | template <typename Writer, typename Parent> |
768 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
769 | 66.6k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
770 | 66.6k | RETURN_IF_ERROR(Base::init(state, info)); |
771 | 66.6k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
772 | 66.6k | "AsyncWriterDependency", true); |
773 | 66.6k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
774 | 66.6k | _finish_dependency)); |
775 | | |
776 | 66.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
777 | 66.6k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
778 | 66.6k | return Status::OK(); |
779 | 66.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 516 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 516 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 516 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 516 | "AsyncWriterDependency", true); | 773 | 516 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 516 | _finish_dependency)); | 775 | | | 776 | 516 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 516 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 516 | return Status::OK(); | 779 | 516 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 86 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 86 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 86 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 86 | "AsyncWriterDependency", true); | 773 | 86 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 86 | _finish_dependency)); | 775 | | | 776 | 86 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 86 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 86 | return Status::OK(); | 779 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 46.8k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 46.8k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 46.8k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 46.8k | "AsyncWriterDependency", true); | 773 | 46.8k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 46.8k | _finish_dependency)); | 775 | | | 776 | 46.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 46.8k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 46.8k | return Status::OK(); | 779 | 46.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 9.52k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 9.52k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 9.52k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 9.52k | "AsyncWriterDependency", true); | 773 | 9.52k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 9.52k | _finish_dependency)); | 775 | | | 776 | 9.52k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 9.52k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 9.52k | return Status::OK(); | 779 | 9.52k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 5.17k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 5.17k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 5.17k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 5.17k | "AsyncWriterDependency", true); | 773 | 5.17k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 5.17k | _finish_dependency)); | 775 | | | 776 | 5.17k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 5.17k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 5.17k | return Status::OK(); | 779 | 5.17k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 3.40k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 3.40k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 3.40k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 3.40k | "AsyncWriterDependency", true); | 773 | 3.40k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 3.40k | _finish_dependency)); | 775 | | | 776 | 3.40k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 3.40k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 3.40k | return Status::OK(); | 779 | 3.40k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 32 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 32 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 32 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 32 | "AsyncWriterDependency", true); | 773 | 32 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 32 | _finish_dependency)); | 775 | | | 776 | 32 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 32 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 32 | return Status::OK(); | 779 | 32 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 192 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 192 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 192 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 192 | "AsyncWriterDependency", true); | 773 | 192 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 192 | _finish_dependency)); | 775 | | | 776 | 192 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 192 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 192 | return Status::OK(); | 779 | 192 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 640 | "AsyncWriterDependency", true); | 773 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 640 | _finish_dependency)); | 775 | | | 776 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 640 | return Status::OK(); | 779 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 156 | "AsyncWriterDependency", true); | 773 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 156 | _finish_dependency)); | 775 | | | 776 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 156 | return Status::OK(); | 779 | 156 | } |
|
780 | | |
781 | | template <typename Writer, typename Parent> |
782 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
783 | 67.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
784 | 67.0k | RETURN_IF_ERROR(Base::open(state)); |
785 | 67.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
786 | 579k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
787 | 512k | RETURN_IF_ERROR( |
788 | 512k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
789 | 512k | } |
790 | 67.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
791 | 67.0k | return Status::OK(); |
792 | 67.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 516 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 516 | RETURN_IF_ERROR(Base::open(state)); | 785 | 516 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 2.77k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 2.26k | RETURN_IF_ERROR( | 788 | 2.26k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 2.26k | } | 790 | 516 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 516 | return Status::OK(); | 792 | 516 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 86 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 86 | RETURN_IF_ERROR(Base::open(state)); | 785 | 86 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 402 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 316 | RETURN_IF_ERROR( | 788 | 316 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 316 | } | 790 | 86 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 86 | return Status::OK(); | 792 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 47.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 47.3k | RETURN_IF_ERROR(Base::open(state)); | 785 | 47.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 337k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 290k | RETURN_IF_ERROR( | 788 | 290k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 290k | } | 790 | 47.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 47.3k | return Status::OK(); | 792 | 47.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 9.47k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 9.47k | RETURN_IF_ERROR(Base::open(state)); | 785 | 9.47k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 58.0k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 48.6k | RETURN_IF_ERROR( | 788 | 48.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 48.6k | } | 790 | 9.47k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 9.47k | return Status::OK(); | 792 | 9.47k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 5.15k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 5.15k | RETURN_IF_ERROR(Base::open(state)); | 785 | 5.15k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 133k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 128k | RETURN_IF_ERROR( | 788 | 128k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 128k | } | 790 | 5.15k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 5.15k | return Status::OK(); | 792 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 3.40k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 3.40k | RETURN_IF_ERROR(Base::open(state)); | 785 | 3.40k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 41.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 37.8k | RETURN_IF_ERROR( | 788 | 37.8k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 37.8k | } | 790 | 3.40k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 3.40k | return Status::OK(); | 792 | 3.40k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 32 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 32 | RETURN_IF_ERROR(Base::open(state)); | 785 | 32 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 128 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 96 | RETURN_IF_ERROR( | 788 | 96 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 96 | } | 790 | 32 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 32 | return Status::OK(); | 792 | 32 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 192 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 192 | RETURN_IF_ERROR(Base::open(state)); | 785 | 192 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 576 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 384 | RETURN_IF_ERROR( | 788 | 384 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 384 | } | 790 | 192 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 192 | return Status::OK(); | 792 | 192 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 640 | RETURN_IF_ERROR(Base::open(state)); | 785 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 4.38k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 3.74k | RETURN_IF_ERROR( | 788 | 3.74k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 3.74k | } | 790 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 640 | return Status::OK(); | 792 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 156 | RETURN_IF_ERROR(Base::open(state)); | 785 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 630 | RETURN_IF_ERROR( | 788 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 630 | } | 790 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 156 | return Status::OK(); | 792 | 156 | } |
|
793 | | |
794 | | template <typename Writer, typename Parent> |
795 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
796 | 92.1k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
797 | 92.1k | return _writer->sink(block, eos); |
798 | 92.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 2.70k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 2.70k | return _writer->sink(block, eos); | 798 | 2.70k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 110 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 110 | return _writer->sink(block, eos); | 798 | 110 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 64.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 64.0k | return _writer->sink(block, eos); | 798 | 64.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 11.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 11.0k | return _writer->sink(block, eos); | 798 | 11.0k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 7.54k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 7.54k | return _writer->sink(block, eos); | 798 | 7.54k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 5.37k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 5.37k | return _writer->sink(block, eos); | 798 | 5.37k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 40 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 40 | return _writer->sink(block, eos); | 798 | 40 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 216 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 216 | return _writer->sink(block, eos); | 798 | 216 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 800 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 800 | return _writer->sink(block, eos); | 798 | 800 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 310 | return _writer->sink(block, eos); | 798 | 310 | } |
|
799 | | |
800 | | template <typename Writer, typename Parent> |
801 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
802 | 67.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
803 | 67.1k | if (_closed) { |
804 | 0 | return Status::OK(); |
805 | 0 | } |
806 | 67.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
807 | 67.1k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
808 | | // if the init failed, the _writer may be nullptr. so here need check |
809 | 67.2k | if (_writer) { |
810 | 67.2k | Status st = _writer->get_writer_status(); |
811 | 67.2k | if (exec_status.ok()) { |
812 | 67.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
813 | 67.0k | : Status::Cancelled("force close")); |
814 | 67.0k | } else { |
815 | 120 | _writer->force_close(exec_status); |
816 | 120 | } |
817 | | // If there is an error in process_block thread, then we should get the writer |
818 | | // status before call force_close. For example, the thread may failed in commit |
819 | | // transaction. |
820 | 67.2k | RETURN_IF_ERROR(st); |
821 | 67.2k | } |
822 | 67.0k | return Base::close(state, exec_status); |
823 | 67.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 505 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 505 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 505 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 505 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 505 | if (_writer) { | 810 | 505 | Status st = _writer->get_writer_status(); | 811 | 505 | if (exec_status.ok()) { | 812 | 505 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 505 | : Status::Cancelled("force close")); | 814 | 505 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 505 | RETURN_IF_ERROR(st); | 821 | 505 | } | 822 | 505 | return Base::close(state, exec_status); | 823 | 505 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 86 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 86 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 86 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 86 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 86 | if (_writer) { | 810 | 86 | Status st = _writer->get_writer_status(); | 811 | 86 | if (exec_status.ok()) { | 812 | 86 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 86 | : Status::Cancelled("force close")); | 814 | 86 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 86 | RETURN_IF_ERROR(st); | 821 | 86 | } | 822 | 78 | return Base::close(state, exec_status); | 823 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 47.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 47.4k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 47.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 47.4k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 47.4k | if (_writer) { | 810 | 47.4k | Status st = _writer->get_writer_status(); | 811 | 47.4k | if (exec_status.ok()) { | 812 | 47.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 47.4k | : Status::Cancelled("force close")); | 814 | 47.4k | } else { | 815 | 56 | _writer->force_close(exec_status); | 816 | 56 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 47.4k | RETURN_IF_ERROR(st); | 821 | 47.4k | } | 822 | 47.3k | return Base::close(state, exec_status); | 823 | 47.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 9.49k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 9.49k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 9.49k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 9.49k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 9.52k | if (_writer) { | 810 | 9.52k | Status st = _writer->get_writer_status(); | 811 | 9.52k | if (exec_status.ok()) { | 812 | 9.45k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 9.45k | : Status::Cancelled("force close")); | 814 | 9.45k | } else { | 815 | 64 | _writer->force_close(exec_status); | 816 | 64 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 9.52k | RETURN_IF_ERROR(st); | 821 | 9.52k | } | 822 | 9.49k | return Base::close(state, exec_status); | 823 | 9.49k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 5.16k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 5.16k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 5.16k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 5.16k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 5.17k | if (_writer) { | 810 | 5.17k | Status st = _writer->get_writer_status(); | 811 | 5.17k | if (exec_status.ok()) { | 812 | 5.17k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 5.17k | : Status::Cancelled("force close")); | 814 | 5.17k | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 5.17k | RETURN_IF_ERROR(st); | 821 | 5.17k | } | 822 | 5.16k | return Base::close(state, exec_status); | 823 | 5.16k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 3.40k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 3.40k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 3.40k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 3.40k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 3.40k | if (_writer) { | 810 | 3.40k | Status st = _writer->get_writer_status(); | 811 | 3.40k | if (exec_status.ok()) { | 812 | 3.40k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 3.40k | : Status::Cancelled("force close")); | 814 | 3.40k | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 3.40k | RETURN_IF_ERROR(st); | 821 | 3.40k | } | 822 | 3.40k | return Base::close(state, exec_status); | 823 | 3.40k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 32 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 32 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 32 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 32 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 32 | if (_writer) { | 810 | 32 | Status st = _writer->get_writer_status(); | 811 | 32 | if (exec_status.ok()) { | 812 | 32 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 32 | : Status::Cancelled("force close")); | 814 | 32 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 32 | RETURN_IF_ERROR(st); | 821 | 32 | } | 822 | 32 | return Base::close(state, exec_status); | 823 | 32 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 192 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 192 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 192 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 192 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 192 | if (_writer) { | 810 | 192 | Status st = _writer->get_writer_status(); | 811 | 192 | if (exec_status.ok()) { | 812 | 192 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 192 | : Status::Cancelled("force close")); | 814 | 192 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 192 | RETURN_IF_ERROR(st); | 821 | 192 | } | 822 | 192 | return Base::close(state, exec_status); | 823 | 192 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 638 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 638 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 638 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 638 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 640 | if (_writer) { | 810 | 640 | Status st = _writer->get_writer_status(); | 811 | 640 | if (exec_status.ok()) { | 812 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 640 | : Status::Cancelled("force close")); | 814 | 640 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 640 | RETURN_IF_ERROR(st); | 821 | 640 | } | 822 | 638 | return Base::close(state, exec_status); | 823 | 638 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 156 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 156 | if (_writer) { | 810 | 156 | Status st = _writer->get_writer_status(); | 811 | 156 | if (exec_status.ok()) { | 812 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 156 | : Status::Cancelled("force close")); | 814 | 156 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 156 | RETURN_IF_ERROR(st); | 821 | 156 | } | 822 | 156 | return Base::close(state, exec_status); | 823 | 156 | } |
|
824 | | |
825 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
826 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
827 | | DECLARE_OPERATOR(ResultSinkLocalState) |
828 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
829 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
830 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
831 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
832 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
833 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
834 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
835 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
836 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
837 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
838 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
839 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
840 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
841 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
842 | | DECLARE_OPERATOR(SortSinkLocalState) |
843 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
844 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
845 | | DECLARE_OPERATOR(AggSinkLocalState) |
846 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
847 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
848 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
849 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
850 | | DECLARE_OPERATOR(UnionSinkLocalState) |
851 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
852 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
853 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
854 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
855 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
856 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
857 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
858 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
859 | | DECLARE_OPERATOR(CacheSinkLocalState) |
860 | | DECLARE_OPERATOR(DictSinkLocalState) |
861 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
862 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
863 | | |
864 | | #undef DECLARE_OPERATOR |
865 | | |
866 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
867 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
868 | | DECLARE_OPERATOR(OlapScanLocalState) |
869 | | DECLARE_OPERATOR(GroupCommitLocalState) |
870 | | DECLARE_OPERATOR(JDBCScanLocalState) |
871 | | DECLARE_OPERATOR(FileScanLocalState) |
872 | | DECLARE_OPERATOR(AnalyticLocalState) |
873 | | DECLARE_OPERATOR(SortLocalState) |
874 | | DECLARE_OPERATOR(SpillSortLocalState) |
875 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
876 | | DECLARE_OPERATOR(AggLocalState) |
877 | | DECLARE_OPERATOR(BucketedAggLocalState) |
878 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
879 | | DECLARE_OPERATOR(TableFunctionLocalState) |
880 | | DECLARE_OPERATOR(ExchangeLocalState) |
881 | | DECLARE_OPERATOR(RepeatLocalState) |
882 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
883 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
884 | | DECLARE_OPERATOR(EmptySetLocalState) |
885 | | DECLARE_OPERATOR(UnionSourceLocalState) |
886 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
887 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
888 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
889 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
890 | | DECLARE_OPERATOR(DataGenLocalState) |
891 | | DECLARE_OPERATOR(SchemaScanLocalState) |
892 | | DECLARE_OPERATOR(MetaScanLocalState) |
893 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
894 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
895 | | DECLARE_OPERATOR(CacheSourceLocalState) |
896 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
897 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
898 | | |
899 | | #ifdef BE_TEST |
900 | | DECLARE_OPERATOR(MockLocalState) |
901 | | DECLARE_OPERATOR(MockScanLocalState) |
902 | | #endif |
903 | | #undef DECLARE_OPERATOR |
904 | | |
905 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
906 | | template class StreamingOperatorX<SelectLocalState>; |
907 | | |
908 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
909 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
910 | | template class StatefulOperatorX<RepeatLocalState>; |
911 | | template class StatefulOperatorX<MaterializationLocalState>; |
912 | | template class StatefulOperatorX<StreamingAggLocalState>; |
913 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
914 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
915 | | template class StatefulOperatorX<TableFunctionLocalState>; |
916 | | |
917 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
918 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
919 | | template class PipelineXSinkLocalState<SortSharedState>; |
920 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
921 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
922 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
923 | | template class PipelineXSinkLocalState<AggSharedState>; |
924 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
925 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
926 | | template class PipelineXSinkLocalState<FakeSharedState>; |
927 | | template class PipelineXSinkLocalState<UnionSharedState>; |
928 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
929 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
930 | | template class PipelineXSinkLocalState<SetSharedState>; |
931 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
932 | | template class PipelineXSinkLocalState<BasicSharedState>; |
933 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
934 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
935 | | |
936 | | template class PipelineXLocalState<HashJoinSharedState>; |
937 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
938 | | template class PipelineXLocalState<SortSharedState>; |
939 | | template class PipelineXLocalState<SpillSortSharedState>; |
940 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
941 | | template class PipelineXLocalState<AnalyticSharedState>; |
942 | | template class PipelineXLocalState<AggSharedState>; |
943 | | template class PipelineXLocalState<BucketedAggSharedState>; |
944 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
945 | | template class PipelineXLocalState<FakeSharedState>; |
946 | | template class PipelineXLocalState<UnionSharedState>; |
947 | | template class PipelineXLocalState<DataQueueSharedState>; |
948 | | template class PipelineXLocalState<MultiCastSharedState>; |
949 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
950 | | template class PipelineXLocalState<SetSharedState>; |
951 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
952 | | template class PipelineXLocalState<BasicSharedState>; |
953 | | template class PipelineXLocalState<RecCTESharedState>; |
954 | | |
955 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
956 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
957 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
958 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
959 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
960 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
962 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
963 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
964 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
965 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
966 | | |
967 | | #ifdef BE_TEST |
968 | | template class OperatorX<DummyOperatorLocalState>; |
969 | | template class DataSinkOperatorX<DummySinkLocalState>; |
970 | | #endif |
971 | | |
972 | | } // namespace doris |