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.73M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.73M | if (_parent->nereids_id() == -1) { |
122 | 905k | return fmt::format("(id={})", _parent->node_id()); |
123 | 905k | } else { |
124 | 827k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 827k | } |
126 | 1.73M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 68.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 68.1k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 68.1k | } else { | 124 | 68.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 68.1k | } | 126 | 68.1k | } |
_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 | 155k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 155k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 155k | } else { | 124 | 155k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 155k | } | 126 | 155k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 21 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 21 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 21 | } else { | 124 | 21 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 21 | } | 126 | 21 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.69k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.69k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.69k | } else { | 124 | 5.69k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.69k | } | 126 | 5.69k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 6.82k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.82k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 6.81k | } else { | 124 | 6.81k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6.81k | } | 126 | 6.82k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 83.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 83.2k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 83.2k | } else { | 124 | 83.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 83.2k | } | 126 | 83.2k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 94.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 94.0k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 94.0k | } else { | 124 | 94.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 94.0k | } | 126 | 94.0k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 24 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 24 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 24 | } else { | 124 | 24 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 24 | } | 126 | 24 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 642k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 642k | if (_parent->nereids_id() == -1) { | 122 | 284k | return fmt::format("(id={})", _parent->node_id()); | 123 | 358k | } else { | 124 | 358k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 358k | } | 126 | 642k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 50.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 50.6k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 50.6k | } else { | 124 | 50.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 50.6k | } | 126 | 50.6k | } |
_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.13k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.13k | if (_parent->nereids_id() == -1) { | 122 | 5.12k | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.12k | } else { | 124 | 3 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 3 | } | 126 | 5.13k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 472 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 472 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 370 | } else { | 124 | 370 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 370 | } | 126 | 472 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.83k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.83k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.82k | } else { | 124 | 4.82k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.82k | } | 126 | 4.83k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 614k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 615k | if (_parent->nereids_id() == -1) { | 122 | 615k | 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 | 614k | } |
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.16M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.16M | if (_parent->nereids_id() == -1) { |
131 | 693k | return fmt::format("(id={})", _parent->node_id()); |
132 | 693k | } else { |
133 | 468k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 468k | } |
135 | 1.16M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 116k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 116k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 116k | } else { | 133 | 116k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 116k | } | 135 | 116k | } |
_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 | 157k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 157k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 157k | } else { | 133 | 157k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 157k | } | 135 | 157k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 28 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 28 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 28 | } else { | 133 | 28 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 28 | } | 135 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 5.78k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 5.78k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 5.78k | } else { | 133 | 5.78k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 5.78k | } | 135 | 5.78k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.83k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.83k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.82k | } else { | 133 | 6.82k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.82k | } | 135 | 6.83k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 83.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 83.6k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 83.6k | } else { | 133 | 83.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 83.6k | } | 135 | 83.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 93.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 93.7k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 93.7k | } else { | 133 | 93.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 93.7k | } | 135 | 93.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 34 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 34 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 34 | } else { | 133 | 34 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 34 | } | 135 | 34 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12 | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 12 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 4.89k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 4.89k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 4.88k | } else { | 133 | 4.88k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 4.88k | } | 135 | 4.89k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 479 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 479 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 377 | } else { | 133 | 377 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 377 | } | 135 | 479 | } |
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 | 237k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 237k | if (_parent->nereids_id() == -1) { | 131 | 237k | 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 | 237k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 442k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 443k | if (_parent->nereids_id() == -1) { | 131 | 443k | 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 | 442k | } |
_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 | 30.8k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 30.8k | if (_terminated) { |
140 | 1 | return Status::OK(); |
141 | 1 | } |
142 | 30.8k | _terminated = true; |
143 | 30.8k | return Status::OK(); |
144 | 30.8k | } _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 | 3.70k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3.70k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3.70k | _terminated = true; | 143 | 3.70k | return Status::OK(); | 144 | 3.70k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2 | _terminated = true; | 143 | 2 | return Status::OK(); | 144 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.70k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.70k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.70k | _terminated = true; | 143 | 1.70k | return Status::OK(); | 144 | 1.70k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 373 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 373 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 373 | _terminated = true; | 143 | 373 | return Status::OK(); | 144 | 373 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 570 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 570 | if (_terminated) { | 140 | 1 | return Status::OK(); | 141 | 1 | } | 142 | 569 | _terminated = true; | 143 | 569 | return Status::OK(); | 144 | 570 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 23 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 23 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 23 | _terminated = true; | 143 | 23 | return Status::OK(); | 144 | 23 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3 | _terminated = true; | 143 | 3 | return Status::OK(); | 144 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 138 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 138 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 138 | _terminated = true; | 143 | 138 | return Status::OK(); | 144 | 138 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 12 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 12 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 12 | _terminated = true; | 143 | 12 | return Status::OK(); | 144 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 130 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 130 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 130 | _terminated = true; | 143 | 130 | return Status::OK(); | 144 | 130 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 127 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 127 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 127 | _terminated = true; | 143 | 127 | return Status::OK(); | 144 | 127 | } |
|
145 | | |
146 | 292k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 292k | return _child && _child->is_serial_operator() && !is_source() |
148 | 292k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 292k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 292k | } |
151 | | |
152 | 26.9k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 26.9k | if (!_child) { |
154 | 26.0k | return false; |
155 | 26.0k | } |
156 | 898 | if (_child->is_serial_operator()) { |
157 | 102 | return true; |
158 | 102 | } |
159 | 796 | const auto child_distribution = _child->required_data_distribution(state); |
160 | 796 | return child_distribution.need_local_exchange() && |
161 | 796 | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 898 | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 19.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 19.7k | fmt::memory_buffer debug_string_buffer; |
167 | 19.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 19.7k | return fmt::to_string(debug_string_buffer); |
169 | 19.7k | } 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.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 19.7k | fmt::memory_buffer debug_string_buffer; | 167 | 19.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 19.7k | return fmt::to_string(debug_string_buffer); | 169 | 19.7k | } |
_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.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 19.7k | fmt::memory_buffer debug_string_buffer; |
174 | 19.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 19.7k | return fmt::to_string(debug_string_buffer); |
176 | 19.7k | } 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.7k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 19.7k | fmt::memory_buffer debug_string_buffer; | 174 | 19.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 19.7k | return fmt::to_string(debug_string_buffer); | 176 | 19.7k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 19.8k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 19.8k | fmt::memory_buffer debug_string_buffer; |
180 | 19.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 19.8k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 19.8k | _is_serial_operator); |
183 | 19.8k | return fmt::to_string(debug_string_buffer); |
184 | 19.8k | } |
185 | | |
186 | 19.7k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 19.7k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 19.7k | } |
189 | | |
190 | 618k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 618k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 618k | _nereids_id = tnode.nereids_id; |
193 | 618k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.20k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.20k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.20k | 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.20k | } |
206 | 618k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 618k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 618k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 618k | } 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 | 618k | if (tnode.__isset.projections) { |
221 | 235k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 235k | } |
223 | 618k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.20k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.20k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 4.20k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 4.20k | VExprContextSPtrs projections; |
228 | 4.20k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 4.20k | _projection->intermediate_projections.push_back(projections); |
230 | 4.20k | } |
231 | 3.20k | } |
232 | 618k | return Status::OK(); |
233 | 618k | } |
234 | | |
235 | 644k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 644k | for (auto& conjunct : _conjuncts) { |
237 | 253k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 253k | } |
239 | 644k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 594k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 327k | return a->execute_cost() < b->execute_cost(); |
242 | 327k | }); |
243 | 594k | }; |
244 | | |
245 | 644k | if (has_projection()) { |
246 | 234k | auto& projection = *_projection; |
247 | 239k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 4.20k | const auto& input_row_desc = |
249 | 4.20k | i == 0 ? operator_row_desc_before_projection() |
250 | 4.20k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 4.20k | RETURN_IF_ERROR( |
252 | 4.20k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 4.20k | } |
254 | 234k | const auto& final_projection_input_row_desc = |
255 | 234k | projection.intermediate_output_row_descriptors.empty() |
256 | 234k | ? operator_row_desc_before_projection() |
257 | 234k | : projection.intermediate_output_row_descriptors.back(); |
258 | 234k | RETURN_IF_ERROR( |
259 | 234k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 234k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 234k | projection.output_row_descriptor)); |
262 | 234k | } |
263 | | |
264 | 644k | for (auto& conjunct : _conjuncts) { |
265 | 253k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 253k | } |
267 | 644k | if (has_projection()) { |
268 | 234k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 234k | for (auto& projections : _projection->intermediate_projections) { |
270 | 4.20k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 4.20k | } |
272 | 234k | } |
273 | 644k | if (_child && !is_source()) { |
274 | 103k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 103k | } |
276 | | |
277 | 644k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 644k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 644k | return Status::OK(); |
283 | 644k | } |
284 | | |
285 | 7.25k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 7.25k | if (_child && !is_source()) { |
287 | 455 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 455 | } |
289 | 7.25k | auto result = state->get_local_state_result(operator_id()); |
290 | 7.25k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 7.25k | return result.value()->terminate(state); |
294 | 7.25k | } |
295 | | |
296 | 4.76M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.76M | if (_child && !is_source()) { |
298 | 857k | RETURN_IF_ERROR(_child->close(state)); |
299 | 857k | } |
300 | 4.76M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.76M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.76M | return result.value()->close(state); |
305 | 4.76M | } |
306 | | |
307 | 243k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 243k | _origin_block.clear_column_data( |
309 | 243k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 243k | } |
311 | | |
312 | 989k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 989k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 989k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 989k | return Status::OK(); |
317 | 989k | } |
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 | 243k | Block* output_block) const { |
326 | 243k | auto* local_state = state->get_local_state(operator_id()); |
327 | 243k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 243k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 243k | const size_t rows = origin_block->rows(); |
330 | 243k | if (rows == 0) { |
331 | 126k | return Status::OK(); |
332 | 126k | } |
333 | 116k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 116k | { |
336 | 116k | Block input_block = *origin_block; |
337 | | |
338 | 116k | ColumnsWithTypeAndName new_columns; |
339 | 116k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 1.35k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 1.35k | new_columns.resize(projections.size()); |
345 | 8.45k | for (int i = 0; i < projections.size(); i++) { |
346 | 7.09k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 7.09k | 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 | 7.09k | } |
355 | 1.35k | Block tmp_block {new_columns}; |
356 | 1.35k | input_block.swap(tmp_block); |
357 | 1.35k | } |
358 | | |
359 | 116k | 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 | 116k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 116k | output_block, _projection->output_row_descriptor); |
368 | 116k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 116k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 116k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 657k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 540k | ColumnPtr column_ptr; |
374 | 540k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 540k | 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 | 540k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 540k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 540k | if (column_ptr->is_exclusive()) { |
386 | 194k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 346k | } else { |
388 | 346k | shared_columns[i] = std::move(column_ptr); |
389 | 346k | } |
390 | 540k | } |
391 | | |
392 | 116k | scoped_mutable_block.restore(); |
393 | 657k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 541k | if (shared_columns[i]) { |
395 | 347k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 347k | } |
397 | 541k | } |
398 | 116k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 116k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 116k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 116k | return Status::OK(); |
405 | 116k | } |
406 | | |
407 | 4.42M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.42M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.42M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.42M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.42M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.42M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.42M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.42M | return Status::OK(); |
415 | 4.42M | } |
416 | 4.42M | } |
417 | 4.42M | }); |
418 | | |
419 | 4.42M | Status status; |
420 | 4.42M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.42M | Defer defer([&]() { |
422 | 4.43M | if (status.ok()) { |
423 | 4.43M | local_state->update_output_block_counters(*block); |
424 | 4.43M | } |
425 | 4.42M | }); |
426 | 4.42M | if (has_projection()) { |
427 | 243k | local_state->clear_origin_block(); |
428 | 243k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 243k | if (UNLIKELY(!status.ok())) { |
430 | 27 | return status; |
431 | 27 | } |
432 | 243k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 243k | return status; |
434 | 243k | } |
435 | 4.18M | status = get_block(state, block, eos); |
436 | 4.18M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 4.18M | return status; |
438 | 4.18M | } |
439 | | |
440 | 2.71M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.71M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 3.58k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 3.58k | *eos = true; |
444 | 3.58k | } |
445 | | |
446 | 2.71M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.71M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.71M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.71M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.71M | if (op_name == arg_op_name) { |
452 | 2.71M | *eos = true; |
453 | 2.71M | } |
454 | 2.71M | }); |
455 | | |
456 | 2.71M | if (auto rows = block->rows()) { |
457 | 675k | _num_rows_returned += rows; |
458 | 675k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 675k | } |
460 | 2.71M | } |
461 | | |
462 | 30.7k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 30.7k | auto result = state->get_sink_local_state_result(); |
464 | 30.7k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 30.7k | return result.value()->terminate(state); |
468 | 30.7k | } |
469 | | |
470 | 19.7k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 19.7k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 19.7k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 19.7k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 19.7k | return fmt::to_string(debug_string_buffer); |
476 | 19.7k | } |
477 | | |
478 | 19.7k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 19.7k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 19.7k | } |
481 | | |
482 | 316k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 316k | std::string op_name = "UNKNOWN_SINK"; |
484 | 316k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 317k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 317k | op_name = it->second; |
488 | 317k | } |
489 | 316k | _name = op_name + "_OPERATOR"; |
490 | 316k | return Status::OK(); |
491 | 316k | } |
492 | | |
493 | 270k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 270k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 270k | _nereids_id = tnode.nereids_id; |
496 | 270k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 270k | _name = substr + "_SINK_OPERATOR"; |
498 | 270k | return Status::OK(); |
499 | 270k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.62M | LocalSinkStateInfo& info) { |
504 | 1.62M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.62M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.62M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.62M | return Status::OK(); |
508 | 1.62M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 116k | LocalSinkStateInfo& info) { | 504 | 116k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 116k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 116k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 116k | return Status::OK(); | 508 | 116k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 401k | LocalSinkStateInfo& info) { | 504 | 401k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 401k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 401k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 401k | return Status::OK(); | 508 | 401k | } |
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 | 373 | LocalSinkStateInfo& info) { | 504 | 373 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 373 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 373 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 373 | return Status::OK(); | 508 | 373 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 41.7k | LocalSinkStateInfo& info) { | 504 | 41.7k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 41.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 41.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 41.7k | return Status::OK(); | 508 | 41.7k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 214 | LocalSinkStateInfo& info) { | 504 | 214 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 214 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 214 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 214 | return Status::OK(); | 508 | 214 | } |
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 | 6.82k | LocalSinkStateInfo& info) { | 504 | 6.82k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.82k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.82k | return Status::OK(); | 508 | 6.82k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9 | LocalSinkStateInfo& info) { | 504 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9 | return Status::OK(); | 508 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 157k | LocalSinkStateInfo& info) { | 504 | 157k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 157k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 157k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 157k | return Status::OK(); | 508 | 157k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 28 | LocalSinkStateInfo& info) { | 504 | 28 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 28 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 28 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 28 | return Status::OK(); | 508 | 28 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 237k | LocalSinkStateInfo& info) { | 504 | 237k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 237k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 237k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 237k | return Status::OK(); | 508 | 237k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 83.8k | LocalSinkStateInfo& info) { | 504 | 83.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 83.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 83.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 83.8k | return Status::OK(); | 508 | 83.8k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 93.6k | LocalSinkStateInfo& info) { | 504 | 93.6k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 93.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 93.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 93.6k | return Status::OK(); | 508 | 93.6k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 34 | LocalSinkStateInfo& info) { | 504 | 34 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 34 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 34 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 34 | return Status::OK(); | 508 | 34 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 454k | LocalSinkStateInfo& info) { | 504 | 454k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 454k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 454k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 454k | return Status::OK(); | 508 | 454k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 5.81k | LocalSinkStateInfo& info) { | 504 | 5.81k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 5.81k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 5.81k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 5.81k | return Status::OK(); | 508 | 5.81k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.88k | LocalSinkStateInfo& info) { | 504 | 4.88k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.88k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.88k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.88k | return Status::OK(); | 508 | 4.88k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.08k | LocalSinkStateInfo& info) { | 504 | 2.08k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.08k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.08k | return Status::OK(); | 508 | 2.08k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 379 | LocalSinkStateInfo& info) { | 504 | 379 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 379 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 379 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 379 | return Status::OK(); | 508 | 379 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.75k | LocalSinkStateInfo& info) { | 504 | 4.75k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.75k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.75k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.75k | return Status::OK(); | 508 | 4.75k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.56k | LocalSinkStateInfo& info) { | 504 | 2.56k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.56k | return Status::OK(); | 508 | 2.56k | } |
_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 | 567 | LocalSinkStateInfo& info) { | 504 | 567 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 567 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 567 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 567 | return Status::OK(); | 508 | 567 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 102 | LocalSinkStateInfo& info) { | 504 | 102 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 102 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 102 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 102 | return Status::OK(); | 508 | 102 | } |
_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.26M | 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.26M | } else { |
519 | 1.26M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.26M | ss->id = operator_id(); |
521 | 1.26M | for (auto& dest : dests_id()) { |
522 | 1.25M | ss->related_op_ids.insert(dest); |
523 | 1.25M | } |
524 | 1.26M | return ss; |
525 | 1.26M | } |
526 | 1.26M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 103k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 103k | } else { | 519 | 103k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 103k | ss->id = operator_id(); | 521 | 103k | for (auto& dest : dests_id()) { | 522 | 103k | ss->related_op_ids.insert(dest); | 523 | 103k | } | 524 | 103k | return ss; | 525 | 103k | } | 526 | 103k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 401k | 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 | 401k | } else { | 519 | 401k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 401k | ss->id = operator_id(); | 521 | 401k | for (auto& dest : dests_id()) { | 522 | 400k | ss->related_op_ids.insert(dest); | 523 | 400k | } | 524 | 401k | return ss; | 525 | 401k | } | 526 | 401k | } |
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 | 378 | 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 | 378 | } else { | 519 | 378 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 378 | ss->id = operator_id(); | 521 | 378 | for (auto& dest : dests_id()) { | 522 | 377 | ss->related_op_ids.insert(dest); | 523 | 377 | } | 524 | 378 | return ss; | 525 | 378 | } | 526 | 378 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 41.7k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 41.7k | } else { | 519 | 41.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 41.7k | ss->id = operator_id(); | 521 | 41.7k | for (auto& dest : dests_id()) { | 522 | 41.6k | ss->related_op_ids.insert(dest); | 523 | 41.6k | } | 524 | 41.7k | return ss; | 525 | 41.7k | } | 526 | 41.7k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 214 | 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 | 214 | } else { | 519 | 214 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 214 | ss->id = operator_id(); | 521 | 214 | for (auto& dest : dests_id()) { | 522 | 214 | ss->related_op_ids.insert(dest); | 523 | 214 | } | 524 | 214 | return ss; | 525 | 214 | } | 526 | 214 | } |
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 | 6.84k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 6.84k | } else { | 519 | 6.84k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.84k | ss->id = operator_id(); | 521 | 6.85k | for (auto& dest : dests_id()) { | 522 | 6.85k | ss->related_op_ids.insert(dest); | 523 | 6.85k | } | 524 | 6.84k | return ss; | 525 | 6.84k | } | 526 | 6.84k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 9 | } else { | 519 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 9 | ss->id = operator_id(); | 521 | 9 | for (auto& dest : dests_id()) { | 522 | 9 | ss->related_op_ids.insert(dest); | 523 | 9 | } | 524 | 9 | return ss; | 525 | 9 | } | 526 | 9 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 157k | 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 | 157k | } else { | 519 | 157k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 157k | ss->id = operator_id(); | 521 | 157k | for (auto& dest : dests_id()) { | 522 | 157k | ss->related_op_ids.insert(dest); | 523 | 157k | } | 524 | 157k | return ss; | 525 | 157k | } | 526 | 157k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 30 | 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 | 30 | } else { | 519 | 30 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 30 | ss->id = operator_id(); | 521 | 30 | for (auto& dest : dests_id()) { | 522 | 30 | ss->related_op_ids.insert(dest); | 523 | 30 | } | 524 | 30 | return ss; | 525 | 30 | } | 526 | 30 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 84.0k | 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 | 84.0k | } else { | 519 | 84.0k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 84.0k | ss->id = operator_id(); | 521 | 84.2k | for (auto& dest : dests_id()) { | 522 | 84.2k | ss->related_op_ids.insert(dest); | 523 | 84.2k | } | 524 | 84.0k | return ss; | 525 | 84.0k | } | 526 | 84.0k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 33 | 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 | 33 | } else { | 519 | 33 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 33 | ss->id = operator_id(); | 521 | 33 | for (auto& dest : dests_id()) { | 522 | 33 | ss->related_op_ids.insert(dest); | 523 | 33 | } | 524 | 33 | return ss; | 525 | 33 | } | 526 | 33 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 454k | 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 | 454k | } else { | 519 | 454k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 454k | ss->id = operator_id(); | 521 | 454k | for (auto& dest : dests_id()) { | 522 | 450k | ss->related_op_ids.insert(dest); | 523 | 450k | } | 524 | 454k | return ss; | 525 | 454k | } | 526 | 454k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 5.83k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 5.83k | } else { | 519 | 5.83k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 5.83k | ss->id = operator_id(); | 521 | 5.84k | for (auto& dest : dests_id()) { | 522 | 5.84k | ss->related_op_ids.insert(dest); | 523 | 5.84k | } | 524 | 5.83k | return ss; | 525 | 5.83k | } | 526 | 5.83k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 479 | 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 | 479 | } else { | 519 | 479 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 479 | ss->id = operator_id(); | 521 | 483 | for (auto& dest : dests_id()) { | 522 | 483 | ss->related_op_ids.insert(dest); | 523 | 483 | } | 524 | 479 | return ss; | 525 | 479 | } | 526 | 479 | } |
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.59k | ss->related_op_ids.insert(dest); | 523 | 2.59k | } | 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.50k | for (auto& dest : dests_id()) { | 522 | 2.50k | ss->related_op_ids.insert(dest); | 523 | 2.50k | } | 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 | 569 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 569 | } else { | 519 | 569 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 569 | ss->id = operator_id(); | 521 | 569 | for (auto& dest : dests_id()) { | 522 | 561 | ss->related_op_ids.insert(dest); | 523 | 561 | } | 524 | 569 | return ss; | 525 | 569 | } | 526 | 569 | } |
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 | 1.97M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 1.97M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 1.97M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 1.97M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 1.97M | return Status::OK(); |
534 | 1.97M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 68.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 68.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 68.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 68.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 68.7k | return Status::OK(); | 534 | 68.7k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 227k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 227k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 227k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 227k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 227k | return Status::OK(); | 534 | 227k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 160 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 160 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 160 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 160 | return Status::OK(); | 534 | 160 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.10k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.10k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.10k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.10k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.10k | return Status::OK(); | 534 | 3.10k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.81k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.81k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.81k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.81k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.81k | return Status::OK(); | 534 | 6.81k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.66k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.66k | return Status::OK(); | 534 | 6.66k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 21 | return Status::OK(); | 534 | 21 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 150k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 150k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 150k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 150k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 150k | return Status::OK(); | 534 | 150k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 83.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 83.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 83.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 83.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 83.6k | return Status::OK(); | 534 | 83.6k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 94.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 94.1k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 94.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 94.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 94.1k | return Status::OK(); | 534 | 94.1k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 24 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 24 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 24 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 24 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 24 | return Status::OK(); | 534 | 24 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.52k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.52k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.52k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.52k | return Status::OK(); | 534 | 4.52k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 285k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 285k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 285k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 285k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 285k | return Status::OK(); | 534 | 285k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 984 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 984 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 984 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 984 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 984 | return Status::OK(); | 534 | 984 | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.72k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.72k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.72k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.72k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.72k | return Status::OK(); | 534 | 5.72k | } |
_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.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.53k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.53k | return Status::OK(); | 534 | 1.53k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 50.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 50.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 50.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 50.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 50.7k | return Status::OK(); | 534 | 50.7k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.15k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.15k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.15k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.15k | return Status::OK(); | 534 | 5.15k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 379 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 379 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 379 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 379 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 379 | return Status::OK(); | 534 | 379 | } |
_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.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.42k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.42k | return Status::OK(); | 534 | 2.42k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 311 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 311 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 311 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 311 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 311 | return Status::OK(); | 534 | 311 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.57k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.57k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.57k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.57k | return Status::OK(); | 534 | 1.57k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.40k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.40k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.40k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.40k | return Status::OK(); | 534 | 4.40k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 621k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 621k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 621k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 621k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 621k | return Status::OK(); | 534 | 621k | } |
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 | 782 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 782 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 782 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 782 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 782 | return Status::OK(); | 534 | 782 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_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_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.01k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.01k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.01k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.01k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.01k | return Status::OK(); | 534 | 6.01k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 338k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 338k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 338k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 338k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 338k | return Status::OK(); | 534 | 338k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.61M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 1.96M | : _num_rows_returned(0), |
542 | 1.96M | _rows_returned_counter(nullptr), |
543 | 1.96M | _parent(parent), |
544 | 1.96M | _state(state), |
545 | 1.96M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 1.97M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 1.97M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 1.97M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 1.97M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 1.97M | _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.97M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 1.97M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 1.97M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 1.97M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 1.97M | if constexpr (!is_fake_shared) { |
560 | 1.10M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 727k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 727k | .first.get() |
563 | 727k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 727k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 727k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 727k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 727k | } else if (info.shared_state) { |
569 | 318k | 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 | 318k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 318k | _dependency = _shared_state->create_source_dependency( |
576 | 318k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 318k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 318k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 318k | } else { |
580 | 55.7k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 2.96k | DCHECK(false); |
582 | 2.96k | } |
583 | 55.7k | } |
584 | 1.10M | } |
585 | | |
586 | 1.97M | 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.97M | _rows_returned_counter = |
591 | 1.97M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 1.97M | _blocks_returned_counter = |
593 | 1.97M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 1.97M | _output_block_bytes_counter = |
595 | 1.97M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 1.97M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 1.97M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 1.97M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 1.97M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 1.97M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 1.97M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 1.97M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 1.97M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 1.97M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 1.97M | _memory_used_counter = |
606 | 1.97M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 1.97M | _common_profile->add_info_string("IsColocate", |
608 | 1.97M | std::to_string(_parent->is_colocated_operator())); |
609 | 1.97M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 1.97M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 1.97M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 1.97M | return Status::OK(); |
613 | 1.97M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 68.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 68.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 68.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 68.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 68.7k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 68.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 68.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 68.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 68.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 68.7k | if constexpr (!is_fake_shared) { | 560 | 68.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 12.9k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 12.9k | .first.get() | 563 | 12.9k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 12.9k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 12.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 12.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 55.7k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 55.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 55.1k | _dependency = _shared_state->create_source_dependency( | 576 | 55.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 55.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 55.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 55.1k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 606 | } | 584 | 68.7k | } | 585 | | | 586 | 68.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 68.7k | _rows_returned_counter = | 591 | 68.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 68.7k | _blocks_returned_counter = | 593 | 68.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 68.7k | _output_block_bytes_counter = | 595 | 68.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 68.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 68.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 68.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 68.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 68.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 68.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 68.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 68.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 68.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 68.7k | _memory_used_counter = | 606 | 68.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 68.7k | _common_profile->add_info_string("IsColocate", | 608 | 68.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 68.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 68.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 68.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 68.7k | return Status::OK(); | 613 | 68.7k | } |
_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 | 157k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 157k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 157k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 157k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 157k | _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 | 157k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 157k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 157k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 157k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 157k | if constexpr (!is_fake_shared) { | 560 | 157k | 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 | 157k | } 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 | 155k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 155k | _dependency = _shared_state->create_source_dependency( | 576 | 155k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 155k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 155k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 155k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.10k | } | 584 | 157k | } | 585 | | | 586 | 157k | 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 | 157k | _rows_returned_counter = | 591 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 157k | _blocks_returned_counter = | 593 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 157k | _output_block_bytes_counter = | 595 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 157k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 157k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 157k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 157k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 157k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 157k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 157k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 157k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 157k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 157k | _memory_used_counter = | 606 | 157k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 157k | _common_profile->add_info_string("IsColocate", | 608 | 157k | std::to_string(_parent->is_colocated_operator())); | 609 | 157k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 157k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 157k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 157k | return Status::OK(); | 613 | 157k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 21 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 21 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 21 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 21 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 21 | _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 | 21 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 21 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 21 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 21 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 21 | if constexpr (!is_fake_shared) { | 560 | 21 | 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 | 21 | } 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 | 21 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 21 | _dependency = _shared_state->create_source_dependency( | 576 | 21 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 21 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 21 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 21 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 21 | } | 585 | | | 586 | 21 | 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 | 21 | _rows_returned_counter = | 591 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 21 | _blocks_returned_counter = | 593 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 21 | _output_block_bytes_counter = | 595 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 21 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 21 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 21 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 21 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 21 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 21 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 21 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 21 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 21 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 21 | _memory_used_counter = | 606 | 21 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 21 | _common_profile->add_info_string("IsColocate", | 608 | 21 | std::to_string(_parent->is_colocated_operator())); | 609 | 21 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 21 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 21 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 21 | return Status::OK(); | 613 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.74k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.74k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.74k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.74k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.74k | _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.74k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.74k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.74k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.74k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.74k | if constexpr (!is_fake_shared) { | 560 | 5.74k | 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.74k | } 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.62k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.62k | _dependency = _shared_state->create_source_dependency( | 576 | 5.62k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.62k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.62k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.62k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 119 | } | 584 | 5.74k | } | 585 | | | 586 | 5.74k | 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.74k | _rows_returned_counter = | 591 | 5.74k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.74k | _blocks_returned_counter = | 593 | 5.74k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.74k | _output_block_bytes_counter = | 595 | 5.74k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.74k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.74k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.74k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.74k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.74k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.74k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.74k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.74k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.74k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.74k | _memory_used_counter = | 606 | 5.74k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.74k | _common_profile->add_info_string("IsColocate", | 608 | 5.74k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.74k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.74k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.74k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.74k | return Status::OK(); | 613 | 5.74k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.85k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.85k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.85k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.85k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.85k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 6.85k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.85k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.85k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.85k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.85k | if constexpr (!is_fake_shared) { | 560 | 6.85k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 6.85k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 6.80k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.80k | _dependency = _shared_state->create_source_dependency( | 576 | 6.80k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.80k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.80k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.80k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 43 | } | 584 | 6.85k | } | 585 | | | 586 | 6.85k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 6.85k | _rows_returned_counter = | 591 | 6.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.85k | _blocks_returned_counter = | 593 | 6.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.85k | _output_block_bytes_counter = | 595 | 6.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.85k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.85k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.85k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.85k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.85k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.85k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.85k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.85k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.85k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.85k | _memory_used_counter = | 606 | 6.85k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.85k | _common_profile->add_info_string("IsColocate", | 608 | 6.85k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.85k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.85k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.85k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.85k | return Status::OK(); | 613 | 6.85k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 83.9k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 83.9k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 83.9k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 83.9k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 83.9k | _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 | 83.9k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 83.9k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 83.9k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 83.9k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 83.9k | if constexpr (!is_fake_shared) { | 560 | 83.9k | 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 | 83.9k | } 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 | 82.8k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 82.8k | _dependency = _shared_state->create_source_dependency( | 576 | 82.8k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 82.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 82.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 82.8k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.10k | } | 584 | 83.9k | } | 585 | | | 586 | 83.9k | 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 | 83.9k | _rows_returned_counter = | 591 | 83.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 83.9k | _blocks_returned_counter = | 593 | 83.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 83.9k | _output_block_bytes_counter = | 595 | 83.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 83.9k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 83.9k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 83.9k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 83.9k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 83.9k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 83.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 83.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 83.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 83.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 83.9k | _memory_used_counter = | 606 | 83.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 83.9k | _common_profile->add_info_string("IsColocate", | 608 | 83.9k | std::to_string(_parent->is_colocated_operator())); | 609 | 83.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 83.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 83.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 83.9k | return Status::OK(); | 613 | 83.9k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 94.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 94.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 94.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 94.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 94.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 | 94.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 94.1k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 94.1k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 94.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 94.1k | if constexpr (!is_fake_shared) { | 560 | 94.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 94.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 94.2k | .first.get() | 563 | 94.2k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 94.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 94.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 94.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 94.1k | } | 585 | | | 586 | 94.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 | 94.1k | _rows_returned_counter = | 591 | 94.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 94.1k | _blocks_returned_counter = | 593 | 94.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 94.1k | _output_block_bytes_counter = | 595 | 94.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 94.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 94.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 94.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 94.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 94.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 94.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 94.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 94.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 94.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 94.1k | _memory_used_counter = | 606 | 94.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 94.1k | _common_profile->add_info_string("IsColocate", | 608 | 94.1k | std::to_string(_parent->is_colocated_operator())); | 609 | 94.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 94.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 94.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 94.1k | return Status::OK(); | 613 | 94.1k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 24 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 24 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 24 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 24 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 24 | _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 | 24 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 24 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 24 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 24 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 24 | if constexpr (!is_fake_shared) { | 560 | 24 | 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 | 24 | } 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 | 24 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 24 | _dependency = _shared_state->create_source_dependency( | 576 | 24 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 24 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 24 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 24 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 24 | } | 585 | | | 586 | 24 | 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 | 24 | _rows_returned_counter = | 591 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 24 | _blocks_returned_counter = | 593 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 24 | _output_block_bytes_counter = | 595 | 24 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 24 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 24 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 24 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 24 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 24 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 24 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 24 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 24 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 24 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 24 | _memory_used_counter = | 606 | 24 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 24 | _common_profile->add_info_string("IsColocate", | 608 | 24 | std::to_string(_parent->is_colocated_operator())); | 609 | 24 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 24 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 24 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 24 | return Status::OK(); | 613 | 24 | } |
_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 | 50.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 50.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 50.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 50.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 50.7k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 50.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 50.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 50.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 50.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 50.7k | if constexpr (!is_fake_shared) { | 560 | 50.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 50.7k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 2.29k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 2.29k | _dependency = _shared_state->create_source_dependency( | 576 | 2.29k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 2.29k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 2.29k | _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 | 50.7k | } | 585 | | | 586 | 50.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 50.7k | _rows_returned_counter = | 591 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 50.7k | _blocks_returned_counter = | 593 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 50.7k | _output_block_bytes_counter = | 595 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 50.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 50.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 50.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 50.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 50.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 50.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 50.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 50.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 50.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 50.7k | _memory_used_counter = | 606 | 50.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 50.7k | _common_profile->add_info_string("IsColocate", | 608 | 50.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 50.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 50.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 50.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 50.7k | return Status::OK(); | 613 | 50.7k | } |
_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.19k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.19k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.19k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.19k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.19k | _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.19k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.19k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.19k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.19k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.19k | if constexpr (!is_fake_shared) { | 560 | 5.19k | 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.19k | } 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.10k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.10k | _dependency = _shared_state->create_source_dependency( | 576 | 5.10k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.10k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.10k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.10k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 96 | } | 584 | 5.19k | } | 585 | | | 586 | 5.19k | 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.19k | _rows_returned_counter = | 591 | 5.19k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.19k | _blocks_returned_counter = | 593 | 5.19k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.19k | _output_block_bytes_counter = | 595 | 5.19k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.19k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.19k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.19k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.19k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.19k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.19k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.19k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.19k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.19k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.19k | _memory_used_counter = | 606 | 5.19k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.19k | _common_profile->add_info_string("IsColocate", | 608 | 5.19k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.19k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.19k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.19k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.19k | return Status::OK(); | 613 | 5.19k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 481 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 481 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 481 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 481 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 481 | _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 | 481 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 481 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 481 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 481 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 481 | if constexpr (!is_fake_shared) { | 560 | 481 | 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 | 481 | } 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 | 475 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 475 | _dependency = _shared_state->create_source_dependency( | 576 | 475 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 475 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 475 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 475 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 6 | } | 584 | 481 | } | 585 | | | 586 | 481 | 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 | 481 | _rows_returned_counter = | 591 | 481 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 481 | _blocks_returned_counter = | 593 | 481 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 481 | _output_block_bytes_counter = | 595 | 481 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 481 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 481 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 481 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 481 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 481 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 481 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 481 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 481 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 481 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 481 | _memory_used_counter = | 606 | 481 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 481 | _common_profile->add_info_string("IsColocate", | 608 | 481 | std::to_string(_parent->is_colocated_operator())); | 609 | 481 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 481 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 481 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 481 | return Status::OK(); | 613 | 481 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.03k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.03k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.03k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.03k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.03k | _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.03k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.03k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.03k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.03k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.03k | if constexpr (!is_fake_shared) { | 560 | 5.03k | 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.03k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.68k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.68k | _dependency = _shared_state->create_source_dependency( | 576 | 4.68k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.68k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.68k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.68k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 346 | } | 584 | 5.03k | } | 585 | | | 586 | 5.03k | 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.03k | _rows_returned_counter = | 591 | 5.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.03k | _blocks_returned_counter = | 593 | 5.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.03k | _output_block_bytes_counter = | 595 | 5.03k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.03k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.03k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.03k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.03k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.03k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.03k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.03k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.03k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.03k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.03k | _memory_used_counter = | 606 | 5.03k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.03k | _common_profile->add_info_string("IsColocate", | 608 | 5.03k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.03k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.03k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.03k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.03k | return Status::OK(); | 613 | 5.03k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 623k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 623k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 623k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 623k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 623k | _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 | 623k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 623k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 623k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 623k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 623k | if constexpr (!is_fake_shared) { | 560 | 623k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 620k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 620k | .first.get() | 563 | 620k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 620k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 620k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 620k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 620k | } 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.96k | } else { | 580 | 2.96k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 2.96k | DCHECK(false); | 582 | 2.96k | } | 583 | 2.96k | } | 584 | 623k | } | 585 | | | 586 | 623k | 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 | 623k | _rows_returned_counter = | 591 | 623k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 623k | _blocks_returned_counter = | 593 | 623k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 623k | _output_block_bytes_counter = | 595 | 623k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 623k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 623k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 623k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 623k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 623k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 623k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 623k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 623k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 623k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 623k | _memory_used_counter = | 606 | 623k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 623k | _common_profile->add_info_string("IsColocate", | 608 | 623k | std::to_string(_parent->is_colocated_operator())); | 609 | 623k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 623k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 623k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 623k | return Status::OK(); | 613 | 623k | } |
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 | 1.98M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 1.98M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.27M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 282k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 282k | } |
621 | 1.98M | if (_parent->has_projection()) { |
622 | 344k | const auto& projection = *_parent->_projection; |
623 | 344k | _projections.resize(projection.projections.size()); |
624 | 2.13M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.79M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.79M | } |
627 | 344k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 350k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 5.62k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 35.2k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 29.6k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 29.6k | state, _intermediate_projections[i][j])); |
633 | 29.6k | } |
634 | 5.62k | } |
635 | 344k | } |
636 | 1.98M | return Status::OK(); |
637 | 1.98M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 69.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 69.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 70.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 979 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 979 | } | 621 | 69.2k | if (_parent->has_projection()) { | 622 | 69.2k | const auto& projection = *_parent->_projection; | 623 | 69.2k | _projections.resize(projection.projections.size()); | 624 | 353k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 283k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 283k | } | 627 | 69.2k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 69.9k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 766 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 5.70k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 4.94k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 4.94k | state, _intermediate_projections[i][j])); | 633 | 4.94k | } | 634 | 766 | } | 635 | 69.2k | } | 636 | 69.2k | return Status::OK(); | 637 | 69.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 158k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 158k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 158k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 158k | if (_parent->has_projection()) { | 622 | 75 | const auto& projection = *_parent->_projection; | 623 | 75 | _projections.resize(projection.projections.size()); | 624 | 371 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 296 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 296 | } | 627 | 75 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 75 | 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 | 75 | } | 636 | 158k | return Status::OK(); | 637 | 158k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 21 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 21 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 21 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 21 | 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 | 21 | return Status::OK(); | 637 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.85k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.85k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.94k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 91 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 91 | } | 621 | 5.86k | if (_parent->has_projection()) { | 622 | 5.86k | const auto& projection = *_parent->_projection; | 623 | 5.86k | _projections.resize(projection.projections.size()); | 624 | 25.5k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 19.6k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 19.6k | } | 627 | 5.86k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.88k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 21 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 180 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 159 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 159 | state, _intermediate_projections[i][j])); | 633 | 159 | } | 634 | 21 | } | 635 | 5.86k | } | 636 | 5.85k | return Status::OK(); | 637 | 5.85k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.85k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.85k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 7.65k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 796 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 796 | } | 621 | 6.85k | if (_parent->has_projection()) { | 622 | 3.57k | const auto& projection = *_parent->_projection; | 623 | 3.57k | _projections.resize(projection.projections.size()); | 624 | 14.7k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 11.1k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 11.1k | } | 627 | 3.57k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 3.65k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 88 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 661 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 573 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 573 | state, _intermediate_projections[i][j])); | 633 | 573 | } | 634 | 88 | } | 635 | 3.57k | } | 636 | 6.85k | return Status::OK(); | 637 | 6.85k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 84.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 84.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 85.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.49k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.49k | } | 621 | 84.1k | if (_parent->has_projection()) { | 622 | 26.1k | const auto& projection = *_parent->_projection; | 623 | 26.1k | _projections.resize(projection.projections.size()); | 624 | 234k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 208k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 208k | } | 627 | 26.1k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 26.4k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 224 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.61k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.38k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.38k | state, _intermediate_projections[i][j])); | 633 | 1.38k | } | 634 | 224 | } | 635 | 26.1k | } | 636 | 84.1k | return Status::OK(); | 637 | 84.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 94.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 94.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 94.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 15 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 15 | } | 621 | 94.1k | if (_parent->has_projection()) { | 622 | 104 | const auto& projection = *_parent->_projection; | 623 | 104 | _projections.resize(projection.projections.size()); | 624 | 417 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 313 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 313 | } | 627 | 104 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 104 | 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 | 104 | } | 636 | 94.1k | return Status::OK(); | 637 | 94.1k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 28 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 28 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 28 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 28 | if (_parent->has_projection()) { | 622 | 10 | const auto& projection = *_parent->_projection; | 623 | 10 | _projections.resize(projection.projections.size()); | 624 | 30 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 20 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 20 | } | 627 | 10 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 10 | 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 | 10 | } | 636 | 28 | return Status::OK(); | 637 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 881k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 881k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.15M | 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 | 234k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 4.52k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 27.0k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 22.5k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 22.5k | state, _intermediate_projections[i][j])); | 633 | 22.5k | } | 634 | 4.52k | } | 635 | 230k | } | 636 | 881k | return Status::OK(); | 637 | 881k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 51.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 51.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 51.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 51.0k | if (_parent->has_projection()) { | 622 | 9.65k | const auto& projection = *_parent->_projection; | 623 | 9.65k | _projections.resize(projection.projections.size()); | 624 | 94.3k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 84.6k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 84.6k | } | 627 | 9.65k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 9.65k | 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 | 9.65k | } | 636 | 51.0k | return Status::OK(); | 637 | 51.0k | } |
_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.19k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.19k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.73k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 539 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 539 | } | 621 | 5.19k | 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.19k | return Status::OK(); | 637 | 5.19k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 483 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 483 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 483 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 483 | 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 | 483 | return Status::OK(); | 637 | 483 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.18k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.18k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.18k | 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.18k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 226 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 166 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 166 | } | 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.18k | return Status::OK(); | 637 | 5.18k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 626k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 626k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 626k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 626k | 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 | 626k | return Status::OK(); | 637 | 626k | } |
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.25k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.25k | if (_terminated) { |
642 | 2 | return Status::OK(); |
643 | 2 | } |
644 | 7.25k | _terminated = true; |
645 | 7.25k | return Status::OK(); |
646 | 7.25k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 250 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 250 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 250 | _terminated = true; | 645 | 250 | return Status::OK(); | 646 | 250 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 20 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 20 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 20 | _terminated = true; | 645 | 20 | return Status::OK(); | 646 | 20 | } |
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 | 143 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 143 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 143 | _terminated = true; | 645 | 143 | return Status::OK(); | 646 | 143 | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_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 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.72k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.72k | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 5.72k | _terminated = true; | 645 | 5.72k | return Status::OK(); | 646 | 5.72k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 12 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 12 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 12 | _terminated = true; | 645 | 12 | return Status::OK(); | 646 | 12 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 198 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 198 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 198 | _terminated = true; | 645 | 198 | return Status::OK(); | 646 | 198 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 842 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 842 | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 841 | _terminated = true; | 645 | 841 | return Status::OK(); | 646 | 842 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 35 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 35 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 35 | _terminated = true; | 645 | 35 | return Status::OK(); | 646 | 35 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.17M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.17M | if (_closed) { |
651 | 184k | return Status::OK(); |
652 | 184k | } |
653 | 1.98M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.10M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.10M | } |
656 | 1.98M | _closed = true; |
657 | 1.98M | return Status::OK(); |
658 | 2.17M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 69.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 69.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 69.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 69.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 69.1k | } | 656 | 69.1k | _closed = true; | 657 | 69.1k | return Status::OK(); | 658 | 69.1k | } |
_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 | 313k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 313k | if (_closed) { | 651 | 157k | return Status::OK(); | 652 | 157k | } | 653 | 156k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 156k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 156k | } | 656 | 156k | _closed = true; | 657 | 156k | return Status::OK(); | 658 | 313k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 21 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 21 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 21 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 21 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 21 | } | 656 | 21 | _closed = true; | 657 | 21 | return Status::OK(); | 658 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.84k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.84k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.84k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.84k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.84k | } | 656 | 5.84k | _closed = true; | 657 | 5.84k | return Status::OK(); | 658 | 5.84k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 13.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 13.8k | if (_closed) { | 651 | 7.00k | return Status::OK(); | 652 | 7.00k | } | 653 | 6.83k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.83k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.83k | } | 656 | 6.83k | _closed = true; | 657 | 6.83k | return Status::OK(); | 658 | 13.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 84.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 84.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 84.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 84.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 84.1k | } | 656 | 84.1k | _closed = true; | 657 | 84.1k | return Status::OK(); | 658 | 84.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 93.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 93.7k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 93.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 93.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 93.7k | } | 656 | 93.7k | _closed = true; | 657 | 93.7k | return Status::OK(); | 658 | 93.7k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 23 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 23 | } | 656 | 23 | _closed = true; | 657 | 23 | return Status::OK(); | 658 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 896k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 896k | if (_closed) { | 651 | 14.5k | return Status::OK(); | 652 | 14.5k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 881k | _closed = true; | 657 | 881k | return Status::OK(); | 658 | 896k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 51.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 51.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 51.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 51.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 51.0k | } | 656 | 51.0k | _closed = true; | 657 | 51.0k | return Status::OK(); | 658 | 51.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 27 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 27 | if (_closed) { | 651 | 13 | return Status::OK(); | 652 | 13 | } | 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 | 27 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.17k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.17k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.17k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.17k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.17k | } | 656 | 5.17k | _closed = true; | 657 | 5.17k | return Status::OK(); | 658 | 5.17k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 761 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 761 | if (_closed) { | 651 | 380 | return Status::OK(); | 652 | 380 | } | 653 | 381 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 381 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 381 | } | 656 | 381 | _closed = true; | 657 | 381 | return Status::OK(); | 658 | 761 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.6k | if (_closed) { | 651 | 5.42k | return Status::OK(); | 652 | 5.42k | } | 653 | 5.17k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.17k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.17k | } | 656 | 5.17k | _closed = true; | 657 | 5.17k | return Status::OK(); | 658 | 10.6k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 627k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 627k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 627k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 627k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 627k | } | 656 | 627k | _closed = true; | 657 | 627k | return Status::OK(); | 658 | 627k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 322 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 322 | if (_closed) { | 651 | 167 | return Status::OK(); | 652 | 167 | } | 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 | 322 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.62M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.62M | _operator_profile = |
664 | 1.62M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.62M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.62M | _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.62M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.62M | _operator_profile->add_child(_common_profile, true); |
673 | 1.62M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.62M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.62M | _wait_for_finish_dependency_timer = |
677 | 1.62M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.62M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.62M | if constexpr (!is_fake_shared) { |
680 | 1.16M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.16M | info.shared_state_map.end()) { |
682 | 345k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 238k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 238k | } |
685 | 345k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 345k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 345k | ? 0 |
688 | 345k | : info.task_idx] |
689 | 345k | .get(); |
690 | 345k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 823k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 823k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 823k | _dependency = _shared_state->create_sink_dependency( |
697 | 823k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 823k | } |
699 | 1.16M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.16M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.16M | } |
702 | | |
703 | 1.62M | 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.62M | _rows_input_counter = |
708 | 1.62M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.62M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.62M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.62M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.62M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.62M | _memory_used_counter = |
714 | 1.62M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.62M | _common_profile->add_info_string("IsColocate", |
716 | 1.62M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.62M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.62M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.62M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.62M | return Status::OK(); |
721 | 1.62M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 116k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 116k | _operator_profile = | 664 | 116k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 116k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 116k | _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 | 116k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 116k | _operator_profile->add_child(_common_profile, true); | 673 | 116k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 116k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 116k | _wait_for_finish_dependency_timer = | 677 | 116k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 116k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 116k | if constexpr (!is_fake_shared) { | 680 | 116k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 116k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 13.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 13.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 13.2k | ? 0 | 688 | 13.2k | : info.task_idx] | 689 | 13.2k | .get(); | 690 | 13.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 103k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 103k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 103k | _dependency = _shared_state->create_sink_dependency( | 697 | 103k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 103k | } | 699 | 116k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 116k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 116k | } | 702 | | | 703 | 116k | 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 | 116k | _rows_input_counter = | 708 | 116k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 116k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 116k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 116k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 116k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 116k | _memory_used_counter = | 714 | 116k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 116k | _common_profile->add_info_string("IsColocate", | 716 | 116k | std::to_string(_parent->is_colocated_operator())); | 717 | 116k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 116k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 116k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 116k | return Status::OK(); | 721 | 116k | } |
_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 | 157k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 157k | _operator_profile = | 664 | 157k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 157k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 157k | _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 | 157k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 157k | _operator_profile->add_child(_common_profile, true); | 673 | 157k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 157k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 157k | _wait_for_finish_dependency_timer = | 677 | 157k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 157k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 157k | if constexpr (!is_fake_shared) { | 680 | 157k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 157k | 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 | 157k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 157k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 157k | _dependency = _shared_state->create_sink_dependency( | 697 | 157k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 157k | } | 699 | 157k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 157k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 157k | } | 702 | | | 703 | 157k | 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 | 157k | _rows_input_counter = | 708 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 157k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 157k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 157k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 157k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 157k | _memory_used_counter = | 714 | 157k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 157k | _common_profile->add_info_string("IsColocate", | 716 | 157k | std::to_string(_parent->is_colocated_operator())); | 717 | 157k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 157k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 157k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 157k | return Status::OK(); | 721 | 157k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 28 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 28 | _operator_profile = | 664 | 28 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 28 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 28 | _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 | 28 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 28 | _operator_profile->add_child(_common_profile, true); | 673 | 28 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 28 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 28 | _wait_for_finish_dependency_timer = | 677 | 28 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 28 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 28 | if constexpr (!is_fake_shared) { | 680 | 28 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 28 | 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 | 28 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 28 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 28 | _dependency = _shared_state->create_sink_dependency( | 697 | 28 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 28 | } | 699 | 28 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 28 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 28 | } | 702 | | | 703 | 28 | 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 | 28 | _rows_input_counter = | 708 | 28 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 28 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 28 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 28 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 28 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 28 | _memory_used_counter = | 714 | 28 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 28 | _common_profile->add_info_string("IsColocate", | 716 | 28 | std::to_string(_parent->is_colocated_operator())); | 717 | 28 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 28 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 28 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 28 | return Status::OK(); | 721 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 5.81k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 5.81k | _operator_profile = | 664 | 5.81k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 5.81k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 5.81k | _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.81k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 5.81k | _operator_profile->add_child(_common_profile, true); | 673 | 5.81k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 5.81k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 5.81k | _wait_for_finish_dependency_timer = | 677 | 5.81k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 5.81k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 5.81k | if constexpr (!is_fake_shared) { | 680 | 5.81k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 5.81k | 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.81k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 5.81k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 5.81k | _dependency = _shared_state->create_sink_dependency( | 697 | 5.81k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 5.81k | } | 699 | 5.81k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 5.81k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 5.81k | } | 702 | | | 703 | 5.81k | 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.81k | _rows_input_counter = | 708 | 5.81k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 5.81k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 5.81k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 5.81k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 5.81k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 5.81k | _memory_used_counter = | 714 | 5.81k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 5.81k | _common_profile->add_info_string("IsColocate", | 716 | 5.81k | std::to_string(_parent->is_colocated_operator())); | 717 | 5.81k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 5.81k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 5.81k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 5.81k | return Status::OK(); | 721 | 5.81k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.84k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.84k | _operator_profile = | 664 | 6.84k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.84k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.84k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 6.84k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.84k | _operator_profile->add_child(_common_profile, true); | 673 | 6.84k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.84k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.84k | _wait_for_finish_dependency_timer = | 677 | 6.84k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.84k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.84k | if constexpr (!is_fake_shared) { | 680 | 6.84k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.84k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 6.84k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.84k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.84k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.84k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.84k | } | 699 | 6.84k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.84k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.84k | } | 702 | | | 703 | 6.84k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 6.84k | _rows_input_counter = | 708 | 6.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.84k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.84k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.84k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.84k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.84k | _memory_used_counter = | 714 | 6.84k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.84k | _common_profile->add_info_string("IsColocate", | 716 | 6.84k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.84k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.84k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.84k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.84k | return Status::OK(); | 721 | 6.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 84.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 84.0k | _operator_profile = | 664 | 84.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 84.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 84.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 | 84.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 84.0k | _operator_profile->add_child(_common_profile, true); | 673 | 84.0k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 84.0k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 84.0k | _wait_for_finish_dependency_timer = | 677 | 84.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 84.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 84.0k | if constexpr (!is_fake_shared) { | 680 | 84.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 84.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 | 84.0k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 84.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 84.0k | _dependency = _shared_state->create_sink_dependency( | 697 | 84.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 84.0k | } | 699 | 84.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 84.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 84.0k | } | 702 | | | 703 | 84.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 | 84.0k | _rows_input_counter = | 708 | 84.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 84.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 84.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 84.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 84.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 84.0k | _memory_used_counter = | 714 | 84.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 84.0k | _common_profile->add_info_string("IsColocate", | 716 | 84.0k | std::to_string(_parent->is_colocated_operator())); | 717 | 84.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 84.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 84.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 84.0k | return Status::OK(); | 721 | 84.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 94.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 94.0k | _operator_profile = | 664 | 94.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 94.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 94.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 | 94.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 94.0k | _operator_profile->add_child(_common_profile, true); | 673 | 94.0k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 94.0k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 94.0k | _wait_for_finish_dependency_timer = | 677 | 94.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 94.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 94.0k | if constexpr (!is_fake_shared) { | 680 | 94.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 94.1k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 94.1k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 94.1k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 94.1k | ? 0 | 688 | 94.1k | : info.task_idx] | 689 | 94.1k | .get(); | 690 | 94.1k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 94.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 94.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 94.0k | } | 702 | | | 703 | 94.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 | 94.0k | _rows_input_counter = | 708 | 94.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 94.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 94.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 94.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 94.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 94.0k | _memory_used_counter = | 714 | 94.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 94.0k | _common_profile->add_info_string("IsColocate", | 716 | 94.0k | std::to_string(_parent->is_colocated_operator())); | 717 | 94.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 94.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 94.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 94.0k | return Status::OK(); | 721 | 94.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 34 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 34 | _operator_profile = | 664 | 34 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 34 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 34 | _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 | 34 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 34 | _operator_profile->add_child(_common_profile, true); | 673 | 34 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 34 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 34 | _wait_for_finish_dependency_timer = | 677 | 34 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 34 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 34 | if constexpr (!is_fake_shared) { | 680 | 34 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 34 | 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 | 34 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 34 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 34 | _dependency = _shared_state->create_sink_dependency( | 697 | 34 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 34 | } | 699 | 34 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 34 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 34 | } | 702 | | | 703 | 34 | 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 | 34 | _rows_input_counter = | 708 | 34 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 34 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 34 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 34 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 34 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 34 | _memory_used_counter = | 714 | 34 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 34 | _common_profile->add_info_string("IsColocate", | 716 | 34 | std::to_string(_parent->is_colocated_operator())); | 717 | 34 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 34 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 34 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 34 | return Status::OK(); | 721 | 34 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 455k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 455k | _operator_profile = | 664 | 455k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 455k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 455k | _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 | 455k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 455k | _operator_profile->add_child(_common_profile, true); | 673 | 455k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 455k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 455k | _wait_for_finish_dependency_timer = | 677 | 455k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 455k | 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 | 455k | 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 | 455k | _rows_input_counter = | 708 | 455k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 455k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 455k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 455k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 455k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 455k | _memory_used_counter = | 714 | 455k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 455k | _common_profile->add_info_string("IsColocate", | 716 | 455k | std::to_string(_parent->is_colocated_operator())); | 717 | 455k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 455k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 455k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 455k | return Status::OK(); | 721 | 455k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 4.90k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 4.90k | _operator_profile = | 664 | 4.90k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 4.90k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 4.90k | _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 | 4.90k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 4.90k | _operator_profile->add_child(_common_profile, true); | 673 | 4.90k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 4.90k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 4.90k | _wait_for_finish_dependency_timer = | 677 | 4.90k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 4.90k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 4.90k | if constexpr (!is_fake_shared) { | 680 | 4.90k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 4.90k | 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 | 4.90k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 4.90k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 4.90k | _dependency = _shared_state->create_sink_dependency( | 697 | 4.90k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 4.90k | } | 699 | 4.90k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 4.90k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 4.90k | } | 702 | | | 703 | 4.90k | 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 | 4.90k | _rows_input_counter = | 708 | 4.90k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 4.90k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 4.90k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 4.90k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 4.90k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 4.90k | _memory_used_counter = | 714 | 4.90k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 4.90k | _common_profile->add_info_string("IsColocate", | 716 | 4.90k | std::to_string(_parent->is_colocated_operator())); | 717 | 4.90k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 4.90k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 4.90k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 4.90k | return Status::OK(); | 721 | 4.90k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 482 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 482 | _operator_profile = | 664 | 482 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 482 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 482 | _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 | 482 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 482 | _operator_profile->add_child(_common_profile, true); | 673 | 482 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 482 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 482 | _wait_for_finish_dependency_timer = | 677 | 482 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 482 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 482 | if constexpr (!is_fake_shared) { | 680 | 482 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 482 | 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 | 482 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 482 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 482 | _dependency = _shared_state->create_sink_dependency( | 697 | 482 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 482 | } | 699 | 482 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 482 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 482 | } | 702 | | | 703 | 482 | 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 | 482 | _rows_input_counter = | 708 | 482 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 482 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 482 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 482 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 482 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 482 | _memory_used_counter = | 714 | 482 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 482 | _common_profile->add_info_string("IsColocate", | 716 | 482 | std::to_string(_parent->is_colocated_operator())); | 717 | 482 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 482 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 482 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 482 | return Status::OK(); | 721 | 482 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.06k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.06k | _operator_profile = | 664 | 2.06k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.06k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.06k | _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.06k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.06k | _operator_profile->add_child(_common_profile, true); | 673 | 2.06k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.06k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.06k | _wait_for_finish_dependency_timer = | 677 | 2.06k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.06k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.06k | if constexpr (!is_fake_shared) { | 680 | 2.06k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.06k | 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.06k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.06k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.06k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.06k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.06k | } | 699 | 2.06k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.06k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.06k | } | 702 | | | 703 | 2.06k | 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.06k | _rows_input_counter = | 708 | 2.06k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.06k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.06k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.06k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.06k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.06k | _memory_used_counter = | 714 | 2.06k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.06k | _common_profile->add_info_string("IsColocate", | 716 | 2.06k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.06k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.06k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.06k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.06k | return Status::OK(); | 721 | 2.06k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.5k | _operator_profile = | 664 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.5k | _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.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.5k | _operator_profile->add_child(_common_profile, true); | 673 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.5k | _wait_for_finish_dependency_timer = | 677 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.5k | if constexpr (!is_fake_shared) { | 680 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.5k | 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.5k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.5k | } | 699 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.5k | } | 702 | | | 703 | 12.5k | 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.5k | _rows_input_counter = | 708 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.5k | _memory_used_counter = | 714 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.5k | _common_profile->add_info_string("IsColocate", | 716 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.5k | return Status::OK(); | 721 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 237k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 237k | _operator_profile = | 664 | 237k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 237k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 237k | _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 | 237k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 237k | _operator_profile->add_child(_common_profile, true); | 673 | 237k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 237k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 237k | _wait_for_finish_dependency_timer = | 677 | 237k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 237k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 237k | if constexpr (!is_fake_shared) { | 680 | 237k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 238k | info.shared_state_map.end()) { | 682 | 238k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 238k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 238k | } | 685 | 238k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 238k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 238k | ? 0 | 688 | 238k | : info.task_idx] | 689 | 238k | .get(); | 690 | 238k | _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 | 237k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 237k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 237k | } | 702 | | | 703 | 237k | 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 | 237k | _rows_input_counter = | 708 | 237k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 237k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 237k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 237k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 237k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 237k | _memory_used_counter = | 714 | 237k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 237k | _common_profile->add_info_string("IsColocate", | 716 | 237k | std::to_string(_parent->is_colocated_operator())); | 717 | 237k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 237k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 237k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 237k | return Status::OK(); | 721 | 237k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 445k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 445k | _operator_profile = | 664 | 445k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 445k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 445k | _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 | 445k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 445k | _operator_profile->add_child(_common_profile, true); | 673 | 445k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 445k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 445k | _wait_for_finish_dependency_timer = | 677 | 445k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 445k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 445k | if constexpr (!is_fake_shared) { | 680 | 445k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 445k | 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 | 445k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 445k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 445k | _dependency = _shared_state->create_sink_dependency( | 697 | 445k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 445k | } | 699 | 445k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 445k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 445k | } | 702 | | | 703 | 445k | 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 | 445k | _rows_input_counter = | 708 | 445k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 445k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 445k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 445k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 445k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 445k | _memory_used_counter = | 714 | 445k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 445k | _common_profile->add_info_string("IsColocate", | 716 | 445k | std::to_string(_parent->is_colocated_operator())); | 717 | 445k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 445k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 445k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 445k | return Status::OK(); | 721 | 445k | } |
_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.62M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.62M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.62M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.17M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.17M | } |
731 | 1.62M | _closed = true; |
732 | 1.62M | return Status::OK(); |
733 | 1.62M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 117k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 117k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 117k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 117k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 117k | } | 731 | 117k | _closed = true; | 732 | 117k | return Status::OK(); | 733 | 117k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 157k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 157k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 157k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 157k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 157k | } | 731 | 157k | _closed = true; | 732 | 157k | return Status::OK(); | 733 | 157k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 19 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 19 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 17 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 17 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 17 | } | 731 | 17 | _closed = true; | 732 | 17 | return Status::OK(); | 733 | 19 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 5.82k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 5.82k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 5.82k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 5.82k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 5.82k | } | 731 | 5.82k | _closed = true; | 732 | 5.82k | return Status::OK(); | 733 | 5.82k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.81k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.81k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.81k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.81k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.81k | } | 731 | 6.81k | _closed = true; | 732 | 6.81k | return Status::OK(); | 733 | 6.81k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 83.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 83.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 83.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 83.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 83.9k | } | 731 | 83.9k | _closed = true; | 732 | 83.9k | return Status::OK(); | 733 | 83.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 93.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 93.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 93.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 93.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 93.6k | } | 731 | 93.6k | _closed = true; | 732 | 93.6k | return Status::OK(); | 733 | 93.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 23 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 23 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 23 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 23 | } | 731 | 23 | _closed = true; | 732 | 23 | return Status::OK(); | 733 | 23 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 457k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 457k | 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 | 457k | _closed = true; | 732 | 457k | return Status::OK(); | 733 | 457k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 4.91k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 4.91k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 4.91k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 4.91k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 4.91k | } | 731 | 4.91k | _closed = true; | 732 | 4.91k | return Status::OK(); | 733 | 4.91k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 376 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 376 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 376 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 376 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 376 | } | 731 | 376 | _closed = true; | 732 | 376 | return Status::OK(); | 733 | 376 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.12k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.12k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.12k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.12k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.12k | } | 731 | 2.12k | _closed = true; | 732 | 2.12k | return Status::OK(); | 733 | 2.12k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.6k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.6k | } | 731 | 12.6k | _closed = true; | 732 | 12.6k | return Status::OK(); | 733 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 238k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 238k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 238k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 238k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 238k | } | 731 | 238k | _closed = true; | 732 | 238k | return Status::OK(); | 733 | 238k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 447k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 447k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 447k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 447k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 447k | } | 731 | 447k | _closed = true; | 732 | 447k | return Status::OK(); | 733 | 447k | } |
_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 | 4.08k | bool* eos) { |
738 | 4.08k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 4.07k | return pull(state, block, eos); |
740 | 4.08k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 36 | bool* eos) { | 738 | 36 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 36 | return pull(state, block, eos); | 740 | 36 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 4.04k | bool* eos) { | 738 | 4.04k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 4.04k | return pull(state, block, eos); | 740 | 4.04k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 553k | bool* eos) { |
745 | 553k | auto& local_state = get_local_state(state); |
746 | 553k | if (need_more_input_data(state)) { |
747 | 526k | local_state._child_block->clear_column_data( |
748 | 526k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 526k | .num_materialized_slots()); |
750 | 526k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 526k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 526k | *eos = local_state._child_eos; |
753 | 526k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 49.0k | return Status::OK(); |
755 | 49.0k | } |
756 | 477k | { |
757 | 477k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 477k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 477k | } |
760 | 477k | } |
761 | | |
762 | 504k | if (!need_more_input_data(state)) { |
763 | 475k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 475k | bool new_eos = false; |
765 | 475k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 475k | if (new_eos) { |
767 | 402k | *eos = true; |
768 | 402k | } else if (!need_more_input_data(state)) { |
769 | 21.1k | *eos = false; |
770 | 21.1k | } |
771 | 475k | } |
772 | 504k | return Status::OK(); |
773 | 504k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 126k | bool* eos) { | 745 | 126k | auto& local_state = get_local_state(state); | 746 | 126k | if (need_more_input_data(state)) { | 747 | 111k | local_state._child_block->clear_column_data( | 748 | 111k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 111k | .num_materialized_slots()); | 750 | 111k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 111k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 111k | *eos = local_state._child_eos; | 753 | 111k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 27.6k | return Status::OK(); | 755 | 27.6k | } | 756 | 83.4k | { | 757 | 83.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 83.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 83.4k | } | 760 | 83.4k | } | 761 | | | 762 | 99.0k | if (!need_more_input_data(state)) { | 763 | 99.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 99.0k | bool new_eos = false; | 765 | 99.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 98.9k | if (new_eos) { | 767 | 44.9k | *eos = true; | 768 | 54.0k | } else if (!need_more_input_data(state)) { | 769 | 8.68k | *eos = false; | 770 | 8.68k | } | 771 | 98.9k | } | 772 | 98.9k | return Status::OK(); | 773 | 98.9k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 3.97k | bool* eos) { | 745 | 3.97k | auto& local_state = get_local_state(state); | 746 | 3.97k | if (need_more_input_data(state)) { | 747 | 2.15k | local_state._child_block->clear_column_data( | 748 | 2.15k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.15k | .num_materialized_slots()); | 750 | 2.15k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.15k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.15k | *eos = local_state._child_eos; | 753 | 2.15k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 514 | return Status::OK(); | 755 | 514 | } | 756 | 1.64k | { | 757 | 1.64k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.64k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.64k | } | 760 | 1.64k | } | 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 | 987 | *eos = true; | 768 | 2.48k | } else if (!need_more_input_data(state)) { | 769 | 1.82k | *eos = false; | 770 | 1.82k | } | 771 | 3.47k | } | 772 | 3.46k | return Status::OK(); | 773 | 3.46k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.83k | bool* eos) { | 745 | 1.83k | auto& local_state = get_local_state(state); | 746 | 1.83k | if (need_more_input_data(state)) { | 747 | 1.83k | local_state._child_block->clear_column_data( | 748 | 1.83k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.83k | .num_materialized_slots()); | 750 | 1.83k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.83k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.83k | *eos = local_state._child_eos; | 753 | 1.83k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 758 | return Status::OK(); | 755 | 758 | } | 756 | 1.07k | { | 757 | 1.07k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.07k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.07k | } | 760 | 1.07k | } | 761 | | | 762 | 1.07k | if (!need_more_input_data(state)) { | 763 | 1.07k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.07k | bool new_eos = false; | 765 | 1.07k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.07k | if (new_eos) { | 767 | 782 | *eos = true; | 768 | 782 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.07k | } | 772 | 1.07k | return Status::OK(); | 773 | 1.07k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 17.6k | bool* eos) { | 745 | 17.6k | auto& local_state = get_local_state(state); | 746 | 17.6k | if (need_more_input_data(state)) { | 747 | 17.6k | local_state._child_block->clear_column_data( | 748 | 17.6k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 17.6k | .num_materialized_slots()); | 750 | 17.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 17.6k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 17.6k | *eos = local_state._child_eos; | 753 | 17.6k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.40k | return Status::OK(); | 755 | 4.40k | } | 756 | 13.2k | { | 757 | 13.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 13.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 13.2k | } | 760 | 13.2k | } | 761 | | | 762 | 13.2k | if (!need_more_input_data(state)) { | 763 | 6.05k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.05k | bool new_eos = false; | 765 | 6.05k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.05k | if (new_eos) { | 767 | 5.95k | *eos = true; | 768 | 5.95k | } else if (!need_more_input_data(state)) { | 769 | 23 | *eos = false; | 770 | 23 | } | 771 | 6.05k | } | 772 | 13.2k | return Status::OK(); | 773 | 13.2k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 375k | bool* eos) { | 745 | 375k | auto& local_state = get_local_state(state); | 746 | 376k | if (need_more_input_data(state)) { | 747 | 376k | local_state._child_block->clear_column_data( | 748 | 376k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 376k | .num_materialized_slots()); | 750 | 376k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 376k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 376k | *eos = local_state._child_eos; | 753 | 376k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 14.4k | return Status::OK(); | 755 | 14.4k | } | 756 | 362k | { | 757 | 362k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 362k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 362k | } | 760 | 362k | } | 761 | | | 762 | 361k | 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 | 339k | *eos = true; | 768 | 339k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 340k | } | 772 | 361k | return Status::OK(); | 773 | 361k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 20.2k | bool* eos) { | 745 | 20.2k | auto& local_state = get_local_state(state); | 746 | 20.2k | if (need_more_input_data(state)) { | 747 | 10.0k | local_state._child_block->clear_column_data( | 748 | 10.0k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 10.0k | .num_materialized_slots()); | 750 | 10.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 10.0k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 10.0k | *eos = local_state._child_eos; | 753 | 10.0k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 563 | return Status::OK(); | 755 | 563 | } | 756 | 9.43k | { | 757 | 9.43k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 9.43k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 9.43k | } | 760 | 9.43k | } | 761 | | | 762 | 19.7k | if (!need_more_input_data(state)) { | 763 | 19.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 19.1k | bool new_eos = false; | 765 | 19.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 19.1k | if (new_eos) { | 767 | 5.81k | *eos = true; | 768 | 13.3k | } else if (!need_more_input_data(state)) { | 769 | 10.2k | *eos = false; | 770 | 10.2k | } | 771 | 19.1k | } | 772 | 19.7k | return Status::OK(); | 773 | 19.7k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 7.37k | bool* eos) { | 745 | 7.37k | auto& local_state = get_local_state(state); | 746 | 7.37k | if (need_more_input_data(state)) { | 747 | 7.00k | local_state._child_block->clear_column_data( | 748 | 7.00k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.00k | .num_materialized_slots()); | 750 | 7.00k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.00k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.00k | *eos = local_state._child_eos; | 753 | 7.00k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 805 | return Status::OK(); | 755 | 805 | } | 756 | 6.20k | { | 757 | 6.20k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.20k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.20k | } | 760 | 6.20k | } | 761 | | | 762 | 6.56k | if (!need_more_input_data(state)) { | 763 | 6.56k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.56k | bool new_eos = false; | 765 | 6.56k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.56k | if (new_eos) { | 767 | 4.51k | *eos = true; | 768 | 4.51k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 6.56k | } | 772 | 6.56k | return Status::OK(); | 773 | 6.56k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 42.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 42.1k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 42.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 42.1k | "AsyncWriterDependency", true); |
781 | 42.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 42.1k | _finish_dependency)); |
783 | | |
784 | 42.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 42.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 42.1k | return Status::OK(); |
787 | 42.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 377 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 377 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 377 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 377 | "AsyncWriterDependency", true); | 781 | 377 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 377 | _finish_dependency)); | 783 | | | 784 | 377 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 377 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 377 | return Status::OK(); | 787 | 377 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 41.5k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 41.5k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 41.5k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 41.5k | "AsyncWriterDependency", true); | 781 | 41.5k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 41.5k | _finish_dependency)); | 783 | | | 784 | 41.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 41.5k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 41.5k | return Status::OK(); | 787 | 41.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 214 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 214 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 214 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 214 | "AsyncWriterDependency", true); | 781 | 214 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 214 | _finish_dependency)); | 783 | | | 784 | 214 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 214 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 214 | return Status::OK(); | 787 | 214 | } |
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.4k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 42.4k | RETURN_IF_ERROR(Base::open(state)); |
793 | 42.4k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 325k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 283k | RETURN_IF_ERROR( |
796 | 283k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 283k | } |
798 | 42.4k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 42.4k | return Status::OK(); |
800 | 42.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 379 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 379 | RETURN_IF_ERROR(Base::open(state)); | 793 | 379 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.91k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.53k | RETURN_IF_ERROR( | 796 | 1.53k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.53k | } | 798 | 379 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 379 | return Status::OK(); | 800 | 379 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 41.8k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 41.8k | RETURN_IF_ERROR(Base::open(state)); | 793 | 41.8k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 322k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 281k | RETURN_IF_ERROR( | 796 | 281k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 281k | } | 798 | 41.8k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 41.8k | return Status::OK(); | 800 | 41.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 210 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 210 | RETURN_IF_ERROR(Base::open(state)); | 793 | 210 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 728 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 518 | RETURN_IF_ERROR( | 796 | 518 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 518 | } | 798 | 210 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 210 | return Status::OK(); | 800 | 210 | } |
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.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 57.9k | return _writer->sink(block, eos); |
806 | 57.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.61k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.61k | return _writer->sink(block, eos); | 806 | 1.61k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 56.1k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 56.1k | return _writer->sink(block, eos); | 806 | 56.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 206 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 206 | return _writer->sink(block, eos); | 806 | 206 | } |
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.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 | 61 | _writer->force_close(exec_status); |
824 | 61 | } |
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_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 367 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 367 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 367 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 367 | 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 | 367 | if (_writer) { | 818 | 367 | Status st = _writer->get_writer_status(); | 819 | 367 | if (exec_status.ok()) { | 820 | 367 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 367 | : Status::Cancelled("force close")); | 822 | 367 | } 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 | 367 | RETURN_IF_ERROR(st); | 829 | 367 | } | 830 | 367 | return Base::close(state, exec_status); | 831 | 367 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 41.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 41.9k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 41.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 41.9k | 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 | 41.9k | if (_writer) { | 818 | 41.9k | Status st = _writer->get_writer_status(); | 819 | 41.9k | if (exec_status.ok()) { | 820 | 41.8k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 41.8k | : Status::Cancelled("force close")); | 822 | 41.8k | } else { | 823 | 61 | _writer->force_close(exec_status); | 824 | 61 | } | 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 | 41.9k | RETURN_IF_ERROR(st); | 829 | 41.9k | } | 830 | 41.8k | return Base::close(state, exec_status); | 831 | 41.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 206 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 206 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 206 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 206 | 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 | 206 | if (_writer) { | 818 | 206 | Status st = _writer->get_writer_status(); | 819 | 206 | if (exec_status.ok()) { | 820 | 206 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 206 | : Status::Cancelled("force close")); | 822 | 206 | } 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 | 206 | RETURN_IF_ERROR(st); | 829 | 206 | } | 830 | 206 | return Base::close(state, exec_status); | 831 | 206 | } |
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 |