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