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