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.77M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
122 | 1.77M | if (_parent->nereids_id() == -1) { |
123 | 931k | return fmt::format("(id={})", _parent->node_id()); |
124 | 931k | } else { |
125 | 844k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
126 | 844k | } |
127 | 1.77M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 69.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 69.3k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 69.3k | } else { | 125 | 69.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 69.3k | } | 127 | 69.3k | } |
_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 | 225k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 225k | if (_parent->nereids_id() == -1) { | 123 | 12 | return fmt::format("(id={})", _parent->node_id()); | 124 | 225k | } else { | 125 | 225k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 225k | } | 127 | 225k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 22 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 22 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 22 | } else { | 125 | 22 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 22 | } | 127 | 22 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 6.22k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 6.22k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 6.22k | } else { | 125 | 6.22k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 6.22k | } | 127 | 6.22k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 8.62k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 8.62k | if (_parent->nereids_id() == -1) { | 123 | 16 | return fmt::format("(id={})", _parent->node_id()); | 124 | 8.60k | } else { | 125 | 8.60k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 8.60k | } | 127 | 8.62k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 106k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 106k | if (_parent->nereids_id() == -1) { | 123 | 29 | return fmt::format("(id={})", _parent->node_id()); | 124 | 106k | } else { | 125 | 106k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 106k | } | 127 | 106k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 50.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 50.9k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 50.9k | } else { | 125 | 50.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 50.9k | } | 127 | 50.9k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 40 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 40 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 40 | } else { | 125 | 40 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 40 | } | 127 | 40 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 598k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 598k | if (_parent->nereids_id() == -1) { | 123 | 280k | return fmt::format("(id={})", _parent->node_id()); | 124 | 317k | } else { | 125 | 317k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 317k | } | 127 | 598k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 54.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 54.5k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 54.5k | } else { | 125 | 54.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 54.5k | } | 127 | 54.5k | } |
_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.26k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.26k | if (_parent->nereids_id() == -1) { | 123 | 5.26k | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.26k | } else { | 125 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 0 | } | 127 | 5.26k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 660 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 660 | if (_parent->nereids_id() == -1) { | 123 | 102 | return fmt::format("(id={})", _parent->node_id()); | 124 | 558 | } else { | 125 | 558 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 558 | } | 127 | 660 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 5.22k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.22k | if (_parent->nereids_id() == -1) { | 123 | 13 | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.21k | } else { | 125 | 5.21k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 5.21k | } | 127 | 5.22k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 643k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 645k | if (_parent->nereids_id() == -1) { | 123 | 645k | 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 | 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.19M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
131 | 1.19M | if (_parent->nereids_id() == -1) { |
132 | 668k | return fmt::format("(id={})", _parent->node_id()); |
133 | 668k | } else { |
134 | 526k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
135 | 526k | } |
136 | 1.19M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 117k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 117k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 117k | } else { | 134 | 117k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 117k | } | 136 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 2 | if (_parent->nereids_id() == -1) { | 132 | 1 | return fmt::format("(id={})", _parent->node_id()); | 133 | 1 | } else { | 134 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 1 | } | 136 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 228k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 228k | if (_parent->nereids_id() == -1) { | 132 | 9 | return fmt::format("(id={})", _parent->node_id()); | 133 | 228k | } else { | 134 | 228k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 228k | } | 136 | 228k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 29 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 29 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 29 | } else { | 134 | 29 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 29 | } | 136 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 6.24k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 6.24k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 6.24k | } else { | 134 | 6.24k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 6.24k | } | 136 | 6.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 8.65k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 8.65k | if (_parent->nereids_id() == -1) { | 132 | 16 | return fmt::format("(id={})", _parent->node_id()); | 133 | 8.63k | } else { | 134 | 8.63k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 8.63k | } | 136 | 8.65k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 106k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 106k | if (_parent->nereids_id() == -1) { | 132 | 29 | return fmt::format("(id={})", _parent->node_id()); | 133 | 106k | } else { | 134 | 106k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 106k | } | 136 | 106k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 50.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 50.8k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 50.8k | } else { | 134 | 50.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 50.8k | } | 136 | 50.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 50 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 50 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 50 | } else { | 134 | 50 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 50 | } | 136 | 50 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 18 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 18 | if (_parent->nereids_id() == -1) { | 132 | 18 | return fmt::format("(id={})", _parent->node_id()); | 133 | 18 | } else { | 134 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 0 | } | 136 | 18 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 7.85k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 7.85k | if (_parent->nereids_id() == -1) { | 132 | 3 | return fmt::format("(id={})", _parent->node_id()); | 133 | 7.85k | } else { | 134 | 7.85k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 7.85k | } | 136 | 7.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 670 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 670 | if (_parent->nereids_id() == -1) { | 132 | 102 | return fmt::format("(id={})", _parent->node_id()); | 133 | 568 | } else { | 134 | 568 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 568 | } | 136 | 670 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 12.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 12.6k | if (_parent->nereids_id() == -1) { | 132 | 12.6k | return fmt::format("(id={})", _parent->node_id()); | 133 | 18.4E | } else { | 134 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 18.4E | } | 136 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 255k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 255k | if (_parent->nereids_id() == -1) { | 132 | 255k | 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 | 255k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 399k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 399k | if (_parent->nereids_id() == -1) { | 132 | 399k | return fmt::format("(id={})", _parent->node_id()); | 133 | 399k | } else { | 134 | 81 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 81 | } | 136 | 399k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 25 | if (_parent->nereids_id() == -1) { | 132 | 25 | return fmt::format("(id={})", _parent->node_id()); | 133 | 25 | } else { | 134 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 0 | } | 136 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 338 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 338 | } else { | 134 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 338 | } | 136 | 338 | } |
|
137 | | |
138 | | template <typename SharedStateArg> |
139 | 30.5k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
140 | 30.5k | if (_terminated) { |
141 | 0 | return Status::OK(); |
142 | 0 | } |
143 | 30.5k | _terminated = true; |
144 | 30.5k | return Status::OK(); |
145 | 30.5k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 24.0k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 24.0k | _terminated = true; | 144 | 24.0k | return Status::OK(); | 145 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2.11k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.11k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.11k | _terminated = true; | 144 | 2.11k | return Status::OK(); | 145 | 2.11k | } |
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.26k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.26k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.26k | _terminated = true; | 144 | 2.26k | return Status::OK(); | 145 | 2.26k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 864 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 864 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 864 | _terminated = true; | 144 | 864 | return Status::OK(); | 145 | 864 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 579 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 579 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 579 | _terminated = true; | 144 | 579 | return Status::OK(); | 145 | 579 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 180 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 180 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 180 | _terminated = true; | 144 | 180 | return Status::OK(); | 145 | 180 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 4 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 4 | _terminated = true; | 144 | 4 | return Status::OK(); | 145 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 131 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 131 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 131 | _terminated = true; | 144 | 131 | return Status::OK(); | 145 | 131 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 10 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 10 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 10 | _terminated = true; | 144 | 10 | return Status::OK(); | 145 | 10 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 265 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 265 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 265 | _terminated = true; | 144 | 265 | return Status::OK(); | 145 | 265 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 132 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 132 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 132 | _terminated = true; | 144 | 132 | return Status::OK(); | 145 | 132 | } |
|
146 | | |
147 | 313k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
148 | 313k | return _child && _child->is_serial_operator() && !is_source() |
149 | 313k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
150 | 313k | : DataDistribution(TLocalPartitionType::NOOP); |
151 | 313k | } |
152 | | |
153 | 20.9k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
154 | 20.9k | if (!_child) { |
155 | 19.8k | return false; |
156 | 19.8k | } |
157 | 1.03k | if (_child->is_serial_operator()) { |
158 | 89 | return true; |
159 | 89 | } |
160 | 949 | const auto child_distribution = _child->required_data_distribution(state); |
161 | 949 | return child_distribution.need_local_exchange() && |
162 | 949 | !is_shuffled_exchange(child_distribution.distribution_type); |
163 | 1.03k | } |
164 | | |
165 | | template <typename SharedStateArg> |
166 | 16.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
167 | 16.8k | fmt::memory_buffer debug_string_buffer; |
168 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
169 | 16.8k | return fmt::to_string(debug_string_buffer); |
170 | 16.8k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 3 | fmt::memory_buffer debug_string_buffer; | 168 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 3 | return fmt::to_string(debug_string_buffer); | 170 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 16.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 16.8k | fmt::memory_buffer debug_string_buffer; | 168 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 16.8k | return fmt::to_string(debug_string_buffer); | 170 | 16.8k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 166 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 1 | fmt::memory_buffer debug_string_buffer; | 168 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 1 | return fmt::to_string(debug_string_buffer); | 170 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
171 | | |
172 | | template <typename SharedStateArg> |
173 | 16.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
174 | 16.8k | fmt::memory_buffer debug_string_buffer; |
175 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
176 | 16.8k | return fmt::to_string(debug_string_buffer); |
177 | 16.8k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 173 | 16.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 16.8k | fmt::memory_buffer debug_string_buffer; | 175 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 16.8k | return fmt::to_string(debug_string_buffer); | 177 | 16.8k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
178 | | |
179 | 16.8k | std::string OperatorXBase::debug_string(int indentation_level) const { |
180 | 16.8k | fmt::memory_buffer debug_string_buffer; |
181 | 16.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
182 | 16.8k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
183 | 16.8k | _is_serial_operator); |
184 | 16.8k | return fmt::to_string(debug_string_buffer); |
185 | 16.8k | } |
186 | | |
187 | 16.8k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
188 | 16.8k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
189 | 16.8k | } |
190 | | |
191 | 692k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
192 | 692k | std::string node_name = print_plan_node_type(tnode.node_type); |
193 | 692k | _nereids_id = tnode.nereids_id; |
194 | 692k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
195 | 6.46k | if (!has_projection()) { |
196 | 0 | return Status::InternalError("no final output tuple id"); |
197 | 0 | } |
198 | 6.46k | if (tnode.intermediate_output_tuple_id_list.size() != |
199 | 6.46k | 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.46k | } |
207 | 692k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
208 | 692k | _op_name = substr + "_OPERATOR"; |
209 | | |
210 | 692k | if (tnode.__isset.vconjunct) { |
211 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
212 | 692k | } else if (tnode.__isset.conjuncts) { |
213 | 277k | for (const auto& conjunct : tnode.conjuncts) { |
214 | 277k | VExprContextSPtr context; |
215 | 277k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
216 | 277k | _conjuncts.emplace_back(context); |
217 | 277k | } |
218 | 102k | } |
219 | | |
220 | | // create the projections expr |
221 | 692k | if (tnode.__isset.projections) { |
222 | 269k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
223 | 269k | } |
224 | 692k | if (!tnode.intermediate_projections_list.empty()) { |
225 | 6.46k | DCHECK(has_projection()) << "no final projections"; |
226 | 6.46k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
227 | 10.8k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
228 | 10.8k | VExprContextSPtrs projections; |
229 | 10.8k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
230 | 10.8k | _projection->intermediate_projections.push_back(projections); |
231 | 10.8k | } |
232 | 6.46k | } |
233 | 692k | return Status::OK(); |
234 | 692k | } |
235 | | |
236 | 719k | Status OperatorXBase::prepare(RuntimeState* state) { |
237 | 719k | for (auto& conjunct : _conjuncts) { |
238 | 277k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
239 | 277k | } |
240 | 719k | if (state->enable_adjust_conjunct_order_by_cost()) { |
241 | 669k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
242 | 341k | return a->execute_cost() < b->execute_cost(); |
243 | 341k | }); |
244 | 669k | }; |
245 | | |
246 | 719k | if (has_projection()) { |
247 | 269k | auto& projection = *_projection; |
248 | 280k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
249 | 10.8k | const auto& input_row_desc = |
250 | 10.8k | i == 0 ? operator_row_desc_before_projection() |
251 | 10.8k | : projection.intermediate_output_row_descriptors[i - 1]; |
252 | 10.8k | RETURN_IF_ERROR( |
253 | 10.8k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
254 | 10.8k | } |
255 | 269k | const auto& final_projection_input_row_desc = |
256 | 269k | projection.intermediate_output_row_descriptors.empty() |
257 | 269k | ? operator_row_desc_before_projection() |
258 | 269k | : projection.intermediate_output_row_descriptors.back(); |
259 | 269k | RETURN_IF_ERROR( |
260 | 269k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
261 | 269k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
262 | 269k | projection.output_row_descriptor)); |
263 | 269k | } |
264 | | |
265 | 719k | for (auto& conjunct : _conjuncts) { |
266 | 277k | RETURN_IF_ERROR(conjunct->open(state)); |
267 | 277k | } |
268 | 719k | if (has_projection()) { |
269 | 269k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
270 | 269k | for (auto& projections : _projection->intermediate_projections) { |
271 | 10.8k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
272 | 10.8k | } |
273 | 269k | } |
274 | 719k | if (_child && !is_source()) { |
275 | 99.3k | RETURN_IF_ERROR(_child->prepare(state)); |
276 | 99.3k | } |
277 | | |
278 | 719k | if (VExpr::contains_blockable_function(_conjuncts) || |
279 | 719k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
280 | 0 | _blockable = true; |
281 | 0 | } |
282 | | |
283 | 719k | return Status::OK(); |
284 | 719k | } |
285 | | |
286 | 7.27k | Status OperatorXBase::terminate(RuntimeState* state) { |
287 | 7.27k | if (_child && !is_source()) { |
288 | 684 | RETURN_IF_ERROR(_child->terminate(state)); |
289 | 684 | } |
290 | 7.27k | auto result = state->get_local_state_result(operator_id()); |
291 | 7.27k | if (!result) { |
292 | 0 | return result.error(); |
293 | 0 | } |
294 | 7.27k | return result.value()->terminate(state); |
295 | 7.27k | } |
296 | | |
297 | 4.78M | Status OperatorXBase::close(RuntimeState* state) { |
298 | 4.78M | if (_child && !is_source()) { |
299 | 764k | RETURN_IF_ERROR(_child->close(state)); |
300 | 764k | } |
301 | 4.78M | auto result = state->get_local_state_result(operator_id()); |
302 | 4.78M | if (!result) { |
303 | 0 | return result.error(); |
304 | 0 | } |
305 | 4.78M | return result.value()->close(state); |
306 | 4.78M | } |
307 | | |
308 | 280k | void PipelineXLocalStateBase::clear_origin_block() { |
309 | 280k | _origin_block.clear_column_data(_parent->operator_row_desc_before_projection().num_slots()); |
310 | 280k | } |
311 | | |
312 | 629k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 629k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 629k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 629k | return Status::OK(); |
317 | 629k | } |
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 | 281k | Block* output_block) const { |
326 | 281k | auto* local_state = state->get_local_state(operator_id()); |
327 | 281k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 281k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 281k | const size_t rows = origin_block->rows(); |
330 | 281k | if (rows == 0) { |
331 | 145k | return Status::OK(); |
332 | 145k | } |
333 | 135k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 135k | { |
336 | 135k | Block input_block = *origin_block; |
337 | | |
338 | 135k | ColumnsWithTypeAndName new_columns; |
339 | 135k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.59k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.59k | new_columns.resize(projections.size()); |
345 | 53.9k | for (int i = 0; i < projections.size(); i++) { |
346 | 50.3k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 50.3k | 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 | 50.3k | } |
355 | 3.58k | Block tmp_block {new_columns}; |
356 | 3.58k | input_block.swap(tmp_block); |
357 | 3.58k | } |
358 | | |
359 | 135k | 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 | 135k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 135k | output_block, _projection->output_row_descriptor); |
368 | 135k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 135k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 135k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 772k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 636k | ColumnPtr column_ptr; |
374 | 636k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 636k | 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 | 636k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 636k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 636k | if (column_ptr->is_exclusive()) { |
386 | 225k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 411k | } else { |
388 | 411k | shared_columns[i] = std::move(column_ptr); |
389 | 411k | } |
390 | 636k | } |
391 | | |
392 | 135k | scoped_mutable_block.restore(); |
393 | 772k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 636k | if (shared_columns[i]) { |
395 | 411k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 411k | } |
397 | 636k | } |
398 | 135k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 135k | local_state->_parent->operator_row_desc_before_projection().num_slots()); |
402 | 135k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 135k | return Status::OK(); |
405 | 135k | } |
406 | | |
407 | 4.03M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.03M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.03M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.03M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.03M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.03M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.03M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.03M | return Status::OK(); |
415 | 4.03M | } |
416 | 4.03M | } |
417 | 4.03M | }); |
418 | | |
419 | 4.03M | Status status; |
420 | 4.03M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.03M | Defer defer([&]() { |
422 | 4.03M | if (status.ok()) { |
423 | 4.03M | local_state->update_output_block_counters(*block); |
424 | 4.03M | } |
425 | 4.03M | }); |
426 | 4.03M | if (has_projection()) { |
427 | 280k | local_state->clear_origin_block(); |
428 | 280k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 280k | if (UNLIKELY(!status.ok())) { |
430 | 25 | return status; |
431 | 25 | } |
432 | 280k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 280k | return status; |
434 | 280k | } |
435 | 3.75M | status = get_block(state, block, eos); |
436 | 3.75M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.75M | return status; |
438 | 3.75M | } |
439 | | |
440 | 2.65M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.65M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.44k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.44k | *eos = true; |
444 | 9.44k | } |
445 | | |
446 | 2.65M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.65M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.65M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.65M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.65M | if (op_name == arg_op_name) { |
452 | 2.65M | *eos = true; |
453 | 2.65M | } |
454 | 2.65M | }); |
455 | | |
456 | 2.65M | if (auto rows = block->rows()) { |
457 | 764k | _num_rows_returned += rows; |
458 | 764k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 764k | } |
460 | 2.65M | } |
461 | | |
462 | 30.5k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 30.5k | auto result = state->get_sink_local_state_result(); |
464 | 30.5k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 30.5k | return result.value()->terminate(state); |
468 | 30.5k | } |
469 | | |
470 | 16.8k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 16.8k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 16.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 16.8k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 16.8k | return fmt::to_string(debug_string_buffer); |
476 | 16.8k | } |
477 | | |
478 | 16.8k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 16.8k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 16.8k | } |
481 | | |
482 | 357k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 357k | std::string op_name = "UNKNOWN_SINK"; |
484 | 357k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 357k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 357k | op_name = it->second; |
488 | 357k | } |
489 | 357k | _name = op_name + "_OPERATOR"; |
490 | 357k | return Status::OK(); |
491 | 357k | } |
492 | | |
493 | 309k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 309k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 309k | _nereids_id = tnode.nereids_id; |
496 | 309k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 309k | _name = substr + "_SINK_OPERATOR"; |
498 | 309k | return Status::OK(); |
499 | 309k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.72M | LocalSinkStateInfo& info) { |
504 | 1.72M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.72M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.72M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.72M | return Status::OK(); |
508 | 1.72M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 117k | LocalSinkStateInfo& info) { | 504 | 117k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 117k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 117k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 117k | return Status::OK(); | 508 | 117k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 352k | LocalSinkStateInfo& info) { | 504 | 352k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 352k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 352k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 352k | return Status::OK(); | 508 | 352k | } |
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 | 362 | LocalSinkStateInfo& info) { | 504 | 362 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 362 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 362 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 362 | return Status::OK(); | 508 | 362 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 47.6k | LocalSinkStateInfo& info) { | 504 | 47.6k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 47.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 47.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 47.6k | return Status::OK(); | 508 | 47.6k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 12 | LocalSinkStateInfo& info) { | 504 | 12 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 12 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 12 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 12 | return Status::OK(); | 508 | 12 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_25PaimonTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.64k | LocalSinkStateInfo& info) { | 504 | 8.64k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.64k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.64k | return Status::OK(); | 508 | 8.64k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 15 | LocalSinkStateInfo& info) { | 504 | 15 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 15 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 15 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 15 | return Status::OK(); | 508 | 15 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 228k | LocalSinkStateInfo& info) { | 504 | 228k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 228k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 228k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 228k | return Status::OK(); | 508 | 228k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 29 | LocalSinkStateInfo& info) { | 504 | 29 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 29 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 29 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 29 | return Status::OK(); | 508 | 29 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 255k | LocalSinkStateInfo& info) { | 504 | 255k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 255k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 255k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 255k | return Status::OK(); | 508 | 255k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 106k | LocalSinkStateInfo& info) { | 504 | 106k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 106k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 106k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 106k | return Status::OK(); | 508 | 106k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 50.8k | LocalSinkStateInfo& info) { | 504 | 50.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 50.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 50.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 50.8k | return Status::OK(); | 508 | 50.8k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 50 | LocalSinkStateInfo& info) { | 504 | 50 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 50 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 50 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 50 | return Status::OK(); | 508 | 50 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 526k | LocalSinkStateInfo& info) { | 504 | 526k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 526k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 526k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 526k | return Status::OK(); | 508 | 526k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.24k | LocalSinkStateInfo& info) { | 504 | 6.24k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.24k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.24k | return Status::OK(); | 508 | 6.24k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 7.86k | LocalSinkStateInfo& info) { | 504 | 7.86k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 7.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 7.86k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 7.86k | return Status::OK(); | 508 | 7.86k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.05k | LocalSinkStateInfo& info) { | 504 | 2.05k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.05k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.05k | return Status::OK(); | 508 | 2.05k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 567 | LocalSinkStateInfo& info) { | 504 | 567 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 567 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 567 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 567 | return Status::OK(); | 508 | 567 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.78k | LocalSinkStateInfo& info) { | 504 | 4.78k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.78k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.78k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.78k | return Status::OK(); | 508 | 4.78k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.57k | LocalSinkStateInfo& info) { | 504 | 2.57k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.57k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.57k | return Status::OK(); | 508 | 2.57k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.62k | LocalSinkStateInfo& info) { | 504 | 2.62k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.62k | return Status::OK(); | 508 | 2.62k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.55k | LocalSinkStateInfo& info) { | 504 | 2.55k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.55k | return Status::OK(); | 508 | 2.55k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1 | LocalSinkStateInfo& info) { | 504 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1 | return Status::OK(); | 508 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 567 | LocalSinkStateInfo& info) { | 504 | 567 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 567 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 567 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 567 | return Status::OK(); | 508 | 567 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 107 | LocalSinkStateInfo& info) { | 504 | 107 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 107 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 107 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 107 | return Status::OK(); | 508 | 107 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.39M | 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.39M | } else { |
519 | 1.39M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.39M | ss->id = operator_id(); |
521 | 1.39M | for (auto& dest : dests_id()) { |
522 | 1.38M | ss->related_op_ids.insert(dest); |
523 | 1.38M | } |
524 | 1.39M | return ss; |
525 | 1.39M | } |
526 | 1.39M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 104k | 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 | 104k | } else { | 519 | 104k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 104k | ss->id = operator_id(); | 521 | 104k | for (auto& dest : dests_id()) { | 522 | 104k | ss->related_op_ids.insert(dest); | 523 | 104k | } | 524 | 104k | return ss; | 525 | 104k | } | 526 | 104k | } |
_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 | 362 | 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 | 362 | } else { | 519 | 362 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 362 | ss->id = operator_id(); | 521 | 362 | for (auto& dest : dests_id()) { | 522 | 361 | ss->related_op_ids.insert(dest); | 523 | 361 | } | 524 | 362 | return ss; | 525 | 362 | } | 526 | 362 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 47.7k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 47.7k | } else { | 519 | 47.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 47.7k | ss->id = operator_id(); | 521 | 47.7k | for (auto& dest : dests_id()) { | 522 | 47.3k | ss->related_op_ids.insert(dest); | 523 | 47.3k | } | 524 | 47.7k | return ss; | 525 | 47.7k | } | 526 | 47.7k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 12 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 12 | } else { | 519 | 12 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 12 | ss->id = operator_id(); | 521 | 12 | for (auto& dest : dests_id()) { | 522 | 12 | ss->related_op_ids.insert(dest); | 523 | 12 | } | 524 | 12 | return ss; | 525 | 12 | } | 526 | 12 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25PaimonTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 8.68k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 8.68k | } else { | 519 | 8.68k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.68k | ss->id = operator_id(); | 521 | 8.68k | for (auto& dest : dests_id()) { | 522 | 8.68k | ss->related_op_ids.insert(dest); | 523 | 8.68k | } | 524 | 8.68k | return ss; | 525 | 8.68k | } | 526 | 8.68k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 15 | 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 | 15 | } else { | 519 | 15 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 15 | ss->id = operator_id(); | 521 | 15 | for (auto& dest : dests_id()) { | 522 | 15 | ss->related_op_ids.insert(dest); | 523 | 15 | } | 524 | 15 | return ss; | 525 | 15 | } | 526 | 15 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 229k | 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 | 229k | } else { | 519 | 229k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 229k | ss->id = operator_id(); | 521 | 229k | for (auto& dest : dests_id()) { | 522 | 229k | ss->related_op_ids.insert(dest); | 523 | 229k | } | 524 | 229k | return ss; | 525 | 229k | } | 526 | 229k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 31 | 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 | 31 | } else { | 519 | 31 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 31 | ss->id = operator_id(); | 521 | 31 | for (auto& dest : dests_id()) { | 522 | 31 | ss->related_op_ids.insert(dest); | 523 | 31 | } | 524 | 31 | return ss; | 525 | 31 | } | 526 | 31 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 107k | 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 | 107k | } else { | 519 | 107k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 107k | ss->id = operator_id(); | 521 | 107k | for (auto& dest : dests_id()) { | 522 | 107k | ss->related_op_ids.insert(dest); | 523 | 107k | } | 524 | 107k | return ss; | 525 | 107k | } | 526 | 107k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 49 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 49 | } else { | 519 | 49 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 49 | ss->id = operator_id(); | 521 | 49 | for (auto& dest : dests_id()) { | 522 | 49 | ss->related_op_ids.insert(dest); | 523 | 49 | } | 524 | 49 | return ss; | 525 | 49 | } | 526 | 49 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 527k | 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 | 527k | } else { | 519 | 527k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 527k | ss->id = operator_id(); | 521 | 527k | for (auto& dest : dests_id()) { | 522 | 522k | ss->related_op_ids.insert(dest); | 523 | 522k | } | 524 | 527k | return ss; | 525 | 527k | } | 526 | 527k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.25k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 6.25k | } else { | 519 | 6.25k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.25k | ss->id = operator_id(); | 521 | 6.25k | for (auto& dest : dests_id()) { | 522 | 6.25k | ss->related_op_ids.insert(dest); | 523 | 6.25k | } | 524 | 6.25k | return ss; | 525 | 6.25k | } | 526 | 6.25k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 670 | 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 | 670 | } else { | 519 | 670 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 670 | ss->id = operator_id(); | 521 | 671 | for (auto& dest : dests_id()) { | 522 | 671 | ss->related_op_ids.insert(dest); | 523 | 671 | } | 524 | 670 | return ss; | 525 | 670 | } | 526 | 670 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.61k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.61k | } else { | 519 | 2.61k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.61k | ss->id = operator_id(); | 521 | 2.61k | for (auto& dest : dests_id()) { | 522 | 2.61k | ss->related_op_ids.insert(dest); | 523 | 2.61k | } | 524 | 2.61k | return ss; | 525 | 2.61k | } | 526 | 2.61k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.55k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.55k | } else { | 519 | 2.55k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.55k | ss->id = operator_id(); | 521 | 2.55k | for (auto& dest : dests_id()) { | 522 | 2.54k | ss->related_op_ids.insert(dest); | 523 | 2.54k | } | 524 | 2.55k | return ss; | 525 | 2.55k | } | 526 | 2.55k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 569 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 569 | } else { | 519 | 569 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 569 | ss->id = operator_id(); | 521 | 569 | for (auto& dest : dests_id()) { | 522 | 564 | ss->related_op_ids.insert(dest); | 523 | 564 | } | 524 | 569 | return ss; | 525 | 569 | } | 526 | 569 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 107 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 107 | } else { | 519 | 107 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 107 | ss->id = operator_id(); | 521 | 107 | for (auto& dest : dests_id()) { | 522 | 107 | ss->related_op_ids.insert(dest); | 523 | 107 | } | 524 | 107 | return ss; | 525 | 107 | } | 526 | 107 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.03M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.03M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.03M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.03M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.03M | return Status::OK(); |
534 | 2.03M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 69.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 69.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 69.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 69.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 69.5k | return Status::OK(); | 534 | 69.5k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 245k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 245k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 245k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 245k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 245k | return Status::OK(); | 534 | 245k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 142 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 142 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 142 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 142 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 142 | return Status::OK(); | 534 | 142 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.22k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.22k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.22k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.22k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.22k | return Status::OK(); | 534 | 3.22k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.61k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.61k | return Status::OK(); | 534 | 8.61k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.81k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.81k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.81k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.81k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.81k | return Status::OK(); | 534 | 7.81k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 22 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 22 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 22 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 22 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 22 | return Status::OK(); | 534 | 22 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 220k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 220k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 220k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 220k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 220k | return Status::OK(); | 534 | 220k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 106k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 106k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 106k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 106k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 106k | return Status::OK(); | 534 | 106k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 51.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 51.0k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 51.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 51.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 51.0k | return Status::OK(); | 534 | 51.0k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 40 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 40 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 40 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 40 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 40 | return Status::OK(); | 534 | 40 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.29k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.29k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.29k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.29k | return Status::OK(); | 534 | 5.29k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 281k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 281k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 281k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 281k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 281k | return Status::OK(); | 534 | 281k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.34k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.34k | return Status::OK(); | 534 | 1.34k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.24k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.24k | return Status::OK(); | 534 | 6.24k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 27 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 27 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 27 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 27 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 27 | return Status::OK(); | 534 | 27 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.54k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.54k | return Status::OK(); | 534 | 1.54k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 54.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 54.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 54.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 54.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 54.6k | return Status::OK(); | 534 | 54.6k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.26k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.26k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.26k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.26k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.26k | return Status::OK(); | 534 | 5.26k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 560 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 560 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 560 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 560 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 560 | return Status::OK(); | 534 | 560 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.64k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.64k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.64k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.64k | return Status::OK(); | 534 | 2.64k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.57k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.57k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.57k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.57k | return Status::OK(); | 534 | 2.57k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 458 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 458 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 458 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 458 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 458 | return Status::OK(); | 534 | 458 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.69k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.69k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.69k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.69k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.69k | return Status::OK(); | 534 | 1.69k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.2k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.2k | return Status::OK(); | 534 | 10.2k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 648k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 648k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 648k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 648k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 648k | return Status::OK(); | 534 | 648k | } |
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 | 795 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 795 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 795 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 795 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 795 | return Status::OK(); | 534 | 795 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 913 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 913 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 913 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 913 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 913 | return Status::OK(); | 534 | 913 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.45k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.45k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.45k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.45k | return Status::OK(); | 534 | 8.45k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 286k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 286k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 286k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 286k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 286k | return Status::OK(); | 534 | 286k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.72M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.02M | : _num_rows_returned(0), |
542 | 2.02M | _rows_returned_counter(nullptr), |
543 | 2.02M | _parent(parent), |
544 | 2.02M | _state(state), |
545 | 2.02M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.03M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.03M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.03M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.03M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.03M | _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.03M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.03M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.03M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.03M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.03M | if constexpr (!is_fake_shared) { |
560 | 1.18M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 707k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 707k | .first.get() |
563 | 707k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 707k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 707k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 707k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 707k | } else if (info.shared_state) { |
569 | 411k | 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 | 411k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 411k | _dependency = _shared_state->create_source_dependency( |
576 | 411k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 411k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 411k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 411k | } else { |
580 | 70.7k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 8.53k | DCHECK(false); |
582 | 8.53k | } |
583 | 70.7k | } |
584 | 1.18M | } |
585 | | |
586 | 2.03M | 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.03M | _rows_returned_counter = |
591 | 2.03M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.03M | _blocks_returned_counter = |
593 | 2.03M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.03M | _output_block_bytes_counter = |
595 | 2.03M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.03M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.03M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.03M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.03M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.03M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.03M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.03M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.03M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.03M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.03M | _memory_used_counter = |
606 | 2.03M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.03M | _common_profile->add_info_string("IsColocate", |
608 | 2.03M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.03M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.03M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.03M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.03M | return Status::OK(); |
613 | 2.03M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 69.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 69.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 69.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 69.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 69.8k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 69.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 69.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 69.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 69.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 69.8k | if constexpr (!is_fake_shared) { | 560 | 69.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 13.0k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 13.0k | .first.get() | 563 | 13.0k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 13.0k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 13.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 13.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 56.8k | } 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 | 55.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 55.9k | _dependency = _shared_state->create_source_dependency( | 576 | 55.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 55.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 55.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 55.9k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 864 | } | 584 | 69.8k | } | 585 | | | 586 | 69.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 69.8k | _rows_returned_counter = | 591 | 69.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 69.8k | _blocks_returned_counter = | 593 | 69.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 69.8k | _output_block_bytes_counter = | 595 | 69.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 69.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 69.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 69.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 69.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 69.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 69.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 69.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 69.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 69.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 69.8k | _memory_used_counter = | 606 | 69.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 69.8k | _common_profile->add_info_string("IsColocate", | 608 | 69.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 69.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 69.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 69.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 69.8k | return Status::OK(); | 613 | 69.8k | } |
_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 | 229k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 229k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 229k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 229k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 229k | _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 | 229k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 229k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 229k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 229k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 229k | if constexpr (!is_fake_shared) { | 560 | 229k | 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 | 229k | } 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 | 220k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 220k | _dependency = _shared_state->create_source_dependency( | 576 | 220k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 220k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 220k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 220k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 9.02k | } | 584 | 229k | } | 585 | | | 586 | 229k | 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 | 229k | _rows_returned_counter = | 591 | 229k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 229k | _blocks_returned_counter = | 593 | 229k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 229k | _output_block_bytes_counter = | 595 | 229k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 229k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 229k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 229k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 229k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 229k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 229k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 229k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 229k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 229k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 229k | _memory_used_counter = | 606 | 229k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 229k | _common_profile->add_info_string("IsColocate", | 608 | 229k | std::to_string(_parent->is_colocated_operator())); | 609 | 229k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 229k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 229k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 229k | return Status::OK(); | 613 | 229k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 22 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 22 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 22 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 22 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 22 | _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 | 22 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 22 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 22 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 22 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 22 | if constexpr (!is_fake_shared) { | 560 | 22 | 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 | 22 | } 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 | 22 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 22 | _dependency = _shared_state->create_source_dependency( | 576 | 22 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 22 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 22 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 22 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 22 | } | 585 | | | 586 | 22 | 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 | 22 | _rows_returned_counter = | 591 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 22 | _blocks_returned_counter = | 593 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 22 | _output_block_bytes_counter = | 595 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 22 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 22 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 22 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 22 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 22 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 22 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 22 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 22 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 22 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 22 | _memory_used_counter = | 606 | 22 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 22 | _common_profile->add_info_string("IsColocate", | 608 | 22 | std::to_string(_parent->is_colocated_operator())); | 609 | 22 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 22 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 22 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 22 | return Status::OK(); | 613 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.25k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.25k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.25k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.25k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.25k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 6.25k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.25k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.25k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.25k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.25k | if constexpr (!is_fake_shared) { | 560 | 6.25k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 6.25k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 6.22k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.22k | _dependency = _shared_state->create_source_dependency( | 576 | 6.22k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.22k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.22k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.22k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 31 | } | 584 | 6.25k | } | 585 | | | 586 | 6.25k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 6.25k | _rows_returned_counter = | 591 | 6.25k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.25k | _blocks_returned_counter = | 593 | 6.25k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.25k | _output_block_bytes_counter = | 595 | 6.25k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.25k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.25k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.25k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.25k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.25k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.25k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.25k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.25k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.25k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.25k | _memory_used_counter = | 606 | 6.25k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.25k | _common_profile->add_info_string("IsColocate", | 608 | 6.25k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.25k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.25k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.25k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.25k | return Status::OK(); | 613 | 6.25k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.67k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.67k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.67k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.67k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.67k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 8.67k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.67k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.67k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.67k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.67k | if constexpr (!is_fake_shared) { | 560 | 8.67k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 8.67k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 8.61k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 8.61k | _dependency = _shared_state->create_source_dependency( | 576 | 8.61k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 8.61k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 8.61k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.61k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 59 | } | 584 | 8.67k | } | 585 | | | 586 | 8.67k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 8.67k | _rows_returned_counter = | 591 | 8.67k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.67k | _blocks_returned_counter = | 593 | 8.67k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.67k | _output_block_bytes_counter = | 595 | 8.67k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.67k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.67k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.67k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.67k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.67k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.67k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.67k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.67k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.67k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.67k | _memory_used_counter = | 606 | 8.67k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.67k | _common_profile->add_info_string("IsColocate", | 608 | 8.67k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.67k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.67k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.67k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.67k | return Status::OK(); | 613 | 8.67k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 107k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 107k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 107k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 107k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 107k | _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 | 107k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 107k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 107k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 107k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 107k | if constexpr (!is_fake_shared) { | 560 | 107k | 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 | 107k | } 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 | 105k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 105k | _dependency = _shared_state->create_source_dependency( | 576 | 105k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 105k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 105k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 105k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.30k | } | 584 | 107k | } | 585 | | | 586 | 107k | 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 | 107k | _rows_returned_counter = | 591 | 107k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 107k | _blocks_returned_counter = | 593 | 107k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 107k | _output_block_bytes_counter = | 595 | 107k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 107k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 107k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 107k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 107k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 107k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 107k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 107k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 107k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 107k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 107k | _memory_used_counter = | 606 | 107k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 107k | _common_profile->add_info_string("IsColocate", | 608 | 107k | std::to_string(_parent->is_colocated_operator())); | 609 | 107k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 107k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 107k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 107k | return Status::OK(); | 613 | 107k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 51.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 51.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 51.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 51.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 51.0k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 51.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 51.0k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 51.0k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 51.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 51.0k | if constexpr (!is_fake_shared) { | 560 | 51.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 51.0k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 51.0k | .first.get() | 563 | 51.0k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 51.0k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 51.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 51.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 51.0k | } | 585 | | | 586 | 51.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 51.0k | _rows_returned_counter = | 591 | 51.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 51.0k | _blocks_returned_counter = | 593 | 51.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 51.0k | _output_block_bytes_counter = | 595 | 51.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 51.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 51.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 51.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 51.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 51.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 51.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 51.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 51.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 51.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 51.0k | _memory_used_counter = | 606 | 51.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 51.0k | _common_profile->add_info_string("IsColocate", | 608 | 51.0k | std::to_string(_parent->is_colocated_operator())); | 609 | 51.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 51.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 51.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 51.0k | return Status::OK(); | 613 | 51.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 40 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 40 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 40 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 40 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 40 | _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 | 40 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 40 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 40 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 40 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 40 | if constexpr (!is_fake_shared) { | 560 | 40 | 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 | 40 | } 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 | 40 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 40 | _dependency = _shared_state->create_source_dependency( | 576 | 40 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 40 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 40 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 40 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 40 | } | 585 | | | 586 | 40 | 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 | 40 | _rows_returned_counter = | 591 | 40 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 40 | _blocks_returned_counter = | 593 | 40 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 40 | _output_block_bytes_counter = | 595 | 40 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 40 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 40 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 40 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 40 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 40 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 40 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 40 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 40 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 40 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 40 | _memory_used_counter = | 606 | 40 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 40 | _common_profile->add_info_string("IsColocate", | 608 | 40 | std::to_string(_parent->is_colocated_operator())); | 609 | 40 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 40 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 40 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 40 | return Status::OK(); | 613 | 40 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 847k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 847k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 847k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 847k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 847k | _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 | 847k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 847k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 847k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 847k | 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 | 847k | 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 | 847k | _rows_returned_counter = | 591 | 847k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 847k | _blocks_returned_counter = | 593 | 847k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 847k | _output_block_bytes_counter = | 595 | 847k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 847k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 847k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 847k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 847k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 847k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 847k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 847k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 847k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 847k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 847k | _memory_used_counter = | 606 | 847k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 847k | _common_profile->add_info_string("IsColocate", | 608 | 847k | std::to_string(_parent->is_colocated_operator())); | 609 | 847k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 847k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 847k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 847k | return Status::OK(); | 613 | 847k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 54.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 54.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 54.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 54.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 54.5k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 54.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 54.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 54.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 54.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 54.5k | if constexpr (!is_fake_shared) { | 560 | 54.5k | 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 | 54.5k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 3.60k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 3.60k | _dependency = _shared_state->create_source_dependency( | 576 | 3.60k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 3.60k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 3.60k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 50.9k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 50.9k | } | 584 | 54.5k | } | 585 | | | 586 | 54.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 54.5k | _rows_returned_counter = | 591 | 54.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 54.5k | _blocks_returned_counter = | 593 | 54.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 54.5k | _output_block_bytes_counter = | 595 | 54.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 54.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 54.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 54.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 54.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 54.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 54.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 54.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 54.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 54.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 54.5k | _memory_used_counter = | 606 | 54.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 54.5k | _common_profile->add_info_string("IsColocate", | 608 | 54.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 54.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 54.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 54.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 54.5k | return Status::OK(); | 613 | 54.5k | } |
_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.26k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.26k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.26k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.26k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.26k | _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.26k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.26k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.26k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.26k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.26k | if constexpr (!is_fake_shared) { | 560 | 5.26k | 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.26k | } 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.26k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.26k | _dependency = _shared_state->create_source_dependency( | 576 | 5.26k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.26k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 4 | } | 584 | 5.26k | } | 585 | | | 586 | 5.26k | 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.26k | _rows_returned_counter = | 591 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.26k | _blocks_returned_counter = | 593 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.26k | _output_block_bytes_counter = | 595 | 5.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.26k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.26k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.26k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.26k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.26k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.26k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.26k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.26k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.26k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.26k | _memory_used_counter = | 606 | 5.26k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.26k | _common_profile->add_info_string("IsColocate", | 608 | 5.26k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.26k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.26k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.26k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.26k | return Status::OK(); | 613 | 5.26k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 665 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 665 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 665 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 665 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 665 | _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 | 665 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 665 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 665 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 665 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 665 | if constexpr (!is_fake_shared) { | 560 | 665 | 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 | 669 | } 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 | 669 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 669 | _dependency = _shared_state->create_source_dependency( | 576 | 669 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 669 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 669 | _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 | 665 | } | 585 | | | 586 | 667 | 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 | 665 | _rows_returned_counter = | 591 | 665 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 665 | _blocks_returned_counter = | 593 | 665 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 665 | _output_block_bytes_counter = | 595 | 665 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 665 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 665 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 665 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 665 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 665 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 665 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 665 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 665 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 665 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 665 | _memory_used_counter = | 606 | 665 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 665 | _common_profile->add_info_string("IsColocate", | 608 | 665 | std::to_string(_parent->is_colocated_operator())); | 609 | 665 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 665 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 665 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 665 | return Status::OK(); | 613 | 665 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.23k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.23k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.23k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.23k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.23k | _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.23k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.23k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.23k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.23k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.23k | if constexpr (!is_fake_shared) { | 560 | 5.23k | 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.23k | } 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.20k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.20k | _dependency = _shared_state->create_source_dependency( | 576 | 5.20k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.20k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.20k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.20k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 28 | } | 584 | 5.23k | } | 585 | | | 586 | 5.23k | 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.23k | _rows_returned_counter = | 591 | 5.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.23k | _blocks_returned_counter = | 593 | 5.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.23k | _output_block_bytes_counter = | 595 | 5.23k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.23k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.23k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.23k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.23k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.23k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.23k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.23k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.23k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.23k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.23k | _memory_used_counter = | 606 | 5.23k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.23k | _common_profile->add_info_string("IsColocate", | 608 | 5.23k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.23k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.23k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.23k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.23k | return Status::OK(); | 613 | 5.23k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 651k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 651k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 651k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 651k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 651k | _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 | 651k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 651k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 651k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 651k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 651k | if constexpr (!is_fake_shared) { | 560 | 651k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 643k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 643k | .first.get() | 563 | 643k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 643k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 643k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 643k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 643k | } 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 | 8.53k | } else { | 580 | 8.53k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 8.53k | DCHECK(false); | 582 | 8.53k | } | 583 | 8.53k | } | 584 | 651k | } | 585 | | | 586 | 651k | 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 | 651k | _rows_returned_counter = | 591 | 651k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 651k | _blocks_returned_counter = | 593 | 651k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 651k | _output_block_bytes_counter = | 595 | 651k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 651k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 651k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 651k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 651k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 651k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 651k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 651k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 651k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 651k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 651k | _memory_used_counter = | 606 | 651k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 651k | _common_profile->add_info_string("IsColocate", | 608 | 651k | std::to_string(_parent->is_colocated_operator())); | 609 | 651k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 651k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 651k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 651k | return Status::OK(); | 613 | 651k | } |
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.04M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.04M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.35M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 305k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 305k | } |
621 | 2.04M | if (_parent->has_projection()) { |
622 | 385k | const auto& projection = *_parent->_projection; |
623 | 385k | _projections.resize(projection.projections.size()); |
624 | 2.40M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 2.01M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 2.01M | } |
627 | 385k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 401k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 15.5k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 173k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 158k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 158k | state, _intermediate_projections[i][j])); |
633 | 158k | } |
634 | 15.5k | } |
635 | 385k | } |
636 | 2.04M | return Status::OK(); |
637 | 2.04M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 70.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 70.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 71.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.43k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.43k | } | 621 | 70.0k | if (_parent->has_projection()) { | 622 | 70.0k | const auto& projection = *_parent->_projection; | 623 | 70.0k | _projections.resize(projection.projections.size()); | 624 | 387k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 317k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 317k | } | 627 | 70.0k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 74.9k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 4.93k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 110k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 105k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 105k | state, _intermediate_projections[i][j])); | 633 | 105k | } | 634 | 4.93k | } | 635 | 70.0k | } | 636 | 70.0k | return Status::OK(); | 637 | 70.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 | 230k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 230k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 230k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 230k | if (_parent->has_projection()) { | 622 | 80 | const auto& projection = *_parent->_projection; | 623 | 80 | _projections.resize(projection.projections.size()); | 624 | 402 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 322 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 322 | } | 627 | 80 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 80 | 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 | 80 | } | 636 | 230k | return Status::OK(); | 637 | 230k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 22 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 22 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 22 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 22 | 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 | 22 | return Status::OK(); | 637 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.26k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.26k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.33k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 76 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 76 | } | 621 | 6.26k | if (_parent->has_projection()) { | 622 | 6.26k | const auto& projection = *_parent->_projection; | 623 | 6.26k | _projections.resize(projection.projections.size()); | 624 | 29.0k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 22.7k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 22.7k | } | 627 | 6.26k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.28k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 23 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 162 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 139 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 139 | state, _intermediate_projections[i][j])); | 633 | 139 | } | 634 | 23 | } | 635 | 6.26k | } | 636 | 6.26k | return Status::OK(); | 637 | 6.26k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.69k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.69k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 9.62k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 930 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 930 | } | 621 | 8.69k | if (_parent->has_projection()) { | 622 | 4.55k | const auto& projection = *_parent->_projection; | 623 | 4.55k | _projections.resize(projection.projections.size()); | 624 | 18.7k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 14.1k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 14.1k | } | 627 | 4.55k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.65k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 92 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 697 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 605 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 605 | state, _intermediate_projections[i][j])); | 633 | 605 | } | 634 | 92 | } | 635 | 4.55k | } | 636 | 8.69k | return Status::OK(); | 637 | 8.69k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 107k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 107k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 108k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.32k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.32k | } | 621 | 107k | if (_parent->has_projection()) { | 622 | 31.4k | const auto& projection = *_parent->_projection; | 623 | 31.4k | _projections.resize(projection.projections.size()); | 624 | 283k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 251k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 251k | } | 627 | 31.4k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 32.1k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 730 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 4.52k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 3.79k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 3.79k | state, _intermediate_projections[i][j])); | 633 | 3.79k | } | 634 | 730 | } | 635 | 31.4k | } | 636 | 107k | return Status::OK(); | 637 | 107k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 51.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 51.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 51.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 11 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 11 | } | 621 | 51.0k | if (_parent->has_projection()) { | 622 | 163 | const auto& projection = *_parent->_projection; | 623 | 163 | _projections.resize(projection.projections.size()); | 624 | 604 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 441 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 441 | } | 627 | 163 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 164 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 1 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 3 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2 | state, _intermediate_projections[i][j])); | 633 | 2 | } | 634 | 1 | } | 635 | 163 | } | 636 | 51.0k | return Status::OK(); | 637 | 51.0k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 44 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 44 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 44 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 44 | if (_parent->has_projection()) { | 622 | 24 | const auto& projection = *_parent->_projection; | 623 | 24 | _projections.resize(projection.projections.size()); | 624 | 72 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 48 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 48 | } | 627 | 24 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 24 | 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 | 24 | } | 636 | 44 | return Status::OK(); | 637 | 44 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 851k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 851k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.15M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 300k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 300k | } | 621 | 851k | if (_parent->has_projection()) { | 622 | 261k | const auto& projection = *_parent->_projection; | 623 | 261k | _projections.resize(projection.projections.size()); | 624 | 1.57M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.31M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.31M | } | 627 | 261k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 271k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 9.61k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 56.4k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 46.8k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 46.8k | state, _intermediate_projections[i][j])); | 633 | 46.8k | } | 634 | 9.61k | } | 635 | 261k | } | 636 | 851k | return Status::OK(); | 637 | 851k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 54.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 54.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 54.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 54.8k | if (_parent->has_projection()) { | 622 | 11.4k | const auto& projection = *_parent->_projection; | 623 | 11.4k | _projections.resize(projection.projections.size()); | 624 | 110k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 99.4k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 99.4k | } | 627 | 11.4k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.6k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 119 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.97k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.85k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.85k | state, _intermediate_projections[i][j])); | 633 | 1.85k | } | 634 | 119 | } | 635 | 11.4k | } | 636 | 54.8k | return Status::OK(); | 637 | 54.8k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.24k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.24k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.67k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 430 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 430 | } | 621 | 5.24k | 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.24k | return Status::OK(); | 637 | 5.24k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 672 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 672 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 672 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 672 | 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 | 672 | return Status::OK(); | 637 | 672 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.24k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.24k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.24k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 5.24k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 227 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 167 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 167 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 60 | } | 636 | 5.24k | return Status::OK(); | 637 | 5.24k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 654k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 654k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 654k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 654k | 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 | 654k | return Status::OK(); | 637 | 654k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 169 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 169 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 169 | if (_parent->has_projection()) { | 622 | 166 | const auto& projection = *_parent->_projection; | 623 | 166 | _projections.resize(projection.projections.size()); | 624 | 491 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 166 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 169 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 166 | } | 636 | 169 | return Status::OK(); | 637 | 169 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 7.27k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.27k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 7.27k | _terminated = true; |
645 | 7.27k | return Status::OK(); |
646 | 7.27k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 390 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 390 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 390 | _terminated = true; | 645 | 390 | return Status::OK(); | 646 | 390 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 32 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 32 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 32 | _terminated = true; | 645 | 32 | return Status::OK(); | 646 | 32 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 51 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 51 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 51 | _terminated = true; | 645 | 51 | return Status::OK(); | 646 | 51 | } |
_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 | 96 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 96 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 96 | _terminated = true; | 645 | 96 | return Status::OK(); | 646 | 96 | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 2 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 2 | _terminated = true; | 645 | 2 | return Status::OK(); | 646 | 2 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.28k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.28k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5.28k | _terminated = true; | 645 | 5.28k | return Status::OK(); | 646 | 5.28k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 54 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 54 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 54 | _terminated = true; | 645 | 54 | return Status::OK(); | 646 | 54 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 3 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 3 | _terminated = true; | 645 | 3 | return Status::OK(); | 646 | 3 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 51 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 51 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 51 | _terminated = true; | 645 | 51 | return Status::OK(); | 646 | 51 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.27k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.27k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.27k | _terminated = true; | 645 | 1.27k | return Status::OK(); | 646 | 1.27k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 33 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 33 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 33 | _terminated = true; | 645 | 33 | return Status::OK(); | 646 | 33 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.30M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.30M | if (_closed) { |
651 | 260k | return Status::OK(); |
652 | 260k | } |
653 | 2.04M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.19M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.19M | } |
656 | 2.04M | _closed = true; |
657 | 2.04M | return Status::OK(); |
658 | 2.30M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 69.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 69.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 69.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 69.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 69.9k | } | 656 | 69.9k | _closed = true; | 657 | 69.9k | return Status::OK(); | 658 | 69.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 | 457k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 457k | if (_closed) { | 651 | 229k | return Status::OK(); | 652 | 229k | } | 653 | 227k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 227k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 227k | } | 656 | 227k | _closed = true; | 657 | 227k | return Status::OK(); | 658 | 457k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 22 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 22 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 22 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 22 | } | 656 | 22 | _closed = true; | 657 | 22 | return Status::OK(); | 658 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.25k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.25k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.25k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.25k | } | 656 | 6.25k | _closed = true; | 657 | 6.25k | return Status::OK(); | 658 | 6.25k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 17.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 17.5k | if (_closed) { | 651 | 8.89k | return Status::OK(); | 652 | 8.89k | } | 653 | 8.66k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.66k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.66k | } | 656 | 8.66k | _closed = true; | 657 | 8.66k | return Status::OK(); | 658 | 17.5k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 107k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 107k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 107k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 107k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 107k | } | 656 | 107k | _closed = true; | 657 | 107k | return Status::OK(); | 658 | 107k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 50.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 50.7k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 50.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 50.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 50.7k | } | 656 | 50.7k | _closed = true; | 657 | 50.7k | return Status::OK(); | 658 | 50.7k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 39 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 39 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 39 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 39 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 39 | } | 656 | 39 | _closed = true; | 657 | 39 | return Status::OK(); | 658 | 39 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 868k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 868k | if (_closed) { | 651 | 16.3k | return Status::OK(); | 652 | 16.3k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 852k | _closed = true; | 657 | 852k | return Status::OK(); | 658 | 868k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 54.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 54.8k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 54.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 54.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 54.8k | } | 656 | 54.8k | _closed = true; | 657 | 54.8k | return Status::OK(); | 658 | 54.8k | } |
_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.21k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.21k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.21k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.21k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.21k | } | 656 | 5.21k | _closed = true; | 657 | 5.21k | return Status::OK(); | 658 | 5.21k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 1.14k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 1.14k | if (_closed) { | 651 | 571 | return Status::OK(); | 652 | 571 | } | 653 | 569 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 569 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 569 | } | 656 | 569 | _closed = true; | 657 | 569 | return Status::OK(); | 658 | 1.14k | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.8k | if (_closed) { | 651 | 5.66k | return Status::OK(); | 652 | 5.66k | } | 653 | 5.21k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.21k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.21k | } | 656 | 5.21k | _closed = true; | 657 | 5.21k | return Status::OK(); | 658 | 10.8k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 656k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 656k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 656k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 656k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 656k | } | 656 | 656k | _closed = true; | 657 | 656k | return Status::OK(); | 658 | 656k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 334 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 334 | if (_closed) { | 651 | 174 | return Status::OK(); | 652 | 174 | } | 653 | 160 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 160 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 160 | } | 656 | 160 | _closed = true; | 657 | 160 | return Status::OK(); | 658 | 334 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.73M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.73M | _operator_profile = |
664 | 1.73M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.73M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.73M | _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.73M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.73M | _operator_profile->add_child(_common_profile, true); |
673 | 1.73M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.73M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.73M | _wait_for_finish_dependency_timer = |
677 | 1.73M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.73M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.73M | if constexpr (!is_fake_shared) { |
680 | 1.20M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.20M | info.shared_state_map.end()) { |
682 | 320k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 256k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 256k | } |
685 | 320k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 320k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 320k | ? 0 |
688 | 320k | : info.task_idx] |
689 | 320k | .get(); |
690 | 320k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 881k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 881k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 881k | _dependency = _shared_state->create_sink_dependency( |
697 | 881k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 881k | } |
699 | 1.20M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.20M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.20M | } |
702 | | |
703 | 1.73M | 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.73M | _rows_input_counter = |
708 | 1.73M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.73M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.73M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.73M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.73M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.73M | _memory_used_counter = |
714 | 1.73M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.73M | _common_profile->add_info_string("IsColocate", |
716 | 1.73M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.73M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.73M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.73M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.73M | return Status::OK(); |
721 | 1.73M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 117k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 117k | _operator_profile = | 664 | 117k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 117k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 117k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 117k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 117k | _operator_profile->add_child(_common_profile, true); | 673 | 117k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 117k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 117k | _wait_for_finish_dependency_timer = | 677 | 117k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 117k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 117k | if constexpr (!is_fake_shared) { | 680 | 117k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 117k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 13.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 13.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 13.2k | ? 0 | 688 | 13.2k | : info.task_idx] | 689 | 13.2k | .get(); | 690 | 13.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 104k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 104k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 104k | _dependency = _shared_state->create_sink_dependency( | 697 | 104k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 104k | } | 699 | 117k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 117k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 117k | } | 702 | | | 703 | 117k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 117k | _rows_input_counter = | 708 | 117k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 117k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 117k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 117k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 117k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 117k | _memory_used_counter = | 714 | 117k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 117k | _common_profile->add_info_string("IsColocate", | 716 | 117k | std::to_string(_parent->is_colocated_operator())); | 717 | 117k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 117k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 117k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 117k | return Status::OK(); | 721 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 229k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 229k | _operator_profile = | 664 | 229k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 229k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 229k | _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 | 229k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 229k | _operator_profile->add_child(_common_profile, true); | 673 | 229k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 229k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 229k | _wait_for_finish_dependency_timer = | 677 | 229k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 229k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 229k | if constexpr (!is_fake_shared) { | 680 | 229k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 229k | 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 | 229k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 229k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 229k | _dependency = _shared_state->create_sink_dependency( | 697 | 229k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 229k | } | 699 | 229k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 229k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 229k | } | 702 | | | 703 | 229k | 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 | 229k | _rows_input_counter = | 708 | 229k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 229k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 229k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 229k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 229k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 229k | _memory_used_counter = | 714 | 229k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 229k | _common_profile->add_info_string("IsColocate", | 716 | 229k | std::to_string(_parent->is_colocated_operator())); | 717 | 229k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 229k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 229k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 229k | return Status::OK(); | 721 | 229k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 29 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 29 | _operator_profile = | 664 | 29 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 29 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 29 | _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 | 29 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 29 | _operator_profile->add_child(_common_profile, true); | 673 | 29 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 29 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 29 | _wait_for_finish_dependency_timer = | 677 | 29 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 29 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 29 | if constexpr (!is_fake_shared) { | 680 | 29 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 29 | 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 | 29 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 29 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 29 | _dependency = _shared_state->create_sink_dependency( | 697 | 29 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 29 | } | 699 | 29 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 29 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 29 | } | 702 | | | 703 | 29 | 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 | 29 | _rows_input_counter = | 708 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 29 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 29 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 29 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 29 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 29 | _memory_used_counter = | 714 | 29 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 29 | _common_profile->add_info_string("IsColocate", | 716 | 29 | std::to_string(_parent->is_colocated_operator())); | 717 | 29 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 29 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 29 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 29 | return Status::OK(); | 721 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.25k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.25k | _operator_profile = | 664 | 6.25k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.25k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.25k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 6.25k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.25k | _operator_profile->add_child(_common_profile, true); | 673 | 6.25k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.25k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.25k | _wait_for_finish_dependency_timer = | 677 | 6.25k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.25k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.25k | if constexpr (!is_fake_shared) { | 680 | 6.25k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.25k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 6.25k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.25k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.25k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.25k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.25k | } | 699 | 6.25k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.25k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.25k | } | 702 | | | 703 | 6.25k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 6.25k | _rows_input_counter = | 708 | 6.25k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.25k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.25k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.25k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.25k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.25k | _memory_used_counter = | 714 | 6.25k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.25k | _common_profile->add_info_string("IsColocate", | 716 | 6.25k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.25k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.25k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.25k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.25k | return Status::OK(); | 721 | 6.25k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.68k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.68k | _operator_profile = | 664 | 8.68k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.68k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.68k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.68k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.68k | _operator_profile->add_child(_common_profile, true); | 673 | 8.68k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.68k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.68k | _wait_for_finish_dependency_timer = | 677 | 8.68k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.68k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.68k | if constexpr (!is_fake_shared) { | 680 | 8.68k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.68k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.68k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.68k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.68k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.68k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.68k | } | 699 | 8.68k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.68k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.68k | } | 702 | | | 703 | 8.68k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.68k | _rows_input_counter = | 708 | 8.68k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.68k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.68k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.68k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.68k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.68k | _memory_used_counter = | 714 | 8.68k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.68k | _common_profile->add_info_string("IsColocate", | 716 | 8.68k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.68k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.68k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.68k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.68k | return Status::OK(); | 721 | 8.68k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 107k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 107k | _operator_profile = | 664 | 107k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 107k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 107k | _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 | 107k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 107k | _operator_profile->add_child(_common_profile, true); | 673 | 107k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 107k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 107k | _wait_for_finish_dependency_timer = | 677 | 107k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 107k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 107k | if constexpr (!is_fake_shared) { | 680 | 107k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 107k | 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 | 107k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 107k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 107k | _dependency = _shared_state->create_sink_dependency( | 697 | 107k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 107k | } | 699 | 107k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 107k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 107k | } | 702 | | | 703 | 107k | 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 | 107k | _rows_input_counter = | 708 | 107k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 107k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 107k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 107k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 107k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 107k | _memory_used_counter = | 714 | 107k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 107k | _common_profile->add_info_string("IsColocate", | 716 | 107k | std::to_string(_parent->is_colocated_operator())); | 717 | 107k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 107k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 107k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 107k | return Status::OK(); | 721 | 107k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 50.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 50.9k | _operator_profile = | 664 | 50.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 50.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 50.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 | 50.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 50.9k | _operator_profile->add_child(_common_profile, true); | 673 | 50.9k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 50.9k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 50.9k | _wait_for_finish_dependency_timer = | 677 | 50.9k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 50.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 50.9k | if constexpr (!is_fake_shared) { | 680 | 50.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 51.0k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 51.0k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 51.0k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 51.0k | ? 0 | 688 | 51.0k | : info.task_idx] | 689 | 51.0k | .get(); | 690 | 51.0k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 50.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 50.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 50.9k | } | 702 | | | 703 | 50.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 | 50.9k | _rows_input_counter = | 708 | 50.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 50.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 50.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 50.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 50.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 50.9k | _memory_used_counter = | 714 | 50.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 50.9k | _common_profile->add_info_string("IsColocate", | 716 | 50.9k | std::to_string(_parent->is_colocated_operator())); | 717 | 50.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 50.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 50.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 50.9k | return Status::OK(); | 721 | 50.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 50 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 50 | _operator_profile = | 664 | 50 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 50 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 50 | _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 | 50 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 50 | _operator_profile->add_child(_common_profile, true); | 673 | 50 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 50 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 50 | _wait_for_finish_dependency_timer = | 677 | 50 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 50 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 50 | if constexpr (!is_fake_shared) { | 680 | 50 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 50 | 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 | 50 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 50 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 50 | _dependency = _shared_state->create_sink_dependency( | 697 | 50 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 50 | } | 699 | 50 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 50 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 50 | } | 702 | | | 703 | 50 | 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 | 50 | _rows_input_counter = | 708 | 50 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 50 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 50 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 50 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 50 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 50 | _memory_used_counter = | 714 | 50 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 50 | _common_profile->add_info_string("IsColocate", | 716 | 50 | std::to_string(_parent->is_colocated_operator())); | 717 | 50 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 50 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 50 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 50 | return Status::OK(); | 721 | 50 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 527k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 527k | _operator_profile = | 664 | 527k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 527k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 527k | _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 | 527k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 527k | _operator_profile->add_child(_common_profile, true); | 673 | 527k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 527k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 527k | _wait_for_finish_dependency_timer = | 677 | 527k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 527k | 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 | 527k | 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 | 527k | _rows_input_counter = | 708 | 527k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 527k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 527k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 527k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 527k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 527k | _memory_used_counter = | 714 | 527k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 527k | _common_profile->add_info_string("IsColocate", | 716 | 527k | std::to_string(_parent->is_colocated_operator())); | 717 | 527k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 527k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 527k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 527k | return Status::OK(); | 721 | 527k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 7.87k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 7.87k | _operator_profile = | 664 | 7.87k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 7.87k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 7.87k | _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 | 7.87k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 7.87k | _operator_profile->add_child(_common_profile, true); | 673 | 7.87k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 7.87k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 7.87k | _wait_for_finish_dependency_timer = | 677 | 7.87k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 7.87k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 7.87k | if constexpr (!is_fake_shared) { | 680 | 7.87k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 7.87k | 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 | 7.87k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 7.87k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 7.87k | _dependency = _shared_state->create_sink_dependency( | 697 | 7.87k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 7.87k | } | 699 | 7.87k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 7.87k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 7.87k | } | 702 | | | 703 | 7.87k | 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 | 7.87k | _rows_input_counter = | 708 | 7.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 7.87k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 7.87k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 7.87k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 7.87k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 7.87k | _memory_used_counter = | 714 | 7.87k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 7.87k | _common_profile->add_info_string("IsColocate", | 716 | 7.87k | std::to_string(_parent->is_colocated_operator())); | 717 | 7.87k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 7.87k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 7.87k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 7.87k | return Status::OK(); | 721 | 7.87k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 671 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 671 | _operator_profile = | 664 | 671 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 671 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 671 | _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 | 671 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 671 | _operator_profile->add_child(_common_profile, true); | 673 | 671 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 671 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 671 | _wait_for_finish_dependency_timer = | 677 | 671 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 671 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 671 | if constexpr (!is_fake_shared) { | 680 | 671 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 671 | 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 | 671 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 671 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 671 | _dependency = _shared_state->create_sink_dependency( | 697 | 671 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 671 | } | 699 | 671 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 671 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 671 | } | 702 | | | 703 | 673 | 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 | 671 | _rows_input_counter = | 708 | 671 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 671 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 671 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 671 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 671 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 671 | _memory_used_counter = | 714 | 671 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 671 | _common_profile->add_info_string("IsColocate", | 716 | 671 | std::to_string(_parent->is_colocated_operator())); | 717 | 671 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 671 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 671 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 671 | return Status::OK(); | 721 | 671 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.05k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.05k | _operator_profile = | 664 | 2.05k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.05k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.05k | _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.05k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.05k | _operator_profile->add_child(_common_profile, true); | 673 | 2.05k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.05k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.05k | _wait_for_finish_dependency_timer = | 677 | 2.05k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.05k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.05k | if constexpr (!is_fake_shared) { | 680 | 2.05k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.05k | 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.05k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.05k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.05k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.05k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.05k | } | 699 | 2.05k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.05k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.05k | } | 702 | | | 703 | 2.05k | 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.05k | _rows_input_counter = | 708 | 2.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.05k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.05k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.05k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.05k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.05k | _memory_used_counter = | 714 | 2.05k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.05k | _common_profile->add_info_string("IsColocate", | 716 | 2.05k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.05k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.05k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.05k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.05k | return Status::OK(); | 721 | 2.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.6k | _operator_profile = | 664 | 12.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.6k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.6k | _operator_profile->add_child(_common_profile, true); | 673 | 12.6k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.6k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.6k | _wait_for_finish_dependency_timer = | 677 | 12.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.6k | if constexpr (!is_fake_shared) { | 680 | 12.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.6k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.6k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.6k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.6k | } | 699 | 12.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.6k | } | 702 | | | 703 | 12.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.6k | _rows_input_counter = | 708 | 12.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.6k | _memory_used_counter = | 714 | 12.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.6k | _common_profile->add_info_string("IsColocate", | 716 | 12.6k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.6k | return Status::OK(); | 721 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 256k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 256k | _operator_profile = | 664 | 256k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 256k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 256k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 256k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 256k | _operator_profile->add_child(_common_profile, true); | 673 | 256k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 256k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 256k | _wait_for_finish_dependency_timer = | 677 | 256k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 256k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 256k | if constexpr (!is_fake_shared) { | 680 | 256k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 256k | info.shared_state_map.end()) { | 682 | 256k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 256k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 256k | } | 685 | 256k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 256k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 256k | ? 0 | 688 | 256k | : info.task_idx] | 689 | 256k | .get(); | 690 | 256k | _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 | 256k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 256k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 256k | } | 702 | | | 703 | 256k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 256k | _rows_input_counter = | 708 | 256k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 256k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 256k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 256k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 256k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 256k | _memory_used_counter = | 714 | 256k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 256k | _common_profile->add_info_string("IsColocate", | 716 | 256k | std::to_string(_parent->is_colocated_operator())); | 717 | 256k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 256k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 256k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 256k | return Status::OK(); | 721 | 256k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 402k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 402k | _operator_profile = | 664 | 402k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 402k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 402k | _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 | 402k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 402k | _operator_profile->add_child(_common_profile, true); | 673 | 402k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 402k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 402k | _wait_for_finish_dependency_timer = | 677 | 402k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 402k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 402k | if constexpr (!is_fake_shared) { | 680 | 402k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 402k | 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 | 402k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 402k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 402k | _dependency = _shared_state->create_sink_dependency( | 697 | 402k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 402k | } | 699 | 402k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 402k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 402k | } | 702 | | | 703 | 402k | 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 | 402k | _rows_input_counter = | 708 | 402k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 402k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 402k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 402k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 402k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 402k | _memory_used_counter = | 714 | 402k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 402k | _common_profile->add_info_string("IsColocate", | 716 | 402k | std::to_string(_parent->is_colocated_operator())); | 717 | 402k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 402k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 402k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 402k | return Status::OK(); | 721 | 402k | } |
_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.73M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.73M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.73M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.20M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.20M | } |
731 | 1.73M | _closed = true; |
732 | 1.73M | return Status::OK(); |
733 | 1.73M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 117k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 117k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 117k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 117k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 117k | } | 731 | 117k | _closed = true; | 732 | 117k | return Status::OK(); | 733 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 229k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 229k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 229k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 229k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 229k | } | 731 | 229k | _closed = true; | 732 | 229k | return Status::OK(); | 733 | 229k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 19 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 19 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 17 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 17 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 17 | } | 731 | 17 | _closed = true; | 732 | 17 | return Status::OK(); | 733 | 19 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.19k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.19k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.19k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.19k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.19k | } | 731 | 6.19k | _closed = true; | 732 | 6.19k | return Status::OK(); | 733 | 6.19k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.66k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.66k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.66k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.66k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.66k | } | 731 | 8.66k | _closed = true; | 732 | 8.66k | return Status::OK(); | 733 | 8.66k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 106k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 106k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 106k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 106k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 106k | } | 731 | 106k | _closed = true; | 732 | 106k | return Status::OK(); | 733 | 106k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 50.8k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 50.8k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 50.8k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 50.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 50.8k | } | 731 | 50.8k | _closed = true; | 732 | 50.8k | return Status::OK(); | 733 | 50.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 39 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 39 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 39 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 39 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 39 | } | 731 | 39 | _closed = true; | 732 | 39 | return Status::OK(); | 733 | 39 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 530k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 530k | 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 | 530k | _closed = true; | 732 | 530k | return Status::OK(); | 733 | 530k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 7.87k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 7.87k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 7.87k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 7.87k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 7.87k | } | 731 | 7.87k | _closed = true; | 732 | 7.87k | return Status::OK(); | 733 | 7.87k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 569 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 569 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 569 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 569 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 569 | } | 731 | 569 | _closed = true; | 732 | 569 | return Status::OK(); | 733 | 569 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.04k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.04k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.04k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.04k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.04k | } | 731 | 2.04k | _closed = true; | 732 | 2.04k | return Status::OK(); | 733 | 2.04k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.6k | } | 731 | 12.6k | _closed = true; | 732 | 12.6k | return Status::OK(); | 733 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 256k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 256k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 256k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 256k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 256k | } | 731 | 256k | _closed = true; | 732 | 256k | return Status::OK(); | 733 | 256k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 402k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 402k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 402k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 402k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 402k | } | 731 | 402k | _closed = true; | 732 | 402k | return Status::OK(); | 733 | 402k | } |
_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 | 2.95k | bool* eos) { |
738 | 2.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 2.95k | return pull(state, block, eos); |
740 | 2.95k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 37 | bool* eos) { | 738 | 37 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 37 | return pull(state, block, eos); | 740 | 37 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 2.92k | bool* eos) { | 738 | 2.92k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 2.91k | return pull(state, block, eos); | 740 | 2.92k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 517k | bool* eos) { |
745 | 517k | auto& local_state = get_local_state(state); |
746 | 517k | if (need_more_input_data(state)) { |
747 | 486k | local_state._child_block->clear_column_data( |
748 | 486k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 486k | .num_slots()); |
750 | 486k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 486k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 486k | *eos = local_state._child_eos; |
753 | 486k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 55.6k | return Status::OK(); |
755 | 55.6k | } |
756 | 430k | { |
757 | 430k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 430k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 430k | } |
760 | 430k | } |
761 | | |
762 | 461k | if (!need_more_input_data(state)) { |
763 | 431k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 431k | bool new_eos = false; |
765 | 431k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 431k | if (new_eos) { |
767 | 354k | *eos = true; |
768 | 354k | } else if (!need_more_input_data(state)) { |
769 | 24.2k | *eos = false; |
770 | 24.2k | } |
771 | 431k | } |
772 | 461k | return Status::OK(); |
773 | 461k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 133k | bool* eos) { | 745 | 133k | auto& local_state = get_local_state(state); | 746 | 133k | if (need_more_input_data(state)) { | 747 | 114k | local_state._child_block->clear_column_data( | 748 | 114k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 114k | .num_slots()); | 750 | 114k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 114k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 114k | *eos = local_state._child_eos; | 753 | 114k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 30.8k | return Status::OK(); | 755 | 30.8k | } | 756 | 84.1k | { | 757 | 84.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 84.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 84.1k | } | 760 | 84.1k | } | 761 | | | 762 | 102k | if (!need_more_input_data(state)) { | 763 | 102k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 102k | bool new_eos = false; | 765 | 102k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 102k | if (new_eos) { | 767 | 45.7k | *eos = true; | 768 | 56.8k | } else if (!need_more_input_data(state)) { | 769 | 11.2k | *eos = false; | 770 | 11.2k | } | 771 | 102k | } | 772 | 102k | return Status::OK(); | 773 | 102k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.15k | bool* eos) { | 745 | 4.15k | auto& local_state = get_local_state(state); | 746 | 4.15k | if (need_more_input_data(state)) { | 747 | 2.20k | local_state._child_block->clear_column_data( | 748 | 2.20k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.20k | .num_slots()); | 750 | 2.20k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.20k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.20k | *eos = local_state._child_eos; | 753 | 2.20k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 287 | return Status::OK(); | 755 | 287 | } | 756 | 1.92k | { | 757 | 1.92k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.92k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.92k | } | 760 | 1.92k | } | 761 | | | 762 | 3.88k | if (!need_more_input_data(state)) { | 763 | 3.88k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.88k | bool new_eos = false; | 765 | 3.88k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.88k | if (new_eos) { | 767 | 1.34k | *eos = true; | 768 | 2.53k | } else if (!need_more_input_data(state)) { | 769 | 1.95k | *eos = false; | 770 | 1.95k | } | 771 | 3.88k | } | 772 | 3.87k | return Status::OK(); | 773 | 3.87k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.93k | bool* eos) { | 745 | 1.93k | auto& local_state = get_local_state(state); | 746 | 1.93k | if (need_more_input_data(state)) { | 747 | 1.93k | local_state._child_block->clear_column_data( | 748 | 1.93k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.93k | .num_slots()); | 750 | 1.93k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.93k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.93k | *eos = local_state._child_eos; | 753 | 1.93k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 783 | return Status::OK(); | 755 | 783 | } | 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 | 795 | *eos = true; | 768 | 795 | } 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 | 19.6k | bool* eos) { | 745 | 19.6k | auto& local_state = get_local_state(state); | 746 | 19.6k | if (need_more_input_data(state)) { | 747 | 19.6k | local_state._child_block->clear_column_data( | 748 | 19.6k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 19.6k | .num_slots()); | 750 | 19.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 19.6k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 19.6k | *eos = local_state._child_eos; | 753 | 19.6k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.10k | return Status::OK(); | 755 | 4.10k | } | 756 | 15.5k | { | 757 | 15.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 15.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 15.5k | } | 760 | 15.5k | } | 761 | | | 762 | 15.5k | if (!need_more_input_data(state)) { | 763 | 8.47k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 8.47k | bool new_eos = false; | 765 | 8.47k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 8.47k | if (new_eos) { | 767 | 8.23k | *eos = true; | 768 | 8.23k | } else if (!need_more_input_data(state)) { | 769 | 15 | *eos = false; | 770 | 15 | } | 771 | 8.47k | } | 772 | 15.5k | return Status::OK(); | 773 | 15.5k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 326k | bool* eos) { | 745 | 326k | auto& local_state = get_local_state(state); | 746 | 327k | if (need_more_input_data(state)) { | 747 | 327k | local_state._child_block->clear_column_data( | 748 | 327k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 327k | .num_slots()); | 750 | 327k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 327k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 327k | *eos = local_state._child_eos; | 753 | 327k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 17.4k | return Status::OK(); | 755 | 17.4k | } | 756 | 309k | { | 757 | 309k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 309k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 309k | } | 760 | 309k | } | 761 | | | 762 | 309k | if (!need_more_input_data(state)) { | 763 | 287k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 287k | bool new_eos = false; | 765 | 287k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 287k | if (new_eos) { | 767 | 286k | *eos = true; | 768 | 286k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 287k | } | 772 | 309k | return Status::OK(); | 773 | 309k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.9k | bool* eos) { | 745 | 22.9k | auto& local_state = get_local_state(state); | 746 | 22.9k | if (need_more_input_data(state)) { | 747 | 12.2k | local_state._child_block->clear_column_data( | 748 | 12.2k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 12.2k | .num_slots()); | 750 | 12.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 12.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 12.2k | *eos = local_state._child_eos; | 753 | 12.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 1.41k | return Status::OK(); | 755 | 1.41k | } | 756 | 10.8k | { | 757 | 10.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.8k | } | 760 | 10.8k | } | 761 | | | 762 | 21.4k | if (!need_more_input_data(state)) { | 763 | 20.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 20.8k | bool new_eos = false; | 765 | 20.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 20.8k | if (new_eos) { | 767 | 6.20k | *eos = true; | 768 | 14.6k | } else if (!need_more_input_data(state)) { | 769 | 10.6k | *eos = false; | 770 | 10.6k | } | 771 | 20.8k | } | 772 | 21.4k | return Status::OK(); | 773 | 21.4k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 8.52k | bool* eos) { | 745 | 8.52k | auto& local_state = get_local_state(state); | 746 | 8.52k | if (need_more_input_data(state)) { | 747 | 8.16k | local_state._child_block->clear_column_data( | 748 | 8.16k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 8.16k | .num_slots()); | 750 | 8.16k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 8.16k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 8.16k | *eos = local_state._child_eos; | 753 | 8.16k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 885 | return Status::OK(); | 755 | 885 | } | 756 | 7.27k | { | 757 | 7.27k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 7.27k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 7.27k | } | 760 | 7.27k | } | 761 | | | 762 | 7.64k | if (!need_more_input_data(state)) { | 763 | 7.64k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.64k | bool new_eos = false; | 765 | 7.64k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.64k | if (new_eos) { | 767 | 5.20k | *eos = true; | 768 | 5.20k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 7.64k | } | 772 | 7.63k | return Status::OK(); | 773 | 7.63k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 47.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 47.4k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 47.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 47.4k | "AsyncWriterDependency", true); |
781 | 47.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 47.4k | _finish_dependency)); |
783 | | |
784 | 47.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 47.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 47.4k | return Status::OK(); |
787 | 47.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 362 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 362 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 362 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 362 | "AsyncWriterDependency", true); | 781 | 362 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 362 | _finish_dependency)); | 783 | | | 784 | 362 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 362 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 362 | return Status::OK(); | 787 | 362 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 47.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 47.1k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 47.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 47.1k | "AsyncWriterDependency", true); | 781 | 47.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 47.1k | _finish_dependency)); | 783 | | | 784 | 47.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 47.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 47.1k | return Status::OK(); | 787 | 47.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 12 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 12 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 12 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 12 | "AsyncWriterDependency", true); | 781 | 12 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 12 | _finish_dependency)); | 783 | | | 784 | 12 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 12 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 12 | return Status::OK(); | 787 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
788 | | |
789 | | template <typename Writer, typename Parent> |
790 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
791 | 48.2k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 48.2k | RETURN_IF_ERROR(Base::open(state)); |
793 | 48.2k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 383k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 335k | RETURN_IF_ERROR( |
796 | 335k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 335k | } |
798 | 48.2k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 48.2k | return Status::OK(); |
800 | 48.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 361 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 361 | RETURN_IF_ERROR(Base::open(state)); | 793 | 361 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.86k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.50k | RETURN_IF_ERROR( | 796 | 1.50k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.50k | } | 798 | 361 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 361 | return Status::OK(); | 800 | 361 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 47.8k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 47.8k | RETURN_IF_ERROR(Base::open(state)); | 793 | 47.8k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 381k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 333k | RETURN_IF_ERROR( | 796 | 333k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 333k | } | 798 | 47.8k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 47.8k | return Status::OK(); | 800 | 47.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 12 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 12 | RETURN_IF_ERROR(Base::open(state)); | 793 | 12 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 216 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 204 | RETURN_IF_ERROR( | 796 | 204 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 204 | } | 798 | 12 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 12 | return Status::OK(); | 800 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 64.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 64.4k | return _writer->sink(block, eos); |
806 | 64.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 2.04k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 2.04k | return _writer->sink(block, eos); | 806 | 2.04k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 62.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 62.3k | return _writer->sink(block, eos); | 806 | 62.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 12 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 12 | return _writer->sink(block, eos); | 806 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
807 | | |
808 | | template <typename Writer, typename Parent> |
809 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
810 | 48.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 48.3k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 48.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 48.3k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
816 | | // if the init failed, the _writer may be nullptr. so here need check |
817 | 48.3k | if (_writer) { |
818 | 48.3k | Status st = _writer->get_writer_status(); |
819 | 48.3k | if (exec_status.ok()) { |
820 | 48.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 48.3k | : Status::Cancelled("force close")); |
822 | 48.3k | } 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 | 48.3k | RETURN_IF_ERROR(st); |
829 | 48.3k | } |
830 | 48.3k | return Base::close(state, exec_status); |
831 | 48.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 350 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 350 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 350 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 350 | 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 | 350 | if (_writer) { | 818 | 350 | Status st = _writer->get_writer_status(); | 819 | 350 | if (exec_status.ok()) { | 820 | 350 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 350 | : Status::Cancelled("force close")); | 822 | 350 | } 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 | 350 | RETURN_IF_ERROR(st); | 829 | 350 | } | 830 | 350 | return Base::close(state, exec_status); | 831 | 350 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 48.0k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 48.0k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 48.0k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 48.0k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 48.0k | if (_writer) { | 818 | 48.0k | Status st = _writer->get_writer_status(); | 819 | 48.0k | if (exec_status.ok()) { | 820 | 47.9k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 47.9k | : Status::Cancelled("force close")); | 822 | 47.9k | } 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 | 48.0k | RETURN_IF_ERROR(st); | 829 | 48.0k | } | 830 | 47.9k | return Base::close(state, exec_status); | 831 | 48.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 12 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 12 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 12 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 12 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 12 | if (_writer) { | 818 | 12 | Status st = _writer->get_writer_status(); | 819 | 12 | if (exec_status.ok()) { | 820 | 12 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 12 | : Status::Cancelled("force close")); | 822 | 12 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 12 | RETURN_IF_ERROR(st); | 829 | 12 | } | 830 | 12 | return Base::close(state, exec_status); | 831 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
832 | | |
833 | | // An instantiation added outside the macros below needs the matching |
834 | | // 'extern template' declaration in the operator's header (enforced by |
835 | | // build-support/check-extern-template-pairing.py). Instantiations expanded |
836 | | // through DECLARE_OPERATOR are invisible to that check -- macro bodies are |
837 | | // skipped -- so their extern pairing has to be kept in sync by hand. |
838 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
839 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
840 | | DECLARE_OPERATOR(ResultSinkLocalState) |
841 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
842 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
843 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
844 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
845 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
846 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
847 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
848 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
849 | | DECLARE_OPERATOR(PaimonTableSinkLocalState) |
850 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
852 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
853 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
854 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
855 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
856 | | DECLARE_OPERATOR(SortSinkLocalState) |
857 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
858 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
859 | | DECLARE_OPERATOR(AggSinkLocalState) |
860 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
862 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
863 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
864 | | DECLARE_OPERATOR(UnionSinkLocalState) |
865 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
866 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
868 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
870 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
871 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
872 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
873 | | DECLARE_OPERATOR(CacheSinkLocalState) |
874 | | DECLARE_OPERATOR(DictSinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
876 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
877 | | |
878 | | #undef DECLARE_OPERATOR |
879 | | |
880 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
881 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
882 | | DECLARE_OPERATOR(OlapScanLocalState) |
883 | | DECLARE_OPERATOR(GroupCommitLocalState) |
884 | | DECLARE_OPERATOR(JDBCScanLocalState) |
885 | | DECLARE_OPERATOR(FileScanLocalState) |
886 | | DECLARE_OPERATOR(AnalyticLocalState) |
887 | | DECLARE_OPERATOR(SortLocalState) |
888 | | DECLARE_OPERATOR(SpillSortLocalState) |
889 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
890 | | DECLARE_OPERATOR(AggLocalState) |
891 | | DECLARE_OPERATOR(BucketedAggLocalState) |
892 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
893 | | DECLARE_OPERATOR(TableFunctionLocalState) |
894 | | DECLARE_OPERATOR(ExchangeLocalState) |
895 | | DECLARE_OPERATOR(RepeatLocalState) |
896 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
897 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
898 | | DECLARE_OPERATOR(EmptySetLocalState) |
899 | | DECLARE_OPERATOR(UnionSourceLocalState) |
900 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
901 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
903 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
904 | | DECLARE_OPERATOR(DataGenLocalState) |
905 | | DECLARE_OPERATOR(SchemaScanLocalState) |
906 | | DECLARE_OPERATOR(MetaScanLocalState) |
907 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
908 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
909 | | DECLARE_OPERATOR(CacheSourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
911 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
912 | | |
913 | | #ifdef BE_TEST |
914 | | DECLARE_OPERATOR(MockLocalState) |
915 | | DECLARE_OPERATOR(MockScanLocalState) |
916 | | #endif |
917 | | #undef DECLARE_OPERATOR |
918 | | |
919 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
920 | | template class StreamingOperatorX<SelectLocalState>; |
921 | | |
922 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
924 | | template class StatefulOperatorX<RepeatLocalState>; |
925 | | template class StatefulOperatorX<MaterializationLocalState>; |
926 | | template class StatefulOperatorX<StreamingAggLocalState>; |
927 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
928 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
929 | | template class StatefulOperatorX<TableFunctionLocalState>; |
930 | | |
931 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
933 | | template class PipelineXSinkLocalState<SortSharedState>; |
934 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
935 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
936 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
937 | | template class PipelineXSinkLocalState<AggSharedState>; |
938 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
940 | | template class PipelineXSinkLocalState<FakeSharedState>; |
941 | | template class PipelineXSinkLocalState<UnionSharedState>; |
942 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
943 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
944 | | template class PipelineXSinkLocalState<SetSharedState>; |
945 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
946 | | template class PipelineXSinkLocalState<BasicSharedState>; |
947 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
948 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
949 | | |
950 | | template class PipelineXLocalState<HashJoinSharedState>; |
951 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
952 | | template class PipelineXLocalState<SortSharedState>; |
953 | | template class PipelineXLocalState<SpillSortSharedState>; |
954 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
955 | | template class PipelineXLocalState<AnalyticSharedState>; |
956 | | template class PipelineXLocalState<AggSharedState>; |
957 | | template class PipelineXLocalState<BucketedAggSharedState>; |
958 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
959 | | template class PipelineXLocalState<FakeSharedState>; |
960 | | template class PipelineXLocalState<UnionSharedState>; |
961 | | template class PipelineXLocalState<DataQueueSharedState>; |
962 | | template class PipelineXLocalState<MultiCastSharedState>; |
963 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
964 | | template class PipelineXLocalState<SetSharedState>; |
965 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
966 | | template class PipelineXLocalState<BasicSharedState>; |
967 | | template class PipelineXLocalState<RecCTESharedState>; |
968 | | |
969 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
972 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
973 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
979 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
980 | | |
981 | | #ifdef BE_TEST |
982 | | template class OperatorX<DummyOperatorLocalState>; |
983 | | template class DataSinkOperatorX<DummySinkLocalState>; |
984 | | #endif |
985 | | |
986 | | } // namespace doris |