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.78M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
122 | 1.78M | if (_parent->nereids_id() == -1) { |
123 | 931k | return fmt::format("(id={})", _parent->node_id()); |
124 | 931k | } else { |
125 | 853k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
126 | 853k | } |
127 | 1.78M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 72.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 72.9k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 72.9k | } else { | 125 | 72.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 72.9k | } | 127 | 72.9k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 1 | if (_parent->nereids_id() == -1) { | 123 | 1 | return fmt::format("(id={})", _parent->node_id()); | 124 | 1 | } else { | 125 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 0 | } | 127 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 236k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 236k | if (_parent->nereids_id() == -1) { | 123 | 12 | return fmt::format("(id={})", _parent->node_id()); | 124 | 236k | } else { | 125 | 236k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 236k | } | 127 | 236k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_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_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 5.29k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.29k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.29k | } else { | 125 | 5.29k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 5.29k | } | 127 | 5.29k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 12.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 12.4k | if (_parent->nereids_id() == -1) { | 123 | 16 | return fmt::format("(id={})", _parent->node_id()); | 124 | 12.4k | } else { | 125 | 12.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 12.4k | } | 127 | 12.4k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 99.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 99.4k | if (_parent->nereids_id() == -1) { | 123 | 29 | return fmt::format("(id={})", _parent->node_id()); | 124 | 99.3k | } else { | 125 | 99.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 99.3k | } | 127 | 99.4k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 46.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 46.2k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 46.2k | } else { | 125 | 46.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 46.2k | } | 127 | 46.2k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 37 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 37 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 37 | } else { | 125 | 37 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 37 | } | 127 | 37 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 601k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 601k | if (_parent->nereids_id() == -1) { | 123 | 282k | return fmt::format("(id={})", _parent->node_id()); | 124 | 318k | } else { | 125 | 318k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 318k | } | 127 | 601k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 56.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 56.2k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 56.2k | } else { | 125 | 56.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 56.2k | } | 127 | 56.2k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 26 | if (_parent->nereids_id() == -1) { | 123 | 26 | return fmt::format("(id={})", _parent->node_id()); | 124 | 26 | } else { | 125 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 0 | } | 127 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 5.03k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.05k | if (_parent->nereids_id() == -1) { | 123 | 5.05k | 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.03k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 425 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 425 | if (_parent->nereids_id() == -1) { | 123 | 102 | return fmt::format("(id={})", _parent->node_id()); | 124 | 323 | } else { | 125 | 323 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 323 | } | 127 | 425 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 5.07k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.07k | if (_parent->nereids_id() == -1) { | 123 | 13 | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.06k | } else { | 125 | 5.06k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 5.06k | } | 127 | 5.07k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 643k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 643k | if (_parent->nereids_id() == -1) { | 123 | 643k | return fmt::format("(id={})", _parent->node_id()); | 124 | 643k | } else { | 125 | 280 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 280 | } | 127 | 643k | } |
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.20M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
131 | 1.20M | if (_parent->nereids_id() == -1) { |
132 | 663k | return fmt::format("(id={})", _parent->node_id()); |
133 | 663k | } else { |
134 | 538k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
135 | 538k | } |
136 | 1.20M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 121k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 121k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 121k | } else { | 134 | 121k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 121k | } | 136 | 121k | } |
_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 | 240k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 240k | if (_parent->nereids_id() == -1) { | 132 | 9 | return fmt::format("(id={})", _parent->node_id()); | 133 | 240k | } else { | 134 | 240k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 240k | } | 136 | 240k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 38 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 38 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 38 | } else { | 134 | 38 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 38 | } | 136 | 38 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 5.32k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 5.32k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 5.32k | } else { | 134 | 5.32k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 5.32k | } | 136 | 5.32k | } |
_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 | 100k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 100k | if (_parent->nereids_id() == -1) { | 132 | 29 | return fmt::format("(id={})", _parent->node_id()); | 133 | 100k | } else { | 134 | 100k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 100k | } | 136 | 100k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 46.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 46.1k | if (_parent->nereids_id() == -1) { | 132 | 4 | return fmt::format("(id={})", _parent->node_id()); | 133 | 46.1k | } else { | 134 | 46.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 46.1k | } | 136 | 46.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 47 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 47 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 47 | } else { | 134 | 47 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 47 | } | 136 | 47 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 6 | if (_parent->nereids_id() == -1) { | 132 | 6 | return fmt::format("(id={})", _parent->node_id()); | 133 | 6 | } else { | 134 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 0 | } | 136 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 11.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 11.9k | if (_parent->nereids_id() == -1) { | 132 | 3 | return fmt::format("(id={})", _parent->node_id()); | 133 | 11.9k | } else { | 134 | 11.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 11.9k | } | 136 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 423 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 423 | if (_parent->nereids_id() == -1) { | 132 | 102 | return fmt::format("(id={})", _parent->node_id()); | 133 | 321 | } else { | 134 | 321 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 321 | } | 136 | 423 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 12.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 12.7k | if (_parent->nereids_id() == -1) { | 132 | 12.7k | 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.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 248k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 248k | if (_parent->nereids_id() == -1) { | 132 | 248k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 248k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 402k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 402k | if (_parent->nereids_id() == -1) { | 132 | 401k | return fmt::format("(id={})", _parent->node_id()); | 133 | 401k | } else { | 134 | 599 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 599 | } | 136 | 402k | } |
_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 | 33.3k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
140 | 33.3k | if (_terminated) { |
141 | 0 | return Status::OK(); |
142 | 0 | } |
143 | 33.3k | _terminated = true; |
144 | 33.3k | return Status::OK(); |
145 | 33.3k | } _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 | 3.94k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 3.94k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 3.94k | _terminated = true; | 144 | 3.94k | return Status::OK(); | 145 | 3.94k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2 | _terminated = true; | 144 | 2 | return Status::OK(); | 145 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_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_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2.32k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.32k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.32k | _terminated = true; | 144 | 2.32k | return Status::OK(); | 145 | 2.32k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 1.43k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 1.43k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 1.43k | _terminated = true; | 144 | 1.43k | return Status::OK(); | 145 | 1.43k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 816 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 816 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 816 | _terminated = true; | 144 | 816 | return Status::OK(); | 145 | 816 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 192 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 192 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 192 | _terminated = true; | 144 | 192 | return Status::OK(); | 145 | 192 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 3 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 3 | _terminated = true; | 144 | 3 | return Status::OK(); | 145 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 76 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 76 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 76 | _terminated = true; | 144 | 76 | return Status::OK(); | 145 | 76 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 15 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 15 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 15 | _terminated = true; | 144 | 15 | return Status::OK(); | 145 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 292 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 292 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 292 | _terminated = true; | 144 | 292 | return Status::OK(); | 145 | 292 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_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_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 125 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 125 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 125 | _terminated = true; | 144 | 125 | return Status::OK(); | 145 | 125 | } |
|
146 | | |
147 | 314k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
148 | 314k | return _child && _child->is_serial_operator() && !is_source() |
149 | 314k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
150 | 314k | : DataDistribution(TLocalPartitionType::NOOP); |
151 | 314k | } |
152 | | |
153 | 24.4k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
154 | 24.4k | if (!_child) { |
155 | 23.8k | return false; |
156 | 23.8k | } |
157 | 653 | if (_child->is_serial_operator()) { |
158 | 41 | return true; |
159 | 41 | } |
160 | 612 | const auto child_distribution = _child->required_data_distribution(state); |
161 | 612 | return child_distribution.need_local_exchange() && |
162 | 612 | !is_shuffled_exchange(child_distribution.distribution_type); |
163 | 653 | } |
164 | | |
165 | | template <typename SharedStateArg> |
166 | 16.2k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
167 | 16.2k | fmt::memory_buffer debug_string_buffer; |
168 | 16.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
169 | 16.2k | return fmt::to_string(debug_string_buffer); |
170 | 16.2k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 48 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 48 | fmt::memory_buffer debug_string_buffer; | 168 | 48 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 48 | return fmt::to_string(debug_string_buffer); | 170 | 48 | } |
_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 | 48 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 48 | fmt::memory_buffer debug_string_buffer; | 168 | 48 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 48 | return fmt::to_string(debug_string_buffer); | 170 | 48 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 152 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 152 | fmt::memory_buffer debug_string_buffer; | 168 | 152 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 152 | return fmt::to_string(debug_string_buffer); | 170 | 152 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 15.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 15.7k | fmt::memory_buffer debug_string_buffer; | 168 | 15.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 15.7k | return fmt::to_string(debug_string_buffer); | 170 | 15.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 | 192 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 192 | fmt::memory_buffer debug_string_buffer; | 168 | 192 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 192 | return fmt::to_string(debug_string_buffer); | 170 | 192 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
171 | | |
172 | | template <typename SharedStateArg> |
173 | 16.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
174 | 16.0k | fmt::memory_buffer debug_string_buffer; |
175 | 16.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
176 | 16.0k | return fmt::to_string(debug_string_buffer); |
177 | 16.0k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 173 | 48 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 48 | fmt::memory_buffer debug_string_buffer; | 175 | 48 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 48 | return fmt::to_string(debug_string_buffer); | 177 | 48 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 173 | 152 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 152 | fmt::memory_buffer debug_string_buffer; | 175 | 152 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 152 | return fmt::to_string(debug_string_buffer); | 177 | 152 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 173 | 192 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 192 | fmt::memory_buffer debug_string_buffer; | 175 | 192 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 192 | return fmt::to_string(debug_string_buffer); | 177 | 192 | } |
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 | 112 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 112 | fmt::memory_buffer debug_string_buffer; | 175 | 112 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 112 | return fmt::to_string(debug_string_buffer); | 177 | 112 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 173 | 15.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 15.5k | fmt::memory_buffer debug_string_buffer; | 175 | 15.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 15.5k | return fmt::to_string(debug_string_buffer); | 177 | 15.5k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
178 | | |
179 | 16.2k | std::string OperatorXBase::debug_string(int indentation_level) const { |
180 | 16.2k | fmt::memory_buffer debug_string_buffer; |
181 | 16.2k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
182 | 16.2k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
183 | 16.2k | _is_serial_operator); |
184 | 16.2k | return fmt::to_string(debug_string_buffer); |
185 | 16.2k | } |
186 | | |
187 | 16.2k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
188 | 16.2k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
189 | 16.2k | } |
190 | | |
191 | 694k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
192 | 694k | std::string node_name = print_plan_node_type(tnode.node_type); |
193 | 694k | _nereids_id = tnode.nereids_id; |
194 | 694k | 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 | 694k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
208 | 694k | _op_name = substr + "_OPERATOR"; |
209 | | |
210 | 694k | if (tnode.__isset.vconjunct) { |
211 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
212 | 694k | } else if (tnode.__isset.conjuncts) { |
213 | 281k | for (const auto& conjunct : tnode.conjuncts) { |
214 | 281k | VExprContextSPtr context; |
215 | 281k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
216 | 281k | _conjuncts.emplace_back(context); |
217 | 281k | } |
218 | 104k | } |
219 | | |
220 | | // create the projections expr |
221 | 694k | if (tnode.__isset.projections) { |
222 | 274k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
223 | 274k | } |
224 | 694k | if (!tnode.intermediate_projections_list.empty()) { |
225 | 6.75k | DCHECK(has_projection()) << "no final projections"; |
226 | 6.75k | _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.75k | } |
233 | 694k | return Status::OK(); |
234 | 694k | } |
235 | | |
236 | 721k | Status OperatorXBase::prepare(RuntimeState* state) { |
237 | 721k | for (auto& conjunct : _conjuncts) { |
238 | 281k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
239 | 281k | } |
240 | 721k | if (state->enable_adjust_conjunct_order_by_cost()) { |
241 | 670k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
242 | 344k | return a->execute_cost() < b->execute_cost(); |
243 | 344k | }); |
244 | 670k | }; |
245 | | |
246 | 721k | if (has_projection()) { |
247 | 274k | auto& projection = *_projection; |
248 | 286k | 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 | 274k | const auto& final_projection_input_row_desc = |
256 | 274k | projection.intermediate_output_row_descriptors.empty() |
257 | 274k | ? operator_row_desc_before_projection() |
258 | 274k | : projection.intermediate_output_row_descriptors.back(); |
259 | 274k | RETURN_IF_ERROR( |
260 | 274k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
261 | 274k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
262 | 274k | projection.output_row_descriptor)); |
263 | 274k | } |
264 | | |
265 | 721k | for (auto& conjunct : _conjuncts) { |
266 | 281k | RETURN_IF_ERROR(conjunct->open(state)); |
267 | 281k | } |
268 | 721k | if (has_projection()) { |
269 | 274k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
270 | 274k | for (auto& projections : _projection->intermediate_projections) { |
271 | 12.1k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
272 | 12.1k | } |
273 | 274k | } |
274 | 720k | if (_child && !is_source()) { |
275 | 98.5k | RETURN_IF_ERROR(_child->prepare(state)); |
276 | 98.5k | } |
277 | | |
278 | 720k | if (VExpr::contains_blockable_function(_conjuncts) || |
279 | 720k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
280 | 0 | _blockable = true; |
281 | 0 | } |
282 | | |
283 | 720k | return Status::OK(); |
284 | 720k | } |
285 | | |
286 | 9.86k | Status OperatorXBase::terminate(RuntimeState* state) { |
287 | 9.86k | if (_child && !is_source()) { |
288 | 573 | RETURN_IF_ERROR(_child->terminate(state)); |
289 | 573 | } |
290 | 9.86k | auto result = state->get_local_state_result(operator_id()); |
291 | 9.86k | if (!result) { |
292 | 0 | return result.error(); |
293 | 0 | } |
294 | 9.86k | return result.value()->terminate(state); |
295 | 9.86k | } |
296 | | |
297 | 4.84M | Status OperatorXBase::close(RuntimeState* state) { |
298 | 4.84M | if (_child && !is_source()) { |
299 | 771k | RETURN_IF_ERROR(_child->close(state)); |
300 | 771k | } |
301 | 4.84M | auto result = state->get_local_state_result(operator_id()); |
302 | 4.84M | if (!result) { |
303 | 0 | return result.error(); |
304 | 0 | } |
305 | 4.84M | return result.value()->close(state); |
306 | 4.84M | } |
307 | | |
308 | 295k | void PipelineXLocalStateBase::clear_origin_block() { |
309 | 295k | _origin_block.clear_column_data(_parent->operator_row_desc_before_projection().num_slots()); |
310 | 295k | } |
311 | | |
312 | 573k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 573k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 573k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 573k | return Status::OK(); |
317 | 573k | } |
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 | 295k | Block* output_block) const { |
326 | 295k | auto* local_state = state->get_local_state(operator_id()); |
327 | 295k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 295k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 295k | const size_t rows = origin_block->rows(); |
330 | 295k | if (rows == 0) { |
331 | 157k | return Status::OK(); |
332 | 157k | } |
333 | 138k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 138k | { |
336 | 138k | Block input_block = *origin_block; |
337 | | |
338 | 138k | ColumnsWithTypeAndName new_columns; |
339 | 138k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 5.26k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 5.26k | new_columns.resize(projections.size()); |
345 | 125k | for (int i = 0; i < projections.size(); i++) { |
346 | 120k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 120k | 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 | 120k | } |
355 | 5.25k | Block tmp_block {new_columns}; |
356 | 5.25k | input_block.swap(tmp_block); |
357 | 5.25k | } |
358 | | |
359 | 138k | 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 | 138k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 138k | output_block, _projection->output_row_descriptor); |
368 | 138k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 138k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 138k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 791k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 653k | ColumnPtr column_ptr; |
374 | 653k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 653k | 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 | 653k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 653k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 653k | if (column_ptr->is_exclusive()) { |
386 | 239k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 414k | } else { |
388 | 414k | shared_columns[i] = std::move(column_ptr); |
389 | 414k | } |
390 | 653k | } |
391 | | |
392 | 138k | scoped_mutable_block.restore(); |
393 | 792k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 654k | if (shared_columns[i]) { |
395 | 414k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 414k | } |
397 | 654k | } |
398 | 138k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 138k | local_state->_parent->operator_row_desc_before_projection().num_slots()); |
402 | 138k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 138k | return Status::OK(); |
405 | 138k | } |
406 | | |
407 | 4.00M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.00M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.00M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.00M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.00M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.00M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.00M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.00M | return Status::OK(); |
415 | 4.00M | } |
416 | 4.00M | } |
417 | 4.00M | }); |
418 | | |
419 | 4.00M | Status status; |
420 | 4.00M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.00M | Defer defer([&]() { |
422 | 4.00M | if (status.ok()) { |
423 | 4.00M | local_state->update_output_block_counters(*block); |
424 | 4.00M | } |
425 | 4.00M | }); |
426 | 4.00M | if (has_projection()) { |
427 | 295k | local_state->clear_origin_block(); |
428 | 295k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 295k | if (UNLIKELY(!status.ok())) { |
430 | 40 | return status; |
431 | 40 | } |
432 | 295k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 295k | return status; |
434 | 295k | } |
435 | 3.71M | status = get_block(state, block, eos); |
436 | 3.71M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.71M | return status; |
438 | 3.71M | } |
439 | | |
440 | 2.64M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.64M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.79k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.79k | *eos = true; |
444 | 9.79k | } |
445 | | |
446 | 2.64M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.64M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.64M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.64M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.64M | if (op_name == arg_op_name) { |
452 | 2.64M | *eos = true; |
453 | 2.64M | } |
454 | 2.64M | }); |
455 | | |
456 | 2.64M | if (auto rows = block->rows()) { |
457 | 762k | _num_rows_returned += rows; |
458 | 762k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 762k | } |
460 | 2.64M | } |
461 | | |
462 | 33.2k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 33.2k | auto result = state->get_sink_local_state_result(); |
464 | 33.2k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 33.2k | return result.value()->terminate(state); |
468 | 33.2k | } |
469 | | |
470 | 16.0k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 16.0k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 16.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 16.0k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 16.0k | return fmt::to_string(debug_string_buffer); |
476 | 16.0k | } |
477 | | |
478 | 16.0k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 16.0k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 16.0k | } |
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 | 306k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 306k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 306k | _nereids_id = tnode.nereids_id; |
496 | 306k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 306k | _name = substr + "_SINK_OPERATOR"; |
498 | 306k | return Status::OK(); |
499 | 306k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.74M | LocalSinkStateInfo& info) { |
504 | 1.74M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.74M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.74M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.74M | return Status::OK(); |
508 | 1.74M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 121k | LocalSinkStateInfo& info) { | 504 | 121k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 121k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 121k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 121k | return Status::OK(); | 508 | 121k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 353k | LocalSinkStateInfo& info) { | 504 | 353k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 353k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 353k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 353k | return Status::OK(); | 508 | 353k | } |
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 | 375 | LocalSinkStateInfo& info) { | 504 | 375 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 375 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 375 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 375 | return Status::OK(); | 508 | 375 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 50.3k | LocalSinkStateInfo& info) { | 504 | 50.3k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 50.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 50.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 50.3k | return Status::OK(); | 508 | 50.3k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 20 | LocalSinkStateInfo& info) { | 504 | 20 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 20 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 20 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 20 | return Status::OK(); | 508 | 20 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _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 | 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_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 241k | LocalSinkStateInfo& info) { | 504 | 241k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 241k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 241k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 241k | return Status::OK(); | 508 | 241k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 38 | LocalSinkStateInfo& info) { | 504 | 38 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 38 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 38 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 38 | return Status::OK(); | 508 | 38 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 249k | LocalSinkStateInfo& info) { | 504 | 249k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 249k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 249k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 249k | return Status::OK(); | 508 | 249k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 100k | LocalSinkStateInfo& info) { | 504 | 100k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 100k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 100k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 100k | return Status::OK(); | 508 | 100k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 46.1k | LocalSinkStateInfo& info) { | 504 | 46.1k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 46.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 46.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 46.1k | return Status::OK(); | 508 | 46.1k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 47 | LocalSinkStateInfo& info) { | 504 | 47 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 47 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 47 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 47 | return Status::OK(); | 508 | 47 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 534k | LocalSinkStateInfo& info) { | 504 | 534k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 534k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 534k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 534k | return Status::OK(); | 508 | 534k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 5.32k | LocalSinkStateInfo& info) { | 504 | 5.32k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 5.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 5.32k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 5.32k | return Status::OK(); | 508 | 5.32k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 11.9k | LocalSinkStateInfo& info) { | 504 | 11.9k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 11.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 11.9k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 11.9k | return Status::OK(); | 508 | 11.9k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.04k | LocalSinkStateInfo& info) { | 504 | 2.04k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.04k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.04k | return Status::OK(); | 508 | 2.04k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 322 | LocalSinkStateInfo& info) { | 504 | 322 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 322 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 322 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 322 | return Status::OK(); | 508 | 322 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.85k | LocalSinkStateInfo& info) { | 504 | 4.85k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.85k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.85k | return Status::OK(); | 508 | 4.85k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.63k | LocalSinkStateInfo& info) { | 504 | 2.63k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.63k | return Status::OK(); | 508 | 2.63k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.63k | LocalSinkStateInfo& info) { | 504 | 2.63k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.63k | return Status::OK(); | 508 | 2.63k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.54k | LocalSinkStateInfo& info) { | 504 | 2.54k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.54k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.54k | return Status::OK(); | 508 | 2.54k | } |
_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 | 560 | LocalSinkStateInfo& info) { | 504 | 560 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 560 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 560 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 560 | return Status::OK(); | 508 | 560 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 106 | LocalSinkStateInfo& info) { | 504 | 106 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 106 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 106 | return Status::OK(); | 508 | 106 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.41M | 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.41M | } else { |
519 | 1.41M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.41M | ss->id = operator_id(); |
521 | 1.41M | for (auto& dest : dests_id()) { |
522 | 1.40M | ss->related_op_ids.insert(dest); |
523 | 1.40M | } |
524 | 1.41M | return ss; |
525 | 1.41M | } |
526 | 1.41M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 109k | 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 | 109k | } else { | 519 | 109k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 109k | ss->id = operator_id(); | 521 | 109k | for (auto& dest : dests_id()) { | 522 | 109k | ss->related_op_ids.insert(dest); | 523 | 109k | } | 524 | 109k | return ss; | 525 | 109k | } | 526 | 109k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 353k | 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 | 353k | } else { | 519 | 353k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 353k | ss->id = operator_id(); | 521 | 353k | for (auto& dest : dests_id()) { | 522 | 351k | ss->related_op_ids.insert(dest); | 523 | 351k | } | 524 | 353k | return ss; | 525 | 353k | } | 526 | 353k | } |
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 | 375 | 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 | 375 | } else { | 519 | 375 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 375 | ss->id = operator_id(); | 521 | 375 | for (auto& dest : dests_id()) { | 522 | 375 | ss->related_op_ids.insert(dest); | 523 | 375 | } | 524 | 375 | return ss; | 525 | 375 | } | 526 | 375 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 50.4k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 50.4k | } else { | 519 | 50.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 50.4k | ss->id = operator_id(); | 521 | 50.4k | for (auto& dest : dests_id()) { | 522 | 49.8k | ss->related_op_ids.insert(dest); | 523 | 49.8k | } | 524 | 50.4k | return ss; | 525 | 50.4k | } | 526 | 50.4k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 20 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 20 | } else { | 519 | 20 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 20 | ss->id = operator_id(); | 521 | 20 | for (auto& dest : dests_id()) { | 522 | 20 | ss->related_op_ids.insert(dest); | 523 | 20 | } | 524 | 20 | return ss; | 525 | 20 | } | 526 | 20 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv _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 | 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_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 242k | 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 | 242k | } else { | 519 | 242k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 242k | ss->id = operator_id(); | 521 | 242k | for (auto& dest : dests_id()) { | 522 | 242k | ss->related_op_ids.insert(dest); | 523 | 242k | } | 524 | 242k | return ss; | 525 | 242k | } | 526 | 242k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 40 | 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 | 40 | } else { | 519 | 40 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 40 | ss->id = operator_id(); | 521 | 40 | for (auto& dest : dests_id()) { | 522 | 40 | ss->related_op_ids.insert(dest); | 523 | 40 | } | 524 | 40 | return ss; | 525 | 40 | } | 526 | 40 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 100k | 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 | 100k | } else { | 519 | 100k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 100k | ss->id = operator_id(); | 521 | 100k | for (auto& dest : dests_id()) { | 522 | 100k | ss->related_op_ids.insert(dest); | 523 | 100k | } | 524 | 100k | return ss; | 525 | 100k | } | 526 | 100k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 46 | 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 | 46 | } else { | 519 | 46 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 46 | ss->id = operator_id(); | 521 | 46 | for (auto& dest : dests_id()) { | 522 | 46 | ss->related_op_ids.insert(dest); | 523 | 46 | } | 524 | 46 | return ss; | 525 | 46 | } | 526 | 46 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 534k | 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 | 534k | } else { | 519 | 534k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 534k | ss->id = operator_id(); | 521 | 534k | for (auto& dest : dests_id()) { | 522 | 524k | ss->related_op_ids.insert(dest); | 523 | 524k | } | 524 | 534k | return ss; | 525 | 534k | } | 526 | 534k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 5.33k | 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.33k | } else { | 519 | 5.33k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 5.33k | ss->id = operator_id(); | 521 | 5.33k | for (auto& dest : dests_id()) { | 522 | 5.32k | ss->related_op_ids.insert(dest); | 523 | 5.32k | } | 524 | 5.33k | return ss; | 525 | 5.33k | } | 526 | 5.33k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 424 | 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 | 424 | } else { | 519 | 424 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 424 | ss->id = operator_id(); | 521 | 424 | for (auto& dest : dests_id()) { | 522 | 423 | ss->related_op_ids.insert(dest); | 523 | 423 | } | 524 | 424 | return ss; | 525 | 424 | } | 526 | 424 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.63k | 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.63k | } else { | 519 | 2.63k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.63k | ss->id = operator_id(); | 521 | 2.63k | for (auto& dest : dests_id()) { | 522 | 2.63k | ss->related_op_ids.insert(dest); | 523 | 2.63k | } | 524 | 2.63k | return ss; | 525 | 2.63k | } | 526 | 2.63k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.53k | 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.53k | } else { | 519 | 2.53k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.53k | ss->id = operator_id(); | 521 | 2.53k | for (auto& dest : dests_id()) { | 522 | 2.53k | ss->related_op_ids.insert(dest); | 523 | 2.53k | } | 524 | 2.53k | return ss; | 525 | 2.53k | } | 526 | 2.53k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 565 | 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 | 565 | } else { | 519 | 565 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 565 | ss->id = operator_id(); | 521 | 565 | for (auto& dest : dests_id()) { | 522 | 557 | ss->related_op_ids.insert(dest); | 523 | 557 | } | 524 | 565 | return ss; | 525 | 565 | } | 526 | 565 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 106 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 106 | } else { | 519 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 106 | ss->id = operator_id(); | 521 | 106 | for (auto& dest : dests_id()) { | 522 | 106 | ss->related_op_ids.insert(dest); | 523 | 106 | } | 524 | 106 | return ss; | 525 | 106 | } | 526 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.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 | 73.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 73.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 73.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 73.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 73.4k | return Status::OK(); | 534 | 73.4k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 249k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 249k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 249k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 249k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 249k | return Status::OK(); | 534 | 249k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 150 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 150 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 150 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 150 | return Status::OK(); | 534 | 150 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.28k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.28k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.28k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.28k | return Status::OK(); | 534 | 3.28k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 12.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 12.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 12.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 12.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 12.6k | return Status::OK(); | 534 | 12.6k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 11.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 11.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 11.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 11.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 11.9k | return Status::OK(); | 534 | 11.9k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 31 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 31 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 31 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 31 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 31 | return Status::OK(); | 534 | 31 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 229k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 229k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 229k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 229k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 229k | return Status::OK(); | 534 | 229k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 100k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 100k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 100k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 100k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 100k | return Status::OK(); | 534 | 100k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 46.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 46.3k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 46.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 46.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 46.3k | return Status::OK(); | 534 | 46.3k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 37 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 37 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 37 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 37 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 37 | return Status::OK(); | 534 | 37 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.17k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.17k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.17k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.17k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.17k | return Status::OK(); | 534 | 5.17k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 284k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 284k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 284k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 284k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 284k | return Status::OK(); | 534 | 284k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.27k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.27k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.27k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.27k | return Status::OK(); | 534 | 1.27k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.31k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.31k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.31k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.31k | return Status::OK(); | 534 | 5.31k | } |
_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 | 56.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 56.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 56.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 56.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 56.4k | return Status::OK(); | 534 | 56.4k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.05k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.05k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.05k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.05k | return Status::OK(); | 534 | 5.05k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 320 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 320 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 320 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 320 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 320 | return Status::OK(); | 534 | 320 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.62k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.62k | return Status::OK(); | 534 | 2.62k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.52k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.52k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.52k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.52k | return Status::OK(); | 534 | 2.52k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 577 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 577 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 577 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 577 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 577 | return Status::OK(); | 534 | 577 | } |
_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.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.6k | return Status::OK(); | 534 | 10.6k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 652k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 652k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 652k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 652k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 652k | return Status::OK(); | 534 | 652k | } |
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 | 806 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 806 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 806 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 806 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 806 | return Status::OK(); | 534 | 806 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 838 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 838 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 838 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 838 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 838 | return Status::OK(); | 534 | 838 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.58k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.58k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.58k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.58k | return Status::OK(); | 534 | 6.58k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 288k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 288k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 288k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 288k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 288k | return Status::OK(); | 534 | 288k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.73M | : _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.05M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.05M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.05M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.05M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.05M | _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.05M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.05M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.05M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.05M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.05M | if constexpr (!is_fake_shared) { |
560 | 1.20M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 705k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 705k | .first.get() |
563 | 705k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 705k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 705k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 705k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 705k | } else if (info.shared_state) { |
569 | 426k | 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 | 426k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 426k | _dependency = _shared_state->create_source_dependency( |
576 | 426k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 426k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 426k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 426k | } else { |
580 | 70.2k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 7.48k | DCHECK(false); |
582 | 7.48k | } |
583 | 70.2k | } |
584 | 1.20M | } |
585 | | |
586 | 2.05M | 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.05M | _rows_returned_counter = |
591 | 2.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.05M | _blocks_returned_counter = |
593 | 2.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.05M | _output_block_bytes_counter = |
595 | 2.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.05M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.05M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.05M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.05M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.05M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.05M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.05M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.05M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.05M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.05M | _memory_used_counter = |
606 | 2.05M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.05M | _common_profile->add_info_string("IsColocate", |
608 | 2.05M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.05M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.05M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.05M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.05M | return Status::OK(); |
613 | 2.05M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 73.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 73.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 73.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 73.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 73.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 | 73.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 73.6k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 73.6k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 73.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 73.6k | if constexpr (!is_fake_shared) { | 560 | 73.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 12.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 12.2k | .first.get() | 563 | 12.2k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 12.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 12.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 12.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 61.4k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 60.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 60.3k | _dependency = _shared_state->create_source_dependency( | 576 | 60.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 60.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 60.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 60.3k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.09k | } | 584 | 73.6k | } | 585 | | | 586 | 73.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 | 73.6k | _rows_returned_counter = | 591 | 73.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 73.6k | _blocks_returned_counter = | 593 | 73.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 73.6k | _output_block_bytes_counter = | 595 | 73.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 73.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 73.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 73.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 73.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 73.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 73.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 73.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 73.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 73.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 73.6k | _memory_used_counter = | 606 | 73.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 73.6k | _common_profile->add_info_string("IsColocate", | 608 | 73.6k | std::to_string(_parent->is_colocated_operator())); | 609 | 73.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 73.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 73.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 73.6k | return Status::OK(); | 613 | 73.6k | } |
_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 | 241k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 241k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 241k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 241k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 241k | _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 | 241k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 241k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 241k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 241k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 241k | if constexpr (!is_fake_shared) { | 560 | 241k | 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 | 241k | } 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 | 233k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 233k | _dependency = _shared_state->create_source_dependency( | 576 | 233k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 233k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 233k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 233k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 7.53k | } | 584 | 241k | } | 585 | | | 586 | 241k | 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 | 241k | _rows_returned_counter = | 591 | 241k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 241k | _blocks_returned_counter = | 593 | 241k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 241k | _output_block_bytes_counter = | 595 | 241k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 241k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 241k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 241k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 241k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 241k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 241k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 241k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 241k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 241k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 241k | _memory_used_counter = | 606 | 241k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 241k | _common_profile->add_info_string("IsColocate", | 608 | 241k | std::to_string(_parent->is_colocated_operator())); | 609 | 241k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 241k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 241k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 241k | return Status::OK(); | 613 | 241k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 31 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 31 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 31 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 31 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 31 | _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 | 31 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 31 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 31 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 31 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 31 | if constexpr (!is_fake_shared) { | 560 | 31 | 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 | 31 | } 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 | 31 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 31 | _dependency = _shared_state->create_source_dependency( | 576 | 31 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 31 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 31 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 31 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 31 | } | 585 | | | 586 | 31 | 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 | 31 | _rows_returned_counter = | 591 | 31 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 31 | _blocks_returned_counter = | 593 | 31 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 31 | _output_block_bytes_counter = | 595 | 31 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 31 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 31 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 31 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 31 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 31 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 31 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 31 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 31 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 31 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 31 | _memory_used_counter = | 606 | 31 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 31 | _common_profile->add_info_string("IsColocate", | 608 | 31 | std::to_string(_parent->is_colocated_operator())); | 609 | 31 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 31 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 31 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 31 | return Status::OK(); | 613 | 31 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.33k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.33k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.33k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.33k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.33k | _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.33k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.33k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.33k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.33k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.33k | if constexpr (!is_fake_shared) { | 560 | 5.33k | 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.33k | } 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.27k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.27k | _dependency = _shared_state->create_source_dependency( | 576 | 5.27k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.27k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.27k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.27k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 58 | } | 584 | 5.33k | } | 585 | | | 586 | 5.33k | 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.33k | _rows_returned_counter = | 591 | 5.33k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.33k | _blocks_returned_counter = | 593 | 5.33k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.33k | _output_block_bytes_counter = | 595 | 5.33k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.33k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.33k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.33k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.33k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.33k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.33k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.33k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.33k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.33k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.33k | _memory_used_counter = | 606 | 5.33k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.33k | _common_profile->add_info_string("IsColocate", | 608 | 5.33k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.33k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.33k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.33k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.33k | return Status::OK(); | 613 | 5.33k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 12.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 12.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 12.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 12.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 12.7k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 12.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 12.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 12.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 12.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 12.7k | if constexpr (!is_fake_shared) { | 560 | 12.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 12.7k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 12.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 12.4k | _dependency = _shared_state->create_source_dependency( | 576 | 12.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 12.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 12.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 12.4k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 322 | } | 584 | 12.7k | } | 585 | | | 586 | 12.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 12.7k | _rows_returned_counter = | 591 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 12.7k | _blocks_returned_counter = | 593 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 12.7k | _output_block_bytes_counter = | 595 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 12.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 12.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 12.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 12.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 12.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 12.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 12.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 12.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 12.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 12.7k | _memory_used_counter = | 606 | 12.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 12.7k | _common_profile->add_info_string("IsColocate", | 608 | 12.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 12.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 12.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 12.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 12.7k | return Status::OK(); | 613 | 12.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 100k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 100k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 100k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 100k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 100k | _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 | 100k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 100k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 100k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 100k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 100k | if constexpr (!is_fake_shared) { | 560 | 100k | 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 | 100k | } 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 | 98.8k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 98.8k | _dependency = _shared_state->create_source_dependency( | 576 | 98.8k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 98.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 98.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 98.8k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.96k | } | 584 | 100k | } | 585 | | | 586 | 100k | 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 | 100k | _rows_returned_counter = | 591 | 100k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 100k | _blocks_returned_counter = | 593 | 100k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 100k | _output_block_bytes_counter = | 595 | 100k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 100k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 100k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 100k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 100k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 100k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 100k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 100k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 100k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 100k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 100k | _memory_used_counter = | 606 | 100k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 100k | _common_profile->add_info_string("IsColocate", | 608 | 100k | std::to_string(_parent->is_colocated_operator())); | 609 | 100k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 100k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 100k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 100k | return Status::OK(); | 613 | 100k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 46.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 46.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 46.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 46.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 46.2k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 46.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 46.2k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 46.2k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 46.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 46.2k | if constexpr (!is_fake_shared) { | 560 | 46.3k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 46.3k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 46.3k | .first.get() | 563 | 46.3k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 46.3k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 46.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 46.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 46.2k | } | 585 | | | 586 | 46.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 46.2k | _rows_returned_counter = | 591 | 46.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 46.2k | _blocks_returned_counter = | 593 | 46.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 46.2k | _output_block_bytes_counter = | 595 | 46.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 46.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 46.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 46.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 46.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 46.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 46.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 46.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 46.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 46.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 46.2k | _memory_used_counter = | 606 | 46.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 46.2k | _common_profile->add_info_string("IsColocate", | 608 | 46.2k | std::to_string(_parent->is_colocated_operator())); | 609 | 46.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 46.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 46.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 46.2k | return Status::OK(); | 613 | 46.2k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 37 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 37 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 37 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 37 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 37 | _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 | 37 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 37 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 37 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 37 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 37 | if constexpr (!is_fake_shared) { | 560 | 37 | 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 | 37 | } 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 | 37 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 37 | _dependency = _shared_state->create_source_dependency( | 576 | 37 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 37 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 37 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 37 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 37 | } | 585 | | | 586 | 37 | 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 | 37 | _rows_returned_counter = | 591 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 37 | _blocks_returned_counter = | 593 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 37 | _output_block_bytes_counter = | 595 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 37 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 37 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 37 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 37 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 37 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 37 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 37 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 37 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 37 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 37 | _memory_used_counter = | 606 | 37 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 37 | _common_profile->add_info_string("IsColocate", | 608 | 37 | std::to_string(_parent->is_colocated_operator())); | 609 | 37 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 37 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 37 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 37 | return Status::OK(); | 613 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 854k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 854k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 854k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 854k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 854k | _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 | 854k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 854k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 854k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 854k | 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 | 854k | 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 | 854k | _rows_returned_counter = | 591 | 854k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 854k | _blocks_returned_counter = | 593 | 854k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 854k | _output_block_bytes_counter = | 595 | 854k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 854k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 854k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 854k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 854k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 854k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 854k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 854k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 854k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 854k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 854k | _memory_used_counter = | 606 | 854k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 854k | _common_profile->add_info_string("IsColocate", | 608 | 854k | std::to_string(_parent->is_colocated_operator())); | 609 | 854k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 854k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 854k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 854k | return Status::OK(); | 613 | 854k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 56.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 56.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 56.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 56.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 56.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 | 56.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 56.3k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 56.3k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 56.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 56.3k | if constexpr (!is_fake_shared) { | 560 | 56.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 | 56.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 | 4.63k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.63k | _dependency = _shared_state->create_source_dependency( | 576 | 4.63k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.63k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 51.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 51.6k | } | 584 | 56.3k | } | 585 | | | 586 | 56.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 | 56.3k | _rows_returned_counter = | 591 | 56.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 56.3k | _blocks_returned_counter = | 593 | 56.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 56.3k | _output_block_bytes_counter = | 595 | 56.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 56.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 56.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 56.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 56.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 56.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 56.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 56.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 56.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 56.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 56.3k | _memory_used_counter = | 606 | 56.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 56.3k | _common_profile->add_info_string("IsColocate", | 608 | 56.3k | std::to_string(_parent->is_colocated_operator())); | 609 | 56.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 56.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 56.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 56.3k | return Status::OK(); | 613 | 56.3k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 26 | if constexpr (!is_fake_shared) { | 560 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 26 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 26 | _dependency = _shared_state->create_source_dependency( | 576 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 26 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 26 | } | 585 | | | 586 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 26 | _rows_returned_counter = | 591 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 26 | _blocks_returned_counter = | 593 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 26 | _output_block_bytes_counter = | 595 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 26 | _memory_used_counter = | 606 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 26 | _common_profile->add_info_string("IsColocate", | 608 | 26 | std::to_string(_parent->is_colocated_operator())); | 609 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 26 | return Status::OK(); | 613 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.07k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.07k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.07k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.07k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.07k | _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.07k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.07k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.07k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.07k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.07k | if constexpr (!is_fake_shared) { | 560 | 5.07k | 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.07k | } 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.03k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.03k | _dependency = _shared_state->create_source_dependency( | 576 | 5.03k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.03k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.03k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.03k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 36 | } | 584 | 5.07k | } | 585 | | | 586 | 5.07k | 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.07k | _rows_returned_counter = | 591 | 5.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.07k | _blocks_returned_counter = | 593 | 5.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.07k | _output_block_bytes_counter = | 595 | 5.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.07k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.07k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.07k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.07k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.07k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.07k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.07k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.07k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.07k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.07k | _memory_used_counter = | 606 | 5.07k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.07k | _common_profile->add_info_string("IsColocate", | 608 | 5.07k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.07k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.07k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.07k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.07k | return Status::OK(); | 613 | 5.07k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 425 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 425 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 425 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 425 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 425 | _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 | 425 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 425 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 425 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 425 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 425 | if constexpr (!is_fake_shared) { | 560 | 425 | 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 | 425 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 423 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 423 | _dependency = _shared_state->create_source_dependency( | 576 | 423 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 423 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 423 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 423 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2 | } | 584 | 425 | } | 585 | | | 586 | 425 | 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 | 425 | _rows_returned_counter = | 591 | 425 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 425 | _blocks_returned_counter = | 593 | 425 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 425 | _output_block_bytes_counter = | 595 | 425 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 425 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 425 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 425 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 425 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 425 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 425 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 425 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 425 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 425 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 425 | _memory_used_counter = | 606 | 425 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 425 | _common_profile->add_info_string("IsColocate", | 608 | 425 | std::to_string(_parent->is_colocated_operator())); | 609 | 425 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 425 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 425 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 425 | return Status::OK(); | 613 | 425 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.21k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.21k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.21k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.21k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.21k | _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.21k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.21k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.21k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.21k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.21k | if constexpr (!is_fake_shared) { | 560 | 5.21k | 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.21k | } 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.04k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.04k | _dependency = _shared_state->create_source_dependency( | 576 | 5.04k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.04k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.04k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.04k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 168 | } | 584 | 5.21k | } | 585 | | | 586 | 5.21k | 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.21k | _rows_returned_counter = | 591 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.21k | _blocks_returned_counter = | 593 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.21k | _output_block_bytes_counter = | 595 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.21k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.21k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.21k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.21k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.21k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.21k | _memory_used_counter = | 606 | 5.21k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.21k | _common_profile->add_info_string("IsColocate", | 608 | 5.21k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.21k | return Status::OK(); | 613 | 5.21k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 654k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 654k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 654k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 654k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 654k | _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 | 654k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 654k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 654k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 654k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 654k | if constexpr (!is_fake_shared) { | 560 | 654k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 647k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 647k | .first.get() | 563 | 647k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 647k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 647k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 647k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 647k | } 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 | 7.48k | } else { | 580 | 7.48k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 7.48k | DCHECK(false); | 582 | 7.48k | } | 583 | 7.48k | } | 584 | 654k | } | 585 | | | 586 | 654k | 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 | 654k | _rows_returned_counter = | 591 | 654k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 654k | _blocks_returned_counter = | 593 | 654k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 654k | _output_block_bytes_counter = | 595 | 654k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 654k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 654k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 654k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 654k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 654k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 654k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 654k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 654k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 654k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 654k | _memory_used_counter = | 606 | 654k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 654k | _common_profile->add_info_string("IsColocate", | 608 | 654k | std::to_string(_parent->is_colocated_operator())); | 609 | 654k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 654k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 654k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 654k | return Status::OK(); | 613 | 654k | } |
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 | 309k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 309k | } |
621 | 2.07M | if (_parent->has_projection()) { |
622 | 399k | const auto& projection = *_parent->_projection; |
623 | 399k | _projections.resize(projection.projections.size()); |
624 | 2.48M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 2.09M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 2.09M | } |
627 | 399k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 424k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 25.0k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 448k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 423k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 423k | state, _intermediate_projections[i][j])); |
633 | 423k | } |
634 | 25.0k | } |
635 | 399k | } |
636 | 2.07M | return Status::OK(); |
637 | 2.07M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 74.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 74.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 75.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.94k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.94k | } | 621 | 74.0k | if (_parent->has_projection()) { | 622 | 73.9k | const auto& projection = *_parent->_projection; | 623 | 73.9k | _projections.resize(projection.projections.size()); | 624 | 410k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 336k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 336k | } | 627 | 73.9k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 85.1k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 11.2k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 366k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 355k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 355k | state, _intermediate_projections[i][j])); | 633 | 355k | } | 634 | 11.2k | } | 635 | 73.9k | } | 636 | 74.0k | return Status::OK(); | 637 | 74.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 243k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 243k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 243k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 243k | if (_parent->has_projection()) { | 622 | 135 | const auto& projection = *_parent->_projection; | 623 | 135 | _projections.resize(projection.projections.size()); | 624 | 629 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 494 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 494 | } | 627 | 135 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 135 | 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 | 135 | } | 636 | 243k | return Status::OK(); | 637 | 243k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 31 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 31 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 31 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 31 | 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 | 31 | return Status::OK(); | 637 | 31 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.34k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.34k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.40k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 60 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 60 | } | 621 | 5.34k | if (_parent->has_projection()) { | 622 | 5.34k | const auto& projection = *_parent->_projection; | 623 | 5.34k | _projections.resize(projection.projections.size()); | 624 | 22.4k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 17.1k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 17.1k | } | 627 | 5.34k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.36k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 28 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 315 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 287 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 287 | state, _intermediate_projections[i][j])); | 633 | 287 | } | 634 | 28 | } | 635 | 5.34k | } | 636 | 5.34k | return Status::OK(); | 637 | 5.34k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 12.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 12.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 13.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 886 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 886 | } | 621 | 12.8k | if (_parent->has_projection()) { | 622 | 6.58k | const auto& projection = *_parent->_projection; | 623 | 6.58k | _projections.resize(projection.projections.size()); | 624 | 28.0k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 21.4k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 21.4k | } | 627 | 6.58k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.68k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 93 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 706 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 613 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 613 | state, _intermediate_projections[i][j])); | 633 | 613 | } | 634 | 93 | } | 635 | 6.58k | } | 636 | 12.8k | return Status::OK(); | 637 | 12.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 101k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 101k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 102k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.26k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.26k | } | 621 | 101k | if (_parent->has_projection()) { | 622 | 32.1k | const auto& projection = *_parent->_projection; | 623 | 32.1k | _projections.resize(projection.projections.size()); | 624 | 299k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 267k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 267k | } | 627 | 32.1k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 32.9k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 793 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 5.26k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 4.46k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 4.46k | state, _intermediate_projections[i][j])); | 633 | 4.46k | } | 634 | 793 | } | 635 | 32.1k | } | 636 | 101k | return Status::OK(); | 637 | 101k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 46.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 46.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 46.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 12 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 12 | } | 621 | 46.3k | if (_parent->has_projection()) { | 622 | 289 | const auto& projection = *_parent->_projection; | 623 | 289 | _projections.resize(projection.projections.size()); | 624 | 1.21k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 921 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 921 | } | 627 | 289 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 290 | 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 | 289 | } | 636 | 46.3k | return Status::OK(); | 637 | 46.3k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 41 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 41 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 41 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 41 | 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 | 41 | return Status::OK(); | 637 | 41 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 860k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 860k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.16M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 305k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 305k | } | 621 | 860k | if (_parent->has_projection()) { | 622 | 268k | const auto& projection = *_parent->_projection; | 623 | 268k | _projections.resize(projection.projections.size()); | 624 | 1.61M | 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 | 268k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 281k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 12.8k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 73.6k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 60.8k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 60.8k | state, _intermediate_projections[i][j])); | 633 | 60.8k | } | 634 | 12.8k | } | 635 | 268k | } | 636 | 860k | return Status::OK(); | 637 | 860k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 56.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 56.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 56.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 56.6k | if (_parent->has_projection()) { | 622 | 11.8k | const auto& projection = *_parent->_projection; | 623 | 11.8k | _projections.resize(projection.projections.size()); | 624 | 115k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 103k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 103k | } | 627 | 11.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 12.0k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 137 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 2.22k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2.08k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2.08k | state, _intermediate_projections[i][j])); | 633 | 2.08k | } | 634 | 137 | } | 635 | 11.8k | } | 636 | 56.6k | return Status::OK(); | 637 | 56.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.05k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.05k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.54k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 483 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 483 | } | 621 | 5.05k | 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.05k | return Status::OK(); | 637 | 5.05k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 425 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 425 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 425 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 425 | 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 | 425 | return Status::OK(); | 637 | 425 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.26k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.26k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.26k | 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.26k | if (_parent->has_projection()) { | 622 | 84 | const auto& projection = *_parent->_projection; | 623 | 84 | _projections.resize(projection.projections.size()); | 624 | 279 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 195 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 195 | } | 627 | 84 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 84 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 84 | } | 636 | 5.26k | return Status::OK(); | 637 | 5.26k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 659k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 659k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 659k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 659k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 659k | return Status::OK(); | 637 | 659k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 169 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 169 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 169 | if (_parent->has_projection()) { | 622 | 166 | const auto& projection = *_parent->_projection; | 623 | 166 | _projections.resize(projection.projections.size()); | 624 | 491 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 166 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 169 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 166 | } | 636 | 169 | return Status::OK(); | 637 | 169 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 9.87k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 9.87k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 9.87k | _terminated = true; |
645 | 9.87k | return Status::OK(); |
646 | 9.87k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 370 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 370 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 370 | _terminated = true; | 645 | 370 | return Status::OK(); | 646 | 370 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 36 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 36 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 36 | _terminated = true; | 645 | 36 | return Status::OK(); | 646 | 36 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 39 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 39 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 39 | _terminated = true; | 645 | 39 | return Status::OK(); | 646 | 39 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 119 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 119 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 119 | _terminated = true; | 645 | 119 | return Status::OK(); | 646 | 119 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 7.83k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 7.83k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 7.83k | _terminated = true; | 645 | 7.83k | return Status::OK(); | 646 | 7.83k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 34 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 34 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 34 | _terminated = true; | 645 | 34 | return Status::OK(); | 646 | 34 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 8 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 8 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 8 | _terminated = true; | 645 | 8 | return Status::OK(); | 646 | 8 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 380 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 380 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 380 | _terminated = true; | 645 | 380 | return Status::OK(); | 646 | 380 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.02k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.02k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.02k | _terminated = true; | 645 | 1.02k | return Status::OK(); | 646 | 1.02k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 38 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 38 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 38 | _terminated = true; | 645 | 38 | return Status::OK(); | 646 | 38 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.34M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.34M | if (_closed) { |
651 | 278k | return Status::OK(); |
652 | 278k | } |
653 | 2.06M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.20M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.20M | } |
656 | 2.06M | _closed = true; |
657 | 2.06M | return Status::OK(); |
658 | 2.34M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 73.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 73.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 73.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 73.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 73.9k | } | 656 | 73.9k | _closed = true; | 657 | 73.9k | return Status::OK(); | 658 | 73.9k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 483k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 483k | if (_closed) { | 651 | 242k | return Status::OK(); | 652 | 242k | } | 653 | 240k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 240k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 240k | } | 656 | 240k | _closed = true; | 657 | 240k | return Status::OK(); | 658 | 483k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_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_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.32k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.32k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.32k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.32k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.32k | } | 656 | 5.32k | _closed = true; | 657 | 5.32k | return Status::OK(); | 658 | 5.32k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 25.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 25.6k | if (_closed) { | 651 | 12.9k | return Status::OK(); | 652 | 12.9k | } | 653 | 12.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 12.7k | } | 656 | 12.7k | _closed = true; | 657 | 12.7k | return Status::OK(); | 658 | 25.6k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 100k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 100k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 100k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 100k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 100k | } | 656 | 100k | _closed = true; | 657 | 100k | return Status::OK(); | 658 | 100k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 46.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 46.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 46.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 46.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 46.0k | } | 656 | 46.0k | _closed = true; | 657 | 46.0k | return Status::OK(); | 658 | 46.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 36 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 36 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 36 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 36 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 36 | } | 656 | 36 | _closed = true; | 657 | 36 | return Status::OK(); | 658 | 36 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 877k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 877k | if (_closed) { | 651 | 16.1k | return Status::OK(); | 652 | 16.1k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 861k | _closed = true; | 657 | 861k | return Status::OK(); | 658 | 877k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 56.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 56.7k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 56.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 56.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 56.7k | } | 656 | 56.7k | _closed = true; | 657 | 56.7k | return Status::OK(); | 658 | 56.7k | } |
_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.00k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.00k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.00k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.00k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.00k | } | 656 | 5.00k | _closed = true; | 657 | 5.00k | return Status::OK(); | 658 | 5.00k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 643 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 643 | if (_closed) { | 651 | 322 | return Status::OK(); | 652 | 322 | } | 653 | 321 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 321 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 321 | } | 656 | 321 | _closed = true; | 657 | 321 | return Status::OK(); | 658 | 643 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.8k | if (_closed) { | 651 | 5.64k | return Status::OK(); | 652 | 5.64k | } | 653 | 5.25k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.25k | } | 656 | 5.25k | _closed = true; | 657 | 5.25k | return Status::OK(); | 658 | 10.8k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 661k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 661k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 661k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 661k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 661k | } | 656 | 661k | _closed = true; | 657 | 661k | return Status::OK(); | 658 | 661k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 337 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 337 | if (_closed) { | 651 | 177 | return Status::OK(); | 652 | 177 | } | 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 | 337 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.74M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.74M | _operator_profile = |
664 | 1.74M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.74M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.74M | _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.74M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.74M | _operator_profile->add_child(_common_profile, true); |
673 | 1.74M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.74M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.74M | _wait_for_finish_dependency_timer = |
677 | 1.74M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.74M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.74M | if constexpr (!is_fake_shared) { |
680 | 1.21M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.21M | info.shared_state_map.end()) { |
682 | 308k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 249k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 249k | } |
685 | 308k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 308k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 308k | ? 0 |
688 | 308k | : info.task_idx] |
689 | 308k | .get(); |
690 | 308k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 902k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 902k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 902k | _dependency = _shared_state->create_sink_dependency( |
697 | 902k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 902k | } |
699 | 1.21M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.21M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.21M | } |
702 | | |
703 | 1.74M | 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.74M | _rows_input_counter = |
708 | 1.74M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.74M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.74M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.74M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.74M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.74M | _memory_used_counter = |
714 | 1.74M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.74M | _common_profile->add_info_string("IsColocate", |
716 | 1.74M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.74M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.74M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.74M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.74M | return Status::OK(); |
721 | 1.74M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 121k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 121k | _operator_profile = | 664 | 121k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 121k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 121k | _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 | 121k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 121k | _operator_profile->add_child(_common_profile, true); | 673 | 121k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 121k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 121k | _wait_for_finish_dependency_timer = | 677 | 121k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 121k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 121k | if constexpr (!is_fake_shared) { | 680 | 121k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 121k | 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.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 12.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 12.6k | ? 0 | 688 | 12.6k | : info.task_idx] | 689 | 12.6k | .get(); | 690 | 12.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 109k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 109k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 109k | _dependency = _shared_state->create_sink_dependency( | 697 | 109k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 109k | } | 699 | 121k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 121k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 121k | } | 702 | | | 703 | 121k | 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 | 121k | _rows_input_counter = | 708 | 121k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 121k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 121k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 121k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 121k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 121k | _memory_used_counter = | 714 | 121k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 121k | _common_profile->add_info_string("IsColocate", | 716 | 121k | std::to_string(_parent->is_colocated_operator())); | 717 | 121k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 121k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 121k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 121k | return Status::OK(); | 721 | 121k | } |
_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 | 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 | 242k | 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 | 242k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 242k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 242k | _dependency = _shared_state->create_sink_dependency( | 697 | 242k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 242k | } | 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_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 38 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 38 | _operator_profile = | 664 | 38 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 38 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 38 | _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 | 38 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 38 | _operator_profile->add_child(_common_profile, true); | 673 | 38 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 38 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 38 | _wait_for_finish_dependency_timer = | 677 | 38 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 38 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 38 | if constexpr (!is_fake_shared) { | 680 | 38 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 38 | 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 | 38 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 38 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 38 | _dependency = _shared_state->create_sink_dependency( | 697 | 38 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 38 | } | 699 | 38 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 38 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 38 | } | 702 | | | 703 | 38 | 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 | 38 | _rows_input_counter = | 708 | 38 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 38 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 38 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 38 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 38 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 38 | _memory_used_counter = | 714 | 38 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 38 | _common_profile->add_info_string("IsColocate", | 716 | 38 | std::to_string(_parent->is_colocated_operator())); | 717 | 38 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 38 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 38 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 38 | return Status::OK(); | 721 | 38 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 5.34k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 5.34k | _operator_profile = | 664 | 5.34k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 5.34k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 5.34k | _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.34k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 5.34k | _operator_profile->add_child(_common_profile, true); | 673 | 5.34k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 5.34k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 5.34k | _wait_for_finish_dependency_timer = | 677 | 5.34k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 5.34k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 5.34k | if constexpr (!is_fake_shared) { | 680 | 5.34k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 5.34k | 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.34k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 5.34k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 5.34k | _dependency = _shared_state->create_sink_dependency( | 697 | 5.34k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 5.34k | } | 699 | 5.34k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 5.34k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 5.34k | } | 702 | | | 703 | 5.34k | 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.34k | _rows_input_counter = | 708 | 5.34k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 5.34k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 5.34k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 5.34k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 5.34k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 5.34k | _memory_used_counter = | 714 | 5.34k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 5.34k | _common_profile->add_info_string("IsColocate", | 716 | 5.34k | std::to_string(_parent->is_colocated_operator())); | 717 | 5.34k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 5.34k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 5.34k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 5.34k | return Status::OK(); | 721 | 5.34k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.7k | _operator_profile = | 664 | 12.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.7k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.7k | _operator_profile->add_child(_common_profile, true); | 673 | 12.7k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.7k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.7k | _wait_for_finish_dependency_timer = | 677 | 12.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.7k | if constexpr (!is_fake_shared) { | 680 | 12.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.7k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.7k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.7k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.7k | } | 699 | 12.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.7k | } | 702 | | | 703 | 12.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.7k | _rows_input_counter = | 708 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.7k | _memory_used_counter = | 714 | 12.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.7k | _common_profile->add_info_string("IsColocate", | 716 | 12.7k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.7k | return Status::OK(); | 721 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 100k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 100k | _operator_profile = | 664 | 100k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 100k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 100k | _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 | 100k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 100k | _operator_profile->add_child(_common_profile, true); | 673 | 100k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 100k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 100k | _wait_for_finish_dependency_timer = | 677 | 100k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 100k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 100k | if constexpr (!is_fake_shared) { | 680 | 100k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 100k | 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 | 100k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 100k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 100k | _dependency = _shared_state->create_sink_dependency( | 697 | 100k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 100k | } | 699 | 100k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 100k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 100k | } | 702 | | | 703 | 100k | 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 | 100k | _rows_input_counter = | 708 | 100k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 100k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 100k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 100k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 100k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 100k | _memory_used_counter = | 714 | 100k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 100k | _common_profile->add_info_string("IsColocate", | 716 | 100k | std::to_string(_parent->is_colocated_operator())); | 717 | 100k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 100k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 100k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 100k | return Status::OK(); | 721 | 100k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 46.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 46.3k | _operator_profile = | 664 | 46.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 46.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 46.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 | 46.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 46.3k | _operator_profile->add_child(_common_profile, true); | 673 | 46.3k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 46.3k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 46.3k | _wait_for_finish_dependency_timer = | 677 | 46.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 46.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 46.3k | if constexpr (!is_fake_shared) { | 680 | 46.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 46.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 | 46.3k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 46.3k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 46.3k | ? 0 | 688 | 46.3k | : info.task_idx] | 689 | 46.3k | .get(); | 690 | 46.3k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 46.3k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 0 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 0 | _dependency = _shared_state->create_sink_dependency( | 697 | 0 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 0 | } | 699 | 46.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 46.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 46.3k | } | 702 | | | 703 | 46.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 | 46.3k | _rows_input_counter = | 708 | 46.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 46.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 46.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 46.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 46.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 46.3k | _memory_used_counter = | 714 | 46.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 46.3k | _common_profile->add_info_string("IsColocate", | 716 | 46.3k | std::to_string(_parent->is_colocated_operator())); | 717 | 46.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 46.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 46.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 46.3k | return Status::OK(); | 721 | 46.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 47 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 47 | _operator_profile = | 664 | 47 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 47 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 47 | _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 | 47 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 47 | _operator_profile->add_child(_common_profile, true); | 673 | 47 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 47 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 47 | _wait_for_finish_dependency_timer = | 677 | 47 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 47 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 47 | if constexpr (!is_fake_shared) { | 680 | 47 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 47 | 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 | 47 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 47 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 47 | _dependency = _shared_state->create_sink_dependency( | 697 | 47 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 47 | } | 699 | 47 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 47 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 47 | } | 702 | | | 703 | 47 | 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 | 47 | _rows_input_counter = | 708 | 47 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 47 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 47 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 47 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 47 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 47 | _memory_used_counter = | 714 | 47 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 47 | _common_profile->add_info_string("IsColocate", | 716 | 47 | std::to_string(_parent->is_colocated_operator())); | 717 | 47 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 47 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 47 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 47 | return Status::OK(); | 721 | 47 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 536k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 536k | _operator_profile = | 664 | 536k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 536k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 536k | _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 | 536k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 536k | _operator_profile->add_child(_common_profile, true); | 673 | 536k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 536k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 536k | _wait_for_finish_dependency_timer = | 677 | 536k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 536k | 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 | 536k | 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 | 536k | _rows_input_counter = | 708 | 536k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 536k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 536k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 536k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 536k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 536k | _memory_used_counter = | 714 | 536k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 536k | _common_profile->add_info_string("IsColocate", | 716 | 536k | std::to_string(_parent->is_colocated_operator())); | 717 | 536k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 536k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 536k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 536k | return Status::OK(); | 721 | 536k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 11.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 11.9k | _operator_profile = | 664 | 11.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 11.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 11.9k | _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 | 11.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 11.9k | _operator_profile->add_child(_common_profile, true); | 673 | 11.9k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 11.9k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 11.9k | _wait_for_finish_dependency_timer = | 677 | 11.9k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 11.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 11.9k | if constexpr (!is_fake_shared) { | 680 | 11.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 11.9k | 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 | 11.9k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 11.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 11.9k | _dependency = _shared_state->create_sink_dependency( | 697 | 11.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 11.9k | } | 699 | 11.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 11.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 11.9k | } | 702 | | | 703 | 11.9k | 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 | 11.9k | _rows_input_counter = | 708 | 11.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 11.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 11.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 11.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 11.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 11.9k | _memory_used_counter = | 714 | 11.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 11.9k | _common_profile->add_info_string("IsColocate", | 716 | 11.9k | std::to_string(_parent->is_colocated_operator())); | 717 | 11.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 11.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 11.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 11.9k | return Status::OK(); | 721 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 423 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 423 | _operator_profile = | 664 | 423 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 423 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 423 | _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 | 423 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 423 | _operator_profile->add_child(_common_profile, true); | 673 | 423 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 423 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 423 | _wait_for_finish_dependency_timer = | 677 | 423 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 423 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 423 | if constexpr (!is_fake_shared) { | 680 | 423 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 423 | 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 | 423 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 423 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 423 | _dependency = _shared_state->create_sink_dependency( | 697 | 423 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 423 | } | 699 | 423 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 423 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 423 | } | 702 | | | 703 | 424 | 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 | 423 | _rows_input_counter = | 708 | 423 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 423 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 423 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 423 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 423 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 423 | _memory_used_counter = | 714 | 423 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 423 | _common_profile->add_info_string("IsColocate", | 716 | 423 | std::to_string(_parent->is_colocated_operator())); | 717 | 423 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 423 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 423 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 423 | return Status::OK(); | 721 | 423 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.03k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.03k | _operator_profile = | 664 | 2.03k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.03k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.03k | _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.03k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.03k | _operator_profile->add_child(_common_profile, true); | 673 | 2.03k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.03k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.03k | _wait_for_finish_dependency_timer = | 677 | 2.03k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.03k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.03k | if constexpr (!is_fake_shared) { | 680 | 2.03k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.03k | 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.03k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.03k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.03k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.03k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.03k | } | 699 | 2.03k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.03k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.03k | } | 702 | | | 703 | 2.03k | 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.03k | _rows_input_counter = | 708 | 2.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.03k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.03k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.03k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.03k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.03k | _memory_used_counter = | 714 | 2.03k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.03k | _common_profile->add_info_string("IsColocate", | 716 | 2.03k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.03k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.03k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.03k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.03k | return Status::OK(); | 721 | 2.03k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.7k | _operator_profile = | 664 | 12.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.7k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.7k | _operator_profile->add_child(_common_profile, true); | 673 | 12.7k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.7k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.7k | _wait_for_finish_dependency_timer = | 677 | 12.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.7k | if constexpr (!is_fake_shared) { | 680 | 12.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.7k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.7k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.7k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.7k | } | 699 | 12.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.7k | } | 702 | | | 703 | 12.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.7k | _rows_input_counter = | 708 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.7k | _memory_used_counter = | 714 | 12.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.7k | _common_profile->add_info_string("IsColocate", | 716 | 12.7k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.7k | return Status::OK(); | 721 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 249k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 249k | _operator_profile = | 664 | 249k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 249k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 249k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 249k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 249k | _operator_profile->add_child(_common_profile, true); | 673 | 249k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 249k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 249k | _wait_for_finish_dependency_timer = | 677 | 249k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 249k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 249k | if constexpr (!is_fake_shared) { | 680 | 249k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 249k | info.shared_state_map.end()) { | 682 | 249k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 249k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 249k | } | 685 | 249k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 249k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 249k | ? 0 | 688 | 249k | : info.task_idx] | 689 | 249k | .get(); | 690 | 249k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | 18.4E | DCHECK(false); | 694 | 18.4E | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 249k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 249k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 249k | } | 702 | | | 703 | 249k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 249k | _rows_input_counter = | 708 | 249k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 249k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 249k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 249k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 249k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 249k | _memory_used_counter = | 714 | 249k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 249k | _common_profile->add_info_string("IsColocate", | 716 | 249k | std::to_string(_parent->is_colocated_operator())); | 717 | 249k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 249k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 249k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 249k | return Status::OK(); | 721 | 249k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 403k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 403k | _operator_profile = | 664 | 403k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 403k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 403k | _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 | 403k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 403k | _operator_profile->add_child(_common_profile, true); | 673 | 403k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 403k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 403k | _wait_for_finish_dependency_timer = | 677 | 403k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 403k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 403k | if constexpr (!is_fake_shared) { | 680 | 403k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 403k | 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 | 403k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 403k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 403k | _dependency = _shared_state->create_sink_dependency( | 697 | 403k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 403k | } | 699 | 403k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 403k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 403k | } | 702 | | | 703 | 403k | 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 | 403k | _rows_input_counter = | 708 | 403k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 403k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 403k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 403k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 403k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 403k | _memory_used_counter = | 714 | 403k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 403k | _common_profile->add_info_string("IsColocate", | 716 | 403k | std::to_string(_parent->is_colocated_operator())); | 717 | 403k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 403k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 403k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 403k | return Status::OK(); | 721 | 403k | } |
_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.75M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.75M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.75M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.21M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.21M | } |
731 | 1.75M | _closed = true; |
732 | 1.75M | return Status::OK(); |
733 | 1.75M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 121k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 121k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 121k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 121k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 121k | } | 731 | 121k | _closed = true; | 732 | 121k | return Status::OK(); | 733 | 121k | } |
_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 | 242k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 242k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 242k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 242k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 242k | } | 731 | 242k | _closed = true; | 732 | 242k | return Status::OK(); | 733 | 242k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 29 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 29 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 27 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 27 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 27 | } | 731 | 27 | _closed = true; | 732 | 27 | return Status::OK(); | 733 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 5.30k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 5.30k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 5.30k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 5.30k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 5.30k | } | 731 | 5.30k | _closed = true; | 732 | 5.30k | return Status::OK(); | 733 | 5.30k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.7k | } | 731 | 12.7k | _closed = true; | 732 | 12.7k | return Status::OK(); | 733 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 100k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 100k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 100k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 100k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 100k | } | 731 | 100k | _closed = true; | 732 | 100k | return Status::OK(); | 733 | 100k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 45.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 45.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 45.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 45.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 45.9k | } | 731 | 45.9k | _closed = true; | 732 | 45.9k | return Status::OK(); | 733 | 45.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 35 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 35 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 35 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 35 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 35 | } | 731 | 35 | _closed = true; | 732 | 35 | return Status::OK(); | 733 | 35 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 540k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 540k | 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 | 540k | _closed = true; | 732 | 540k | return Status::OK(); | 733 | 540k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.0k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.0k | } | 731 | 12.0k | _closed = true; | 732 | 12.0k | return Status::OK(); | 733 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 320 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 320 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 320 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 320 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 320 | } | 731 | 320 | _closed = true; | 732 | 320 | return Status::OK(); | 733 | 320 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.06k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.06k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.06k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.06k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.06k | } | 731 | 2.06k | _closed = true; | 732 | 2.06k | return Status::OK(); | 733 | 2.06k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.7k | } | 731 | 12.7k | _closed = true; | 732 | 12.7k | return Status::OK(); | 733 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 250k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 250k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 250k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 250k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 250k | } | 731 | 250k | _closed = true; | 732 | 250k | return Status::OK(); | 733 | 250k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 406k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 406k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 406k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 406k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 406k | } | 731 | 406k | _closed = true; | 732 | 406k | return Status::OK(); | 733 | 406k | } |
_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.54k | bool* eos) { |
738 | 1.54k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 1.53k | return pull(state, block, eos); |
740 | 1.54k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 41 | bool* eos) { | 738 | 41 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 41 | return pull(state, block, eos); | 740 | 41 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 1.50k | bool* eos) { | 738 | 1.50k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 1.49k | return pull(state, block, eos); | 740 | 1.50k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 531k | bool* eos) { |
745 | 531k | auto& local_state = get_local_state(state); |
746 | 531k | if (need_more_input_data(state)) { |
747 | 499k | local_state._child_block->clear_column_data( |
748 | 499k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 499k | .num_slots()); |
750 | 499k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 499k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 499k | *eos = local_state._child_eos; |
753 | 499k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 67.3k | return Status::OK(); |
755 | 67.3k | } |
756 | 432k | { |
757 | 432k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 432k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 432k | } |
760 | 432k | } |
761 | | |
762 | 464k | if (!need_more_input_data(state)) { |
763 | 436k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 436k | bool new_eos = false; |
765 | 436k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 436k | if (new_eos) { |
767 | 357k | *eos = true; |
768 | 357k | } else if (!need_more_input_data(state)) { |
769 | 25.4k | *eos = false; |
770 | 25.4k | } |
771 | 436k | } |
772 | 464k | return Status::OK(); |
773 | 464k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 144k | bool* eos) { | 745 | 144k | auto& local_state = get_local_state(state); | 746 | 144k | if (need_more_input_data(state)) { | 747 | 124k | local_state._child_block->clear_column_data( | 748 | 124k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 124k | .num_slots()); | 750 | 124k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 124k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 124k | *eos = local_state._child_eos; | 753 | 124k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 36.1k | return Status::OK(); | 755 | 36.1k | } | 756 | 88.6k | { | 757 | 88.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 88.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 88.6k | } | 760 | 88.6k | } | 761 | | | 762 | 107k | if (!need_more_input_data(state)) { | 763 | 107k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 107k | bool new_eos = false; | 765 | 107k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 107k | if (new_eos) { | 767 | 49.4k | *eos = true; | 768 | 58.3k | } else if (!need_more_input_data(state)) { | 769 | 11.2k | *eos = false; | 770 | 11.2k | } | 771 | 107k | } | 772 | 107k | return Status::OK(); | 773 | 107k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.39k | bool* eos) { | 745 | 4.39k | auto& local_state = get_local_state(state); | 746 | 4.39k | if (need_more_input_data(state)) { | 747 | 2.46k | local_state._child_block->clear_column_data( | 748 | 2.46k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.46k | .num_slots()); | 750 | 2.46k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.46k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.46k | *eos = local_state._child_eos; | 753 | 2.46k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 562 | return Status::OK(); | 755 | 562 | } | 756 | 1.90k | { | 757 | 1.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.90k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.90k | } | 760 | 1.90k | } | 761 | | | 762 | 3.83k | if (!need_more_input_data(state)) { | 763 | 3.83k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.83k | bool new_eos = false; | 765 | 3.83k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.83k | if (new_eos) { | 767 | 1.28k | *eos = true; | 768 | 2.55k | } else if (!need_more_input_data(state)) { | 769 | 1.91k | *eos = false; | 770 | 1.91k | } | 771 | 3.83k | } | 772 | 3.82k | return Status::OK(); | 773 | 3.82k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.95k | bool* eos) { | 745 | 1.95k | auto& local_state = get_local_state(state); | 746 | 1.95k | if (need_more_input_data(state)) { | 747 | 1.95k | local_state._child_block->clear_column_data( | 748 | 1.95k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.95k | .num_slots()); | 750 | 1.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.95k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.95k | *eos = local_state._child_eos; | 753 | 1.95k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 798 | return Status::OK(); | 755 | 798 | } | 756 | 1.15k | { | 757 | 1.15k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.15k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.15k | } | 760 | 1.15k | } | 761 | | | 762 | 1.15k | if (!need_more_input_data(state)) { | 763 | 1.15k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.15k | bool new_eos = false; | 765 | 1.15k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.15k | if (new_eos) { | 767 | 806 | *eos = true; | 768 | 806 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.15k | } | 772 | 1.15k | return Status::OK(); | 773 | 1.15k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 16.8k | bool* eos) { | 745 | 16.8k | auto& local_state = get_local_state(state); | 746 | 16.8k | if (need_more_input_data(state)) { | 747 | 16.8k | local_state._child_block->clear_column_data( | 748 | 16.8k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 16.8k | .num_slots()); | 750 | 16.8k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 16.8k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 16.8k | *eos = local_state._child_eos; | 753 | 16.8k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.63k | return Status::OK(); | 755 | 4.63k | } | 756 | 12.2k | { | 757 | 12.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 12.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 12.2k | } | 760 | 12.2k | } | 761 | | | 762 | 12.2k | if (!need_more_input_data(state)) { | 763 | 6.67k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.67k | bool new_eos = false; | 765 | 6.67k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.67k | if (new_eos) { | 767 | 6.50k | *eos = true; | 768 | 6.50k | } else if (!need_more_input_data(state)) { | 769 | 5 | *eos = false; | 770 | 5 | } | 771 | 6.67k | } | 772 | 12.2k | return Status::OK(); | 773 | 12.2k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 335k | bool* eos) { | 745 | 335k | auto& local_state = get_local_state(state); | 746 | 336k | if (need_more_input_data(state)) { | 747 | 336k | local_state._child_block->clear_column_data( | 748 | 336k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 336k | .num_slots()); | 750 | 336k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 336k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 336k | *eos = local_state._child_eos; | 753 | 336k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 23.8k | return Status::OK(); | 755 | 23.8k | } | 756 | 312k | { | 757 | 312k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 312k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 312k | } | 760 | 312k | } | 761 | | | 762 | 311k | if (!need_more_input_data(state)) { | 763 | 289k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 289k | bool new_eos = false; | 765 | 289k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 289k | if (new_eos) { | 767 | 288k | *eos = true; | 768 | 288k | } else if (!need_more_input_data(state)) { | 769 | 8 | *eos = false; | 770 | 8 | } | 771 | 289k | } | 772 | 311k | return Status::OK(); | 773 | 311k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 21.1k | bool* eos) { | 745 | 21.1k | auto& local_state = get_local_state(state); | 746 | 21.1k | if (need_more_input_data(state)) { | 747 | 9.25k | local_state._child_block->clear_column_data( | 748 | 9.25k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 9.25k | .num_slots()); | 750 | 9.25k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 9.25k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 9.25k | *eos = local_state._child_eos; | 753 | 9.25k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 547 | return Status::OK(); | 755 | 547 | } | 756 | 8.70k | { | 757 | 8.70k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 8.70k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 8.70k | } | 760 | 8.70k | } | 761 | | | 762 | 20.6k | 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.31k | *eos = true; | 768 | 14.6k | } else if (!need_more_input_data(state)) { | 769 | 11.9k | *eos = false; | 770 | 11.9k | } | 771 | 19.9k | } | 772 | 20.6k | return Status::OK(); | 773 | 20.6k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 8.24k | bool* eos) { | 745 | 8.24k | auto& local_state = get_local_state(state); | 746 | 8.24k | if (need_more_input_data(state)) { | 747 | 7.88k | local_state._child_block->clear_column_data( | 748 | 7.88k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.88k | .num_slots()); | 750 | 7.88k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.88k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.88k | *eos = local_state._child_eos; | 753 | 7.88k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 791 | return Status::OK(); | 755 | 791 | } | 756 | 7.08k | { | 757 | 7.08k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 7.08k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 7.08k | } | 760 | 7.08k | } | 761 | | | 762 | 7.45k | if (!need_more_input_data(state)) { | 763 | 7.45k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.45k | bool new_eos = false; | 765 | 7.45k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.45k | if (new_eos) { | 767 | 5.07k | *eos = true; | 768 | 5.07k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 7.45k | } | 772 | 7.44k | return Status::OK(); | 773 | 7.44k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 50.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 50.2k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 50.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 50.2k | "AsyncWriterDependency", true); |
781 | 50.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 50.2k | _finish_dependency)); |
783 | | |
784 | 50.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 50.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 50.2k | return Status::OK(); |
787 | 50.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 375 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 375 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 375 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 375 | "AsyncWriterDependency", true); | 781 | 375 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 375 | _finish_dependency)); | 783 | | | 784 | 375 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 375 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 375 | return Status::OK(); | 787 | 375 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 49.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 49.7k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 49.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 49.7k | "AsyncWriterDependency", true); | 781 | 49.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 49.7k | _finish_dependency)); | 783 | | | 784 | 49.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 49.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 49.7k | return Status::OK(); | 787 | 49.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 20 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 20 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 20 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 20 | "AsyncWriterDependency", true); | 781 | 20 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 20 | _finish_dependency)); | 783 | | | 784 | 20 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 20 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 20 | return Status::OK(); | 787 | 20 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _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 | 51.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 51.1k | RETURN_IF_ERROR(Base::open(state)); |
793 | 51.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 396k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 344k | RETURN_IF_ERROR( |
796 | 344k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 344k | } |
798 | 51.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 51.1k | return Status::OK(); |
800 | 51.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 375 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 375 | RETURN_IF_ERROR(Base::open(state)); | 793 | 375 | _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.51k | RETURN_IF_ERROR( | 796 | 1.51k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.51k | } | 798 | 375 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 375 | return Status::OK(); | 800 | 375 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 50.7k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 50.7k | RETURN_IF_ERROR(Base::open(state)); | 793 | 50.7k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 393k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 343k | RETURN_IF_ERROR( | 796 | 343k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 343k | } | 798 | 50.7k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 50.7k | return Status::OK(); | 800 | 50.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 20 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 20 | RETURN_IF_ERROR(Base::open(state)); | 793 | 20 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 360 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 340 | RETURN_IF_ERROR( | 796 | 340 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 340 | } | 798 | 20 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 20 | return Status::OK(); | 800 | 20 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _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 | 66.5k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 66.5k | return _writer->sink(block, eos); |
806 | 66.5k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.81k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.81k | return _writer->sink(block, eos); | 806 | 1.81k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 64.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 64.7k | return _writer->sink(block, eos); | 806 | 64.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 20 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 20 | return _writer->sink(block, eos); | 806 | 20 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _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 | 51.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 51.2k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 51.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 51.2k | 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 | 51.3k | if (_writer) { |
818 | 51.3k | Status st = _writer->get_writer_status(); |
819 | 51.3k | if (exec_status.ok()) { |
820 | 51.2k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 51.2k | : Status::Cancelled("force close")); |
822 | 51.2k | } else { |
823 | 95 | _writer->force_close(exec_status); |
824 | 95 | } |
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 | 51.3k | RETURN_IF_ERROR(st); |
829 | 51.3k | } |
830 | 51.2k | return Base::close(state, exec_status); |
831 | 51.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 364 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 364 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 364 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 364 | 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 | 364 | if (_writer) { | 818 | 364 | Status st = _writer->get_writer_status(); | 819 | 364 | if (exec_status.ok()) { | 820 | 364 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 364 | : Status::Cancelled("force close")); | 822 | 364 | } 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 | 364 | RETURN_IF_ERROR(st); | 829 | 364 | } | 830 | 364 | return Base::close(state, exec_status); | 831 | 364 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 50.8k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 50.8k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 50.8k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 50.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 | 50.9k | if (_writer) { | 818 | 50.9k | Status st = _writer->get_writer_status(); | 819 | 50.9k | if (exec_status.ok()) { | 820 | 50.8k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 50.8k | : Status::Cancelled("force close")); | 822 | 50.8k | } else { | 823 | 95 | _writer->force_close(exec_status); | 824 | 95 | } | 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 | 50.9k | RETURN_IF_ERROR(st); | 829 | 50.9k | } | 830 | 50.8k | return Base::close(state, exec_status); | 831 | 50.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 20 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 20 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 20 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 20 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 20 | if (_writer) { | 818 | 20 | Status st = _writer->get_writer_status(); | 819 | 20 | if (exec_status.ok()) { | 820 | 20 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 20 | : Status::Cancelled("force close")); | 822 | 20 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 20 | RETURN_IF_ERROR(st); | 829 | 20 | } | 830 | 20 | return Base::close(state, exec_status); | 831 | 20 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _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 |