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.71M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.71M | if (_parent->nereids_id() == -1) { |
122 | 888k | return fmt::format("(id={})", _parent->node_id()); |
123 | 888k | } else { |
124 | 823k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 823k | } |
126 | 1.71M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 70.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 70.0k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 70.0k | } else { | 124 | 70.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 70.0k | } | 126 | 70.0k | } |
_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 | 174k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 174k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 174k | } else { | 124 | 174k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 174k | } | 126 | 174k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 26 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 26 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 6.61k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.61k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 6.61k | } else { | 124 | 6.61k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 6.61k | } | 126 | 6.61k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 8.63k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 8.63k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 8.62k | } else { | 124 | 8.62k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 8.62k | } | 126 | 8.63k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 88.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 88.4k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 88.3k | } else { | 124 | 88.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 88.3k | } | 126 | 88.4k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 75.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 75.3k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 75.3k | } else { | 124 | 75.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 75.3k | } | 126 | 75.3k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 47 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 47 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 47 | } else { | 124 | 47 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 47 | } | 126 | 47 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 629k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 629k | if (_parent->nereids_id() == -1) { | 122 | 288k | return fmt::format("(id={})", _parent->node_id()); | 123 | 341k | } else { | 124 | 341k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 341k | } | 126 | 629k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 53.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 53.9k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 53.9k | } else { | 124 | 53.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 53.9k | } | 126 | 53.9k | } |
_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.30k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.30k | if (_parent->nereids_id() == -1) { | 122 | 5.30k | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.30k | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 5.30k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 504 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 504 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 402 | } else { | 124 | 402 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 402 | } | 126 | 504 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.08k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.08k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.07k | } else { | 124 | 5.07k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.07k | } | 126 | 5.08k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 593k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 594k | if (_parent->nereids_id() == -1) { | 122 | 594k | 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 | 593k | } |
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.14M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.14M | if (_parent->nereids_id() == -1) { |
131 | 662k | return fmt::format("(id={})", _parent->node_id()); |
132 | 662k | } else { |
133 | 483k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 483k | } |
135 | 1.14M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 118k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 118k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 118k | } else { | 133 | 118k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 118k | } | 135 | 118k | } |
_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 | 176k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 176k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 176k | } else { | 133 | 176k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 176k | } | 135 | 176k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 33 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 33 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 33 | } else { | 133 | 33 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 33 | } | 135 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.62k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.62k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.62k | } else { | 133 | 6.62k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.62k | } | 135 | 6.62k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.69k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.69k | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.68k | } else { | 133 | 8.68k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.68k | } | 135 | 8.69k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 88.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 88.4k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 88.3k | } else { | 133 | 88.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 88.3k | } | 135 | 88.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 75.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 75.1k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 75.1k | } else { | 133 | 75.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 75.1k | } | 135 | 75.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 57 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 57 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 57 | } else { | 133 | 57 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 57 | } | 135 | 57 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 15 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 15 | if (_parent->nereids_id() == -1) { | 131 | 15 | return fmt::format("(id={})", _parent->node_id()); | 132 | 15 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.93k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.93k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.93k | } else { | 133 | 9.93k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.93k | } | 135 | 9.93k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 501 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 501 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 399 | } else { | 133 | 399 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 399 | } | 135 | 501 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.3k | 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.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 224k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 224k | if (_parent->nereids_id() == -1) { | 131 | 224k | 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 | 224k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 424k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 424k | if (_parent->nereids_id() == -1) { | 131 | 424k | 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 | 424k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 328 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 328 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 328 | } else { | 133 | 328 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 328 | } | 135 | 328 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 31.2k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 31.2k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 31.2k | _terminated = true; |
143 | 31.2k | return Status::OK(); |
144 | 31.2k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.62k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.62k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.62k | _terminated = true; | 143 | 2.62k | return Status::OK(); | 144 | 2.62k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_19AnalyticSharedStateEE9terminateEPNS_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_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.25k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.25k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.25k | _terminated = true; | 143 | 2.25k | return Status::OK(); | 144 | 2.25k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 682 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 682 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 682 | _terminated = true; | 143 | 682 | return Status::OK(); | 144 | 682 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 490 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 490 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 490 | _terminated = true; | 143 | 490 | return Status::OK(); | 144 | 490 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 478 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 478 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 478 | _terminated = true; | 143 | 478 | return Status::OK(); | 144 | 478 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 5 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 5 | _terminated = true; | 143 | 5 | return Status::OK(); | 144 | 5 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 177 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 177 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 177 | _terminated = true; | 143 | 177 | return Status::OK(); | 144 | 177 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 7 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 7 | _terminated = true; | 143 | 7 | return Status::OK(); | 144 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 326 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 326 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 326 | _terminated = true; | 143 | 326 | return Status::OK(); | 144 | 326 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 133 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 133 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 133 | _terminated = true; | 143 | 133 | return Status::OK(); | 144 | 133 | } |
|
145 | | |
146 | 296k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 296k | return _child && _child->is_serial_operator() && !is_source() |
148 | 296k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 296k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 296k | } |
151 | | |
152 | 24.8k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 24.8k | if (!_child) { |
154 | 23.8k | return false; |
155 | 23.8k | } |
156 | 995 | if (_child->is_serial_operator()) { |
157 | 108 | return true; |
158 | 108 | } |
159 | 887 | const auto child_distribution = _child->required_data_distribution(state); |
160 | 887 | return child_distribution.need_local_exchange() && |
161 | 887 | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 995 | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 19.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 19.3k | fmt::memory_buffer debug_string_buffer; |
167 | 19.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 19.3k | return fmt::to_string(debug_string_buffer); |
169 | 19.3k | } 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.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 19.3k | fmt::memory_buffer debug_string_buffer; | 167 | 19.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 19.3k | return fmt::to_string(debug_string_buffer); | 169 | 19.3k | } |
_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.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 19.3k | fmt::memory_buffer debug_string_buffer; |
174 | 19.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 19.3k | return fmt::to_string(debug_string_buffer); |
176 | 19.3k | } 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.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 19.3k | fmt::memory_buffer debug_string_buffer; | 174 | 19.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 19.3k | return fmt::to_string(debug_string_buffer); | 176 | 19.3k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 19.4k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 19.4k | fmt::memory_buffer debug_string_buffer; |
180 | 19.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 19.4k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 19.4k | _is_serial_operator); |
183 | 19.4k | return fmt::to_string(debug_string_buffer); |
184 | 19.4k | } |
185 | | |
186 | 19.3k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 19.3k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 19.3k | } |
189 | | |
190 | 620k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 620k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 620k | _nereids_id = tnode.nereids_id; |
193 | 620k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.78k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.78k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.78k | 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.78k | } |
206 | 620k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 620k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 620k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 620k | } else if (tnode.__isset.conjuncts) { |
212 | 264k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 264k | VExprContextSPtr context; |
214 | 264k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 264k | _conjuncts.emplace_back(context); |
216 | 264k | } |
217 | 92.6k | } |
218 | | |
219 | | // create the projections expr |
220 | 620k | if (tnode.__isset.projections) { |
221 | 246k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 246k | } |
223 | 620k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.78k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.78k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 6.15k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 6.15k | VExprContextSPtrs projections; |
228 | 6.15k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 6.15k | _projection->intermediate_projections.push_back(projections); |
230 | 6.15k | } |
231 | 3.78k | } |
232 | 620k | return Status::OK(); |
233 | 620k | } |
234 | | |
235 | 647k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 647k | for (auto& conjunct : _conjuncts) { |
237 | 264k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 264k | } |
239 | 647k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 596k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 336k | return a->execute_cost() < b->execute_cost(); |
242 | 336k | }); |
243 | 596k | }; |
244 | | |
245 | 647k | if (has_projection()) { |
246 | 246k | auto& projection = *_projection; |
247 | 252k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 6.15k | const auto& input_row_desc = |
249 | 6.15k | i == 0 ? operator_row_desc_before_projection() |
250 | 6.15k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 6.15k | RETURN_IF_ERROR( |
252 | 6.15k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 6.15k | } |
254 | 246k | const auto& final_projection_input_row_desc = |
255 | 246k | projection.intermediate_output_row_descriptors.empty() |
256 | 246k | ? operator_row_desc_before_projection() |
257 | 246k | : projection.intermediate_output_row_descriptors.back(); |
258 | 246k | RETURN_IF_ERROR( |
259 | 246k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 246k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 246k | projection.output_row_descriptor)); |
262 | 246k | } |
263 | | |
264 | 647k | for (auto& conjunct : _conjuncts) { |
265 | 264k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 264k | } |
267 | 647k | if (has_projection()) { |
268 | 246k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 246k | for (auto& projections : _projection->intermediate_projections) { |
270 | 6.15k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 6.15k | } |
272 | 246k | } |
273 | 647k | if (_child && !is_source()) { |
274 | 94.2k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 94.2k | } |
276 | | |
277 | 647k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 647k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 647k | return Status::OK(); |
283 | 647k | } |
284 | | |
285 | 7.99k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 7.99k | if (_child && !is_source()) { |
287 | 749 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 749 | } |
289 | 7.99k | auto result = state->get_local_state_result(operator_id()); |
290 | 7.99k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 7.99k | return result.value()->terminate(state); |
294 | 7.99k | } |
295 | | |
296 | 4.69M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.69M | if (_child && !is_source()) { |
298 | 828k | RETURN_IF_ERROR(_child->close(state)); |
299 | 828k | } |
300 | 4.69M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.69M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.69M | return result.value()->close(state); |
305 | 4.69M | } |
306 | | |
307 | 275k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 275k | _origin_block.clear_column_data( |
309 | 275k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 275k | } |
311 | | |
312 | 760k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 760k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 760k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 760k | return Status::OK(); |
317 | 760k | } |
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 | 275k | Block* output_block) const { |
326 | 275k | auto* local_state = state->get_local_state(operator_id()); |
327 | 275k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 275k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 275k | const size_t rows = origin_block->rows(); |
330 | 275k | if (rows == 0) { |
331 | 146k | return Status::OK(); |
332 | 146k | } |
333 | 128k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 128k | { |
336 | 128k | Block input_block = *origin_block; |
337 | | |
338 | 128k | ColumnsWithTypeAndName new_columns; |
339 | 128k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.43k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.43k | new_columns.resize(projections.size()); |
345 | 63.7k | for (int i = 0; i < projections.size(); i++) { |
346 | 60.2k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 60.2k | 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 | 60.2k | } |
355 | 3.42k | Block tmp_block {new_columns}; |
356 | 3.42k | input_block.swap(tmp_block); |
357 | 3.42k | } |
358 | | |
359 | 128k | 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 | 128k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 128k | output_block, _projection->output_row_descriptor); |
368 | 128k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 128k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 128k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 742k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 613k | ColumnPtr column_ptr; |
374 | 613k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 613k | 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 | 613k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 613k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 613k | if (column_ptr->is_exclusive()) { |
386 | 225k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 388k | } else { |
388 | 388k | shared_columns[i] = std::move(column_ptr); |
389 | 388k | } |
390 | 613k | } |
391 | | |
392 | 128k | scoped_mutable_block.restore(); |
393 | 742k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 614k | if (shared_columns[i]) { |
395 | 389k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 389k | } |
397 | 614k | } |
398 | 128k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 128k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 128k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 128k | return Status::OK(); |
405 | 128k | } |
406 | | |
407 | 4.26M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.26M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.26M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.26M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.26M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.26M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.26M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.26M | return Status::OK(); |
415 | 4.26M | } |
416 | 4.26M | } |
417 | 4.26M | }); |
418 | | |
419 | 4.26M | Status status; |
420 | 4.26M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.26M | Defer defer([&]() { |
422 | 4.26M | if (status.ok()) { |
423 | 4.26M | local_state->update_output_block_counters(*block); |
424 | 4.26M | } |
425 | 4.26M | }); |
426 | 4.26M | if (has_projection()) { |
427 | 275k | local_state->clear_origin_block(); |
428 | 275k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 275k | if (UNLIKELY(!status.ok())) { |
430 | 23 | return status; |
431 | 23 | } |
432 | 275k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 275k | return status; |
434 | 275k | } |
435 | 3.98M | status = get_block(state, block, eos); |
436 | 3.98M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.98M | return status; |
438 | 3.98M | } |
439 | | |
440 | 2.58M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.58M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 4.12k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 4.12k | *eos = true; |
444 | 4.12k | } |
445 | | |
446 | 2.58M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.58M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.58M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.58M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.58M | if (op_name == arg_op_name) { |
452 | 2.58M | *eos = true; |
453 | 2.58M | } |
454 | 2.58M | }); |
455 | | |
456 | 2.58M | if (auto rows = block->rows()) { |
457 | 718k | _num_rows_returned += rows; |
458 | 718k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 718k | } |
460 | 2.58M | } |
461 | | |
462 | 31.2k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 31.2k | auto result = state->get_sink_local_state_result(); |
464 | 31.2k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 31.2k | return result.value()->terminate(state); |
468 | 31.2k | } |
469 | | |
470 | 19.3k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 19.3k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 19.3k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 19.3k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 19.3k | return fmt::to_string(debug_string_buffer); |
476 | 19.3k | } |
477 | | |
478 | 19.3k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 19.3k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 19.3k | } |
481 | | |
482 | 324k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 324k | std::string op_name = "UNKNOWN_SINK"; |
484 | 324k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 325k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 325k | op_name = it->second; |
488 | 325k | } |
489 | 324k | _name = op_name + "_OPERATOR"; |
490 | 324k | return Status::OK(); |
491 | 324k | } |
492 | | |
493 | 274k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 274k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 274k | _nereids_id = tnode.nereids_id; |
496 | 274k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 274k | _name = substr + "_SINK_OPERATOR"; |
498 | 274k | return Status::OK(); |
499 | 274k | } |
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 | 118k | LocalSinkStateInfo& info) { | 504 | 118k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 118k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 118k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 118k | return Status::OK(); | 508 | 118k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 377k | LocalSinkStateInfo& info) { | 504 | 377k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 377k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 377k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 377k | return Status::OK(); | 508 | 377k | } |
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 | 376 | LocalSinkStateInfo& info) { | 504 | 376 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 376 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 376 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 376 | return Status::OK(); | 508 | 376 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 46.2k | LocalSinkStateInfo& info) { | 504 | 46.2k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 46.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 46.2k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 46.2k | return Status::OK(); | 508 | 46.2k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 12 | LocalSinkStateInfo& info) { | 504 | 12 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 12 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 12 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 12 | return Status::OK(); | 508 | 12 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.68k | LocalSinkStateInfo& info) { | 504 | 8.68k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.68k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.68k | return Status::OK(); | 508 | 8.68k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 12 | LocalSinkStateInfo& info) { | 504 | 12 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 12 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 12 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 12 | return Status::OK(); | 508 | 12 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 176k | LocalSinkStateInfo& info) { | 504 | 176k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 176k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 176k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 176k | return Status::OK(); | 508 | 176k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 33 | LocalSinkStateInfo& info) { | 504 | 33 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 33 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 33 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 33 | return Status::OK(); | 508 | 33 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 224k | LocalSinkStateInfo& info) { | 504 | 224k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 224k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 224k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 224k | return Status::OK(); | 508 | 224k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 88.4k | LocalSinkStateInfo& info) { | 504 | 88.4k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 88.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 88.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 88.4k | return Status::OK(); | 508 | 88.4k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 75.2k | LocalSinkStateInfo& info) { | 504 | 75.2k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 75.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 75.2k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 75.2k | return Status::OK(); | 508 | 75.2k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 57 | LocalSinkStateInfo& info) { | 504 | 57 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 57 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 57 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 57 | return Status::OK(); | 508 | 57 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 472k | LocalSinkStateInfo& info) { | 504 | 472k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 472k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 472k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 472k | return Status::OK(); | 508 | 472k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.63k | LocalSinkStateInfo& info) { | 504 | 6.63k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.63k | return Status::OK(); | 508 | 6.63k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 9.91k | LocalSinkStateInfo& info) { | 504 | 9.91k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9.91k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9.91k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9.91k | return Status::OK(); | 508 | 9.91k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1.97k | LocalSinkStateInfo& info) { | 504 | 1.97k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1.97k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1.97k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1.97k | return Status::OK(); | 508 | 1.97k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 401 | LocalSinkStateInfo& info) { | 504 | 401 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 401 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 401 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 401 | return Status::OK(); | 508 | 401 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.73k | LocalSinkStateInfo& info) { | 504 | 4.73k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.73k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.73k | return Status::OK(); | 508 | 4.73k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.53k | LocalSinkStateInfo& info) { | 504 | 2.53k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.53k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.53k | return Status::OK(); | 508 | 2.53k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_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_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.45k | LocalSinkStateInfo& info) { | 504 | 2.45k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.45k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.45k | return Status::OK(); | 508 | 2.45k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1 | LocalSinkStateInfo& info) { | 504 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1 | return Status::OK(); | 508 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 568 | LocalSinkStateInfo& info) { | 504 | 568 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 568 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 568 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 568 | return Status::OK(); | 508 | 568 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 105 | LocalSinkStateInfo& info) { | 504 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 105 | return Status::OK(); | 508 | 105 | } |
_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.28M | 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.28M | } else { |
519 | 1.28M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.28M | ss->id = operator_id(); |
521 | 1.28M | for (auto& dest : dests_id()) { |
522 | 1.28M | ss->related_op_ids.insert(dest); |
523 | 1.28M | } |
524 | 1.28M | return ss; |
525 | 1.28M | } |
526 | 1.28M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 99.2k | 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 | 99.2k | } else { | 519 | 99.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 99.2k | ss->id = operator_id(); | 521 | 99.2k | for (auto& dest : dests_id()) { | 522 | 99.1k | ss->related_op_ids.insert(dest); | 523 | 99.1k | } | 524 | 99.2k | return ss; | 525 | 99.2k | } | 526 | 99.2k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 378k | 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 | 378k | } else { | 519 | 378k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 378k | ss->id = operator_id(); | 521 | 378k | for (auto& dest : dests_id()) { | 522 | 377k | ss->related_op_ids.insert(dest); | 523 | 377k | } | 524 | 378k | return ss; | 525 | 378k | } | 526 | 378k | } |
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 | 377 | 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 | 377 | } else { | 519 | 377 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 377 | ss->id = operator_id(); | 521 | 378 | for (auto& dest : dests_id()) { | 522 | 378 | ss->related_op_ids.insert(dest); | 523 | 378 | } | 524 | 377 | return ss; | 525 | 377 | } | 526 | 377 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 46.3k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 46.3k | } else { | 519 | 46.3k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 46.3k | ss->id = operator_id(); | 521 | 46.3k | for (auto& dest : dests_id()) { | 522 | 46.1k | ss->related_op_ids.insert(dest); | 523 | 46.1k | } | 524 | 46.3k | return ss; | 525 | 46.3k | } | 526 | 46.3k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 12 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 12 | } else { | 519 | 12 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 12 | ss->id = operator_id(); | 521 | 12 | for (auto& dest : dests_id()) { | 522 | 12 | ss->related_op_ids.insert(dest); | 523 | 12 | } | 524 | 12 | return ss; | 525 | 12 | } | 526 | 12 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 8.71k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 8.71k | } else { | 519 | 8.71k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.71k | ss->id = operator_id(); | 521 | 8.71k | for (auto& dest : dests_id()) { | 522 | 8.71k | ss->related_op_ids.insert(dest); | 523 | 8.71k | } | 524 | 8.71k | return ss; | 525 | 8.71k | } | 526 | 8.71k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 12 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 12 | } else { | 519 | 12 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 12 | ss->id = operator_id(); | 521 | 12 | for (auto& dest : dests_id()) { | 522 | 12 | ss->related_op_ids.insert(dest); | 523 | 12 | } | 524 | 12 | return ss; | 525 | 12 | } | 526 | 12 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 176k | 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 | 176k | } else { | 519 | 176k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 176k | ss->id = operator_id(); | 521 | 176k | for (auto& dest : dests_id()) { | 522 | 176k | ss->related_op_ids.insert(dest); | 523 | 176k | } | 524 | 176k | return ss; | 525 | 176k | } | 526 | 176k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 35 | 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 | 35 | } else { | 519 | 35 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 35 | ss->id = operator_id(); | 521 | 35 | for (auto& dest : dests_id()) { | 522 | 35 | ss->related_op_ids.insert(dest); | 523 | 35 | } | 524 | 35 | return ss; | 525 | 35 | } | 526 | 35 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 88.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 | 88.7k | } else { | 519 | 88.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 88.7k | ss->id = operator_id(); | 521 | 88.7k | for (auto& dest : dests_id()) { | 522 | 88.7k | ss->related_op_ids.insert(dest); | 523 | 88.7k | } | 524 | 88.7k | return ss; | 525 | 88.7k | } | 526 | 88.7k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 56 | 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 | 56 | } else { | 519 | 56 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 56 | ss->id = operator_id(); | 521 | 56 | for (auto& dest : dests_id()) { | 522 | 56 | ss->related_op_ids.insert(dest); | 523 | 56 | } | 524 | 56 | return ss; | 525 | 56 | } | 526 | 56 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 473k | 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 | 473k | } else { | 519 | 473k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 473k | ss->id = operator_id(); | 521 | 473k | for (auto& dest : dests_id()) { | 522 | 473k | ss->related_op_ids.insert(dest); | 523 | 473k | } | 524 | 473k | return ss; | 525 | 473k | } | 526 | 473k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.65k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 6.65k | } else { | 519 | 6.65k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.65k | ss->id = operator_id(); | 521 | 6.65k | for (auto& dest : dests_id()) { | 522 | 6.63k | ss->related_op_ids.insert(dest); | 523 | 6.63k | } | 524 | 6.65k | return ss; | 525 | 6.65k | } | 526 | 6.65k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 503 | 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 | 503 | } else { | 519 | 503 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 503 | ss->id = operator_id(); | 521 | 503 | for (auto& dest : dests_id()) { | 522 | 503 | ss->related_op_ids.insert(dest); | 523 | 503 | } | 524 | 503 | return ss; | 525 | 503 | } | 526 | 503 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.57k | 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.57k | } else { | 519 | 2.57k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.57k | ss->id = operator_id(); | 521 | 2.58k | for (auto& dest : dests_id()) { | 522 | 2.58k | ss->related_op_ids.insert(dest); | 523 | 2.58k | } | 524 | 2.57k | return ss; | 525 | 2.57k | } | 526 | 2.57k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.46k | 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.46k | } else { | 519 | 2.46k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.46k | ss->id = operator_id(); | 521 | 2.47k | for (auto& dest : dests_id()) { | 522 | 2.47k | ss->related_op_ids.insert(dest); | 523 | 2.47k | } | 524 | 2.46k | return ss; | 525 | 2.46k | } | 526 | 2.46k | } |
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 | 568 | ss->related_op_ids.insert(dest); | 523 | 568 | } | 524 | 569 | return ss; | 525 | 569 | } | 526 | 569 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 105 | 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 | 105 | } else { | 519 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 105 | ss->id = operator_id(); | 521 | 105 | for (auto& dest : dests_id()) { | 522 | 105 | ss->related_op_ids.insert(dest); | 523 | 105 | } | 524 | 105 | return ss; | 525 | 105 | } | 526 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 1.96M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 1.96M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 1.96M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 1.96M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 1.96M | return Status::OK(); |
534 | 1.96M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 70.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 70.1k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 70.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 70.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 70.1k | return Status::OK(); | 534 | 70.1k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 239k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 239k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 239k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 239k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 239k | return Status::OK(); | 534 | 239k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 135 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 135 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 135 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 135 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 135 | return Status::OK(); | 534 | 135 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.08k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.08k | return Status::OK(); | 534 | 3.08k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.60k | return Status::OK(); | 534 | 8.60k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.53k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.53k | return Status::OK(); | 534 | 8.53k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 26 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 26 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 26 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 26 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 26 | return Status::OK(); | 534 | 26 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 167k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 167k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 167k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 167k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 167k | return Status::OK(); | 534 | 167k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 88.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 88.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 88.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 88.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 88.5k | return Status::OK(); | 534 | 88.5k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 75.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 75.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 75.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 75.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 75.4k | return Status::OK(); | 534 | 75.4k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 47 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 47 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 47 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 47 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 47 | return Status::OK(); | 534 | 47 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.61k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.61k | return Status::OK(); | 534 | 4.61k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 288k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 288k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 288k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 288k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 288k | return Status::OK(); | 534 | 288k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.42k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.42k | return Status::OK(); | 534 | 1.42k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.59k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.59k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.59k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.59k | return Status::OK(); | 534 | 6.59k | } |
_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.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.61k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.61k | return Status::OK(); | 534 | 1.61k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 53.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 53.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 53.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 53.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 53.9k | return Status::OK(); | 534 | 53.9k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.29k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.29k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.29k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.29k | return Status::OK(); | 534 | 5.29k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 399 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 399 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 399 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 399 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 399 | return Status::OK(); | 534 | 399 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.59k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.59k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.59k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.59k | return Status::OK(); | 534 | 2.59k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.48k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.48k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.48k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.48k | return Status::OK(); | 534 | 2.48k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 297 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 297 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 297 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 297 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 297 | return Status::OK(); | 534 | 297 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.98k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.98k | return Status::OK(); | 534 | 4.98k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 595k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 595k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 595k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 595k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 595k | return Status::OK(); | 534 | 595k | } |
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 | 775 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 775 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 775 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 775 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 775 | return Status::OK(); | 534 | 775 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 885 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 885 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 885 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 885 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 885 | return Status::OK(); | 534 | 885 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.60k | return Status::OK(); | 534 | 5.60k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 319k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 319k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 319k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 319k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 319k | return Status::OK(); | 534 | 319k | } |
|
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.95M | : _num_rows_returned(0), |
542 | 1.95M | _rows_returned_counter(nullptr), |
543 | 1.95M | _parent(parent), |
544 | 1.95M | _state(state), |
545 | 1.95M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 1.96M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 1.96M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 1.96M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 1.96M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 1.96M | _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.96M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 1.96M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 1.96M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 1.96M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 1.96M | if constexpr (!is_fake_shared) { |
560 | 1.08M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 687k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 687k | .first.get() |
563 | 687k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 687k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 687k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 687k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 687k | } else if (info.shared_state) { |
569 | 341k | 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 | 341k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 341k | _dependency = _shared_state->create_source_dependency( |
576 | 341k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 341k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 341k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 341k | } else { |
580 | 59.7k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 4.59k | DCHECK(false); |
582 | 4.59k | } |
583 | 59.7k | } |
584 | 1.08M | } |
585 | | |
586 | 1.96M | 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.96M | _rows_returned_counter = |
591 | 1.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 1.96M | _blocks_returned_counter = |
593 | 1.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 1.96M | _output_block_bytes_counter = |
595 | 1.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 1.96M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 1.96M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 1.96M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 1.96M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 1.96M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 1.96M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 1.96M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 1.96M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 1.96M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 1.96M | _memory_used_counter = |
606 | 1.96M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 1.96M | _common_profile->add_info_string("IsColocate", |
608 | 1.96M | std::to_string(_parent->is_colocated_operator())); |
609 | 1.96M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 1.96M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 1.96M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 1.96M | return Status::OK(); |
613 | 1.96M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 70.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 70.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 70.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 70.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 70.2k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 70.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 70.2k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 70.2k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 70.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 70.2k | if constexpr (!is_fake_shared) { | 560 | 70.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 18.8k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 18.8k | .first.get() | 563 | 18.8k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 18.8k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 18.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 18.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 51.3k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 50.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 50.9k | _dependency = _shared_state->create_source_dependency( | 576 | 50.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 50.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 50.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 50.9k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 377 | } | 584 | 70.2k | } | 585 | | | 586 | 70.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 70.2k | _rows_returned_counter = | 591 | 70.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 70.2k | _blocks_returned_counter = | 593 | 70.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 70.2k | _output_block_bytes_counter = | 595 | 70.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 70.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 70.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 70.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 70.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 70.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 70.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 70.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 70.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 70.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 70.2k | _memory_used_counter = | 606 | 70.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 70.2k | _common_profile->add_info_string("IsColocate", | 608 | 70.2k | std::to_string(_parent->is_colocated_operator())); | 609 | 70.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 70.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 70.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 70.2k | return Status::OK(); | 613 | 70.2k | } |
_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 | 176k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 176k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 176k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 176k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 176k | _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 | 176k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 176k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 176k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 176k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 176k | if constexpr (!is_fake_shared) { | 560 | 176k | 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 | 176k | } 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 | 172k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 172k | _dependency = _shared_state->create_source_dependency( | 576 | 172k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 172k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 172k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 172k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 3.67k | } | 584 | 176k | } | 585 | | | 586 | 176k | 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 | 176k | _rows_returned_counter = | 591 | 176k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 176k | _blocks_returned_counter = | 593 | 176k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 176k | _output_block_bytes_counter = | 595 | 176k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 176k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 176k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 176k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 176k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 176k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 176k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 176k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 176k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 176k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 176k | _memory_used_counter = | 606 | 176k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 176k | _common_profile->add_info_string("IsColocate", | 608 | 176k | std::to_string(_parent->is_colocated_operator())); | 609 | 176k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 176k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 176k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 176k | return Status::OK(); | 613 | 176k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_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_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.64k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.64k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.64k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.64k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.64k | _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.64k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.64k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.64k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.64k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.64k | if constexpr (!is_fake_shared) { | 560 | 6.64k | 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.64k | } 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.57k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.57k | _dependency = _shared_state->create_source_dependency( | 576 | 6.57k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.57k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.57k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.57k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 70 | } | 584 | 6.64k | } | 585 | | | 586 | 6.64k | 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.64k | _rows_returned_counter = | 591 | 6.64k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.64k | _blocks_returned_counter = | 593 | 6.64k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.64k | _output_block_bytes_counter = | 595 | 6.64k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.64k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.64k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.64k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.64k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.64k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.64k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.64k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.64k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.64k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.64k | _memory_used_counter = | 606 | 6.64k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.64k | _common_profile->add_info_string("IsColocate", | 608 | 6.64k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.64k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.64k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.64k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.64k | return Status::OK(); | 613 | 6.64k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.70k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.70k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.70k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.70k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.70k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 8.70k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.70k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.70k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.70k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.70k | if constexpr (!is_fake_shared) { | 560 | 8.70k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 8.70k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 8.50k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 8.50k | _dependency = _shared_state->create_source_dependency( | 576 | 8.50k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 8.50k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 8.50k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.50k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 200 | } | 584 | 8.70k | } | 585 | | | 586 | 8.70k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 8.70k | _rows_returned_counter = | 591 | 8.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.70k | _blocks_returned_counter = | 593 | 8.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.70k | _output_block_bytes_counter = | 595 | 8.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.70k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.70k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.70k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.70k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.70k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.70k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.70k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.70k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.70k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.70k | _memory_used_counter = | 606 | 8.70k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.70k | _common_profile->add_info_string("IsColocate", | 608 | 8.70k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.70k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.70k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.70k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.70k | return Status::OK(); | 613 | 8.70k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 88.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 88.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 88.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 88.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 88.8k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 88.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 88.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 88.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 88.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 88.8k | if constexpr (!is_fake_shared) { | 560 | 88.8k | 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 | 88.8k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 87.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 87.7k | _dependency = _shared_state->create_source_dependency( | 576 | 87.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 87.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 87.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 87.7k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.02k | } | 584 | 88.8k | } | 585 | | | 586 | 88.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 88.8k | _rows_returned_counter = | 591 | 88.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 88.8k | _blocks_returned_counter = | 593 | 88.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 88.8k | _output_block_bytes_counter = | 595 | 88.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 88.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 88.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 88.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 88.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 88.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 88.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 88.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 88.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 88.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 88.8k | _memory_used_counter = | 606 | 88.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 88.8k | _common_profile->add_info_string("IsColocate", | 608 | 88.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 88.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 88.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 88.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 88.8k | return Status::OK(); | 613 | 88.8k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 75.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 75.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 75.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 75.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 75.4k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 75.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 75.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 75.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 75.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 75.4k | if constexpr (!is_fake_shared) { | 560 | 75.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 75.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 75.4k | .first.get() | 563 | 75.4k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 75.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 75.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 75.4k | _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 | 75.4k | } | 585 | | | 586 | 75.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 75.4k | _rows_returned_counter = | 591 | 75.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 75.4k | _blocks_returned_counter = | 593 | 75.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 75.4k | _output_block_bytes_counter = | 595 | 75.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 75.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 75.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 75.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 75.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 75.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 75.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 75.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 75.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 75.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 75.4k | _memory_used_counter = | 606 | 75.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 75.4k | _common_profile->add_info_string("IsColocate", | 608 | 75.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 75.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 75.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 75.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 75.4k | return Status::OK(); | 613 | 75.4k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 47 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 47 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 47 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 47 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 47 | _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 | 47 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 47 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 47 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 47 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 47 | if constexpr (!is_fake_shared) { | 560 | 47 | 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 | 47 | } 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 | 47 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 47 | _dependency = _shared_state->create_source_dependency( | 576 | 47 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 47 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 47 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 47 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 47 | } | 585 | | | 586 | 47 | 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 | 47 | _rows_returned_counter = | 591 | 47 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 47 | _blocks_returned_counter = | 593 | 47 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 47 | _output_block_bytes_counter = | 595 | 47 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 47 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 47 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 47 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 47 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 47 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 47 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 47 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 47 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 47 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 47 | _memory_used_counter = | 606 | 47 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 47 | _common_profile->add_info_string("IsColocate", | 608 | 47 | std::to_string(_parent->is_colocated_operator())); | 609 | 47 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 47 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 47 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 47 | return Status::OK(); | 613 | 47 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 873k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 873k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 873k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 873k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 873k | _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 | 873k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 873k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 873k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 873k | 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 | 873k | 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 | 873k | _rows_returned_counter = | 591 | 873k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 873k | _blocks_returned_counter = | 593 | 873k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 873k | _output_block_bytes_counter = | 595 | 873k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 873k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 873k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 873k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 873k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 873k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 873k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 873k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 873k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 873k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 873k | _memory_used_counter = | 606 | 873k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 873k | _common_profile->add_info_string("IsColocate", | 608 | 873k | std::to_string(_parent->is_colocated_operator())); | 609 | 873k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 873k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 873k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 873k | return Status::OK(); | 613 | 873k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 53.9k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 53.9k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 53.9k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 53.9k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 53.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 | 53.9k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 53.9k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 53.9k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 53.9k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 53.9k | if constexpr (!is_fake_shared) { | 560 | 53.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 | 53.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 | 4.15k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.15k | _dependency = _shared_state->create_source_dependency( | 576 | 4.15k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.15k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.15k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 49.8k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 49.8k | } | 584 | 53.9k | } | 585 | | | 586 | 53.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 | 53.9k | _rows_returned_counter = | 591 | 53.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 53.9k | _blocks_returned_counter = | 593 | 53.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 53.9k | _output_block_bytes_counter = | 595 | 53.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 53.9k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 53.9k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 53.9k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 53.9k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 53.9k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 53.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 53.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 53.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 53.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 53.9k | _memory_used_counter = | 606 | 53.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 53.9k | _common_profile->add_info_string("IsColocate", | 608 | 53.9k | std::to_string(_parent->is_colocated_operator())); | 609 | 53.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 53.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 53.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 53.9k | return Status::OK(); | 613 | 53.9k | } |
_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.31k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.31k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.31k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.31k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.31k | _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.31k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.31k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.31k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.31k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.31k | if constexpr (!is_fake_shared) { | 560 | 5.31k | 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.31k | } 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.28k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.28k | _dependency = _shared_state->create_source_dependency( | 576 | 5.28k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.28k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.28k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.28k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 27 | } | 584 | 5.31k | } | 585 | | | 586 | 5.31k | 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.31k | _rows_returned_counter = | 591 | 5.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.31k | _blocks_returned_counter = | 593 | 5.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.31k | _output_block_bytes_counter = | 595 | 5.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.31k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.31k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.31k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.31k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.31k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.31k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.31k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.31k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.31k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.31k | _memory_used_counter = | 606 | 5.31k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.31k | _common_profile->add_info_string("IsColocate", | 608 | 5.31k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.31k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.31k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.31k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.31k | return Status::OK(); | 613 | 5.31k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 505 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 505 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 505 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 505 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 505 | _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 | 505 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 505 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 505 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 505 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 505 | if constexpr (!is_fake_shared) { | 560 | 505 | 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 | 505 | } 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 | 500 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 500 | _dependency = _shared_state->create_source_dependency( | 576 | 500 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 500 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 500 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 500 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 5 | } | 584 | 505 | } | 585 | | | 586 | 505 | 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 | 505 | _rows_returned_counter = | 591 | 505 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 505 | _blocks_returned_counter = | 593 | 505 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 505 | _output_block_bytes_counter = | 595 | 505 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 505 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 505 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 505 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 505 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 505 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 505 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 505 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 505 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 505 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 505 | _memory_used_counter = | 606 | 505 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 505 | _common_profile->add_info_string("IsColocate", | 608 | 505 | std::to_string(_parent->is_colocated_operator())); | 609 | 505 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 505 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 505 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 505 | return Status::OK(); | 613 | 505 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.10k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.10k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.10k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.10k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.10k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.10k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.10k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.10k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.10k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.10k | if constexpr (!is_fake_shared) { | 560 | 5.10k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.10k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 5.07k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.07k | _dependency = _shared_state->create_source_dependency( | 576 | 5.07k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.07k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.07k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.07k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 29 | } | 584 | 5.10k | } | 585 | | | 586 | 5.10k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.10k | _rows_returned_counter = | 591 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.10k | _blocks_returned_counter = | 593 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.10k | _output_block_bytes_counter = | 595 | 5.10k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.10k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.10k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.10k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.10k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.10k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.10k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.10k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.10k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.10k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.10k | _memory_used_counter = | 606 | 5.10k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.10k | _common_profile->add_info_string("IsColocate", | 608 | 5.10k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.10k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.10k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.10k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.10k | return Status::OK(); | 613 | 5.10k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 597k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 597k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 597k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 597k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 597k | _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 | 597k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 597k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 597k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 597k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 597k | if constexpr (!is_fake_shared) { | 560 | 597k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 592k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 592k | .first.get() | 563 | 592k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 592k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 592k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 592k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 592k | } 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 | 4.59k | } else { | 580 | 4.59k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 4.59k | DCHECK(false); | 582 | 4.59k | } | 583 | 4.59k | } | 584 | 597k | } | 585 | | | 586 | 597k | 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 | 597k | _rows_returned_counter = | 591 | 597k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 597k | _blocks_returned_counter = | 593 | 597k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 597k | _output_block_bytes_counter = | 595 | 597k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 597k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 597k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 597k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 597k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 597k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 597k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 597k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 597k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 597k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 597k | _memory_used_counter = | 606 | 597k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 597k | _common_profile->add_info_string("IsColocate", | 608 | 597k | std::to_string(_parent->is_colocated_operator())); | 609 | 597k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 597k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 597k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 597k | return Status::OK(); | 613 | 597k | } |
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.96M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 1.96M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.26M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 293k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 293k | } |
621 | 1.96M | if (_parent->has_projection()) { |
622 | 365k | const auto& projection = *_parent->_projection; |
623 | 365k | _projections.resize(projection.projections.size()); |
624 | 2.27M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.91M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.91M | } |
627 | 365k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 378k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 13.1k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 178k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 165k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 165k | state, _intermediate_projections[i][j])); |
633 | 165k | } |
634 | 13.1k | } |
635 | 365k | } |
636 | 1.96M | return Status::OK(); |
637 | 1.96M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 70.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 70.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 71.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.47k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.47k | } | 621 | 70.3k | if (_parent->has_projection()) { | 622 | 70.3k | const auto& projection = *_parent->_projection; | 623 | 70.3k | _projections.resize(projection.projections.size()); | 624 | 368k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 297k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 297k | } | 627 | 70.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 75.8k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 5.51k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 127k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 122k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 122k | state, _intermediate_projections[i][j])); | 633 | 122k | } | 634 | 5.51k | } | 635 | 70.3k | } | 636 | 70.3k | return Status::OK(); | 637 | 70.3k | } |
_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 | 177k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 177k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 177k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 177k | if (_parent->has_projection()) { | 622 | 78 | const auto& projection = *_parent->_projection; | 623 | 78 | _projections.resize(projection.projections.size()); | 624 | 396 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 318 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 318 | } | 627 | 78 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 78 | 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 | 78 | } | 636 | 177k | return Status::OK(); | 637 | 177k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 26 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 26 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 26 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 26 | 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 | 26 | return Status::OK(); | 637 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.66k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.66k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.80k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 145 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 145 | } | 621 | 6.66k | if (_parent->has_projection()) { | 622 | 6.66k | const auto& projection = *_parent->_projection; | 623 | 6.66k | _projections.resize(projection.projections.size()); | 624 | 26.7k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 20.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 20.0k | } | 627 | 6.66k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.68k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 28 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 216 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 188 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 188 | state, _intermediate_projections[i][j])); | 633 | 188 | } | 634 | 28 | } | 635 | 6.66k | } | 636 | 6.66k | return Status::OK(); | 637 | 6.66k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.73k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.73k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 9.51k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 785 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 785 | } | 621 | 8.73k | if (_parent->has_projection()) { | 622 | 5.31k | const auto& projection = *_parent->_projection; | 623 | 5.31k | _projections.resize(projection.projections.size()); | 624 | 20.7k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 15.3k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 15.3k | } | 627 | 5.31k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.40k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 91 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 687 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 596 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 596 | state, _intermediate_projections[i][j])); | 633 | 596 | } | 634 | 91 | } | 635 | 5.31k | } | 636 | 8.73k | return Status::OK(); | 637 | 8.73k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 88.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 88.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 89.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.09k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.09k | } | 621 | 88.8k | if (_parent->has_projection()) { | 622 | 29.1k | const auto& projection = *_parent->_projection; | 623 | 29.1k | _projections.resize(projection.projections.size()); | 624 | 267k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 238k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 238k | } | 627 | 29.1k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 29.2k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 143 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 839 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 696 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 696 | state, _intermediate_projections[i][j])); | 633 | 696 | } | 634 | 143 | } | 635 | 29.1k | } | 636 | 88.8k | return Status::OK(); | 637 | 88.8k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 75.5k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 75.5k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 75.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 36 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 36 | } | 621 | 75.5k | if (_parent->has_projection()) { | 622 | 161 | const auto& projection = *_parent->_projection; | 623 | 161 | _projections.resize(projection.projections.size()); | 624 | 699 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 538 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 538 | } | 627 | 161 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 161 | 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 | 161 | } | 636 | 75.5k | return Status::OK(); | 637 | 75.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 51 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 51 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 51 | 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 | if (_parent->has_projection()) { | 622 | 30 | const auto& projection = *_parent->_projection; | 623 | 30 | _projections.resize(projection.projections.size()); | 624 | 90 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 60 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 60 | } | 627 | 30 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 30 | 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 | 30 | } | 636 | 51 | return Status::OK(); | 637 | 51 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 877k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 877k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.16M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 289k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 289k | } | 621 | 877k | if (_parent->has_projection()) { | 622 | 241k | const auto& projection = *_parent->_projection; | 623 | 241k | _projections.resize(projection.projections.size()); | 624 | 1.48M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.24M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.24M | } | 627 | 241k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 249k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 7.23k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 44.1k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 36.9k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 36.9k | state, _intermediate_projections[i][j])); | 633 | 36.9k | } | 634 | 7.23k | } | 635 | 241k | } | 636 | 877k | return Status::OK(); | 637 | 877k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 54.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 54.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 54.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 54.1k | if (_parent->has_projection()) { | 622 | 11.8k | const auto& projection = *_parent->_projection; | 623 | 11.8k | _projections.resize(projection.projections.size()); | 624 | 111k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 99.8k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 99.8k | } | 627 | 11.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 12.0k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 188 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 4.71k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 4.52k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 4.52k | state, _intermediate_projections[i][j])); | 633 | 4.52k | } | 634 | 188 | } | 635 | 11.8k | } | 636 | 54.1k | return Status::OK(); | 637 | 54.1k | } |
_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.31k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.31k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.63k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 322 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 322 | } | 621 | 5.31k | 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.31k | return Status::OK(); | 637 | 5.31k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 504 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 504 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 504 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 504 | 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 | 504 | return Status::OK(); | 637 | 504 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.10k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.10k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.10k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 5.10k | if (_parent->has_projection()) { | 622 | 59 | const auto& projection = *_parent->_projection; | 623 | 59 | _projections.resize(projection.projections.size()); | 624 | 224 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 165 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 165 | } | 627 | 59 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 59 | 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 | 59 | } | 636 | 5.10k | return Status::OK(); | 637 | 5.10k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 599k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 599k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 599k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 599k | 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 | 599k | return Status::OK(); | 637 | 599k | } |
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.99k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.99k | if (_terminated) { |
642 | 1 | return Status::OK(); |
643 | 1 | } |
644 | 7.99k | _terminated = true; |
645 | 7.99k | return Status::OK(); |
646 | 7.99k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 390 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 390 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 390 | _terminated = true; | 645 | 390 | return Status::OK(); | 646 | 390 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 17 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 17 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 17 | _terminated = true; | 645 | 17 | return Status::OK(); | 646 | 17 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 31 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 31 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 31 | _terminated = true; | 645 | 31 | return Status::OK(); | 646 | 31 | } |
_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 | 23 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 23 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 23 | _terminated = true; | 645 | 23 | return Status::OK(); | 646 | 23 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 6.23k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 6.23k | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 6.23k | _terminated = true; | 645 | 6.23k | return Status::OK(); | 646 | 6.23k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 56 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 56 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 56 | _terminated = true; | 645 | 56 | return Status::OK(); | 646 | 56 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 2 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 2 | _terminated = true; | 645 | 2 | return Status::OK(); | 646 | 2 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 7 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 7 | _terminated = true; | 645 | 7 | return Status::OK(); | 646 | 7 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.21k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.21k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.21k | _terminated = true; | 645 | 1.21k | return Status::OK(); | 646 | 1.21k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 26 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 26 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 26 | _terminated = true; | 645 | 26 | return Status::OK(); | 646 | 26 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.17M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.17M | if (_closed) { |
651 | 206k | return Status::OK(); |
652 | 206k | } |
653 | 1.96M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.09M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.09M | } |
656 | 1.96M | _closed = true; |
657 | 1.96M | return Status::OK(); |
658 | 2.17M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 70.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 70.2k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 70.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 70.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 70.2k | } | 656 | 70.2k | _closed = true; | 657 | 70.2k | return Status::OK(); | 658 | 70.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 351k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 351k | if (_closed) { | 651 | 175k | return Status::OK(); | 652 | 175k | } | 653 | 175k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 175k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 175k | } | 656 | 175k | _closed = true; | 657 | 175k | return Status::OK(); | 658 | 351k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 26 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 26 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 26 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 26 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 26 | } | 656 | 26 | _closed = true; | 657 | 26 | return Status::OK(); | 658 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.64k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.64k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.64k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.64k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.64k | } | 656 | 6.64k | _closed = true; | 657 | 6.64k | return Status::OK(); | 658 | 6.64k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 17.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 17.6k | if (_closed) { | 651 | 8.89k | return Status::OK(); | 652 | 8.89k | } | 653 | 8.71k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.71k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.71k | } | 656 | 8.71k | _closed = true; | 657 | 8.71k | return Status::OK(); | 658 | 17.6k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 88.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 88.7k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 88.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 88.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 88.7k | } | 656 | 88.7k | _closed = true; | 657 | 88.7k | return Status::OK(); | 658 | 88.7k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 75.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 75.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 75.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 75.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 75.1k | } | 656 | 75.1k | _closed = true; | 657 | 75.1k | return Status::OK(); | 658 | 75.1k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 45 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 45 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 45 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 45 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 45 | } | 656 | 45 | _closed = true; | 657 | 45 | return Status::OK(); | 658 | 45 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 894k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 894k | if (_closed) { | 651 | 15.5k | return Status::OK(); | 652 | 15.5k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 878k | _closed = true; | 657 | 878k | return Status::OK(); | 658 | 894k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 54.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 54.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 54.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 54.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 54.1k | } | 656 | 54.1k | _closed = true; | 657 | 54.1k | return Status::OK(); | 658 | 54.1k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 14 | return Status::OK(); | 652 | 14 | } | 653 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 14 | } | 656 | 14 | _closed = true; | 657 | 14 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 5.29k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.29k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.29k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.29k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.29k | } | 656 | 5.29k | _closed = true; | 657 | 5.29k | return Status::OK(); | 658 | 5.29k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 803 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 803 | if (_closed) { | 651 | 403 | return Status::OK(); | 652 | 403 | } | 653 | 400 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 400 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 400 | } | 656 | 400 | _closed = true; | 657 | 400 | return Status::OK(); | 658 | 803 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.3k | if (_closed) { | 651 | 5.30k | return Status::OK(); | 652 | 5.30k | } | 653 | 5.09k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.09k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.09k | } | 656 | 5.09k | _closed = true; | 657 | 5.09k | return Status::OK(); | 658 | 10.3k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 600k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 600k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 600k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 600k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 600k | } | 656 | 600k | _closed = true; | 657 | 600k | return Status::OK(); | 658 | 600k | } |
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.14M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.14M | info.shared_state_map.end()) { |
682 | 319k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 224k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 224k | } |
685 | 319k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 319k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 319k | ? 0 |
688 | 319k | : info.task_idx] |
689 | 319k | .get(); |
690 | 319k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 830k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 830k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 830k | _dependency = _shared_state->create_sink_dependency( |
697 | 830k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 830k | } |
699 | 1.14M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.14M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.14M | } |
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 | 118k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 118k | _operator_profile = | 664 | 118k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 118k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 118k | _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 | 118k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 118k | _operator_profile->add_child(_common_profile, true); | 673 | 118k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 118k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 118k | _wait_for_finish_dependency_timer = | 677 | 118k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 118k | if constexpr (!is_fake_shared) { | 680 | 118k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 118k | 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 | 19.0k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 19.0k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 19.0k | ? 0 | 688 | 19.0k | : info.task_idx] | 689 | 19.0k | .get(); | 690 | 19.0k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 99.2k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 99.2k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 99.2k | _dependency = _shared_state->create_sink_dependency( | 697 | 99.2k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 99.2k | } | 699 | 118k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 118k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 118k | } | 702 | | | 703 | 118k | 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 | 118k | _rows_input_counter = | 708 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 118k | _memory_used_counter = | 714 | 118k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 118k | _common_profile->add_info_string("IsColocate", | 716 | 118k | std::to_string(_parent->is_colocated_operator())); | 717 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 118k | return Status::OK(); | 721 | 118k | } |
_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 | 176k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 176k | _operator_profile = | 664 | 176k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 176k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 176k | _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 | 176k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 176k | _operator_profile->add_child(_common_profile, true); | 673 | 176k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 176k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 176k | _wait_for_finish_dependency_timer = | 677 | 176k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 176k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 176k | if constexpr (!is_fake_shared) { | 680 | 176k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 176k | 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 | 176k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 176k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 176k | _dependency = _shared_state->create_sink_dependency( | 697 | 176k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 176k | } | 699 | 176k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 176k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 176k | } | 702 | | | 703 | 176k | 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 | 176k | _rows_input_counter = | 708 | 176k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 176k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 176k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 176k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 176k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 176k | _memory_used_counter = | 714 | 176k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 176k | _common_profile->add_info_string("IsColocate", | 716 | 176k | std::to_string(_parent->is_colocated_operator())); | 717 | 176k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 176k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 176k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 176k | return Status::OK(); | 721 | 176k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 33 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 33 | _operator_profile = | 664 | 33 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 33 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 33 | _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 | 33 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 33 | _operator_profile->add_child(_common_profile, true); | 673 | 33 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 33 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 33 | _wait_for_finish_dependency_timer = | 677 | 33 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 33 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 33 | if constexpr (!is_fake_shared) { | 680 | 33 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 33 | 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 | 33 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 33 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 33 | _dependency = _shared_state->create_sink_dependency( | 697 | 33 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 33 | } | 699 | 33 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 33 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 33 | } | 702 | | | 703 | 33 | 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 | 33 | _rows_input_counter = | 708 | 33 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 33 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 33 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 33 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 33 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 33 | _memory_used_counter = | 714 | 33 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 33 | _common_profile->add_info_string("IsColocate", | 716 | 33 | std::to_string(_parent->is_colocated_operator())); | 717 | 33 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 33 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 33 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 33 | return Status::OK(); | 721 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.63k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.63k | _operator_profile = | 664 | 6.63k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.63k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.63k | _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.63k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.63k | _operator_profile->add_child(_common_profile, true); | 673 | 6.63k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.63k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.63k | _wait_for_finish_dependency_timer = | 677 | 6.63k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.63k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.63k | if constexpr (!is_fake_shared) { | 680 | 6.63k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.63k | 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.63k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.63k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.63k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.63k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.63k | } | 699 | 6.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.63k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.63k | } | 702 | | | 703 | 6.63k | 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.63k | _rows_input_counter = | 708 | 6.63k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.63k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.63k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.63k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.63k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.63k | _memory_used_counter = | 714 | 6.63k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.63k | _common_profile->add_info_string("IsColocate", | 716 | 6.63k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.63k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.63k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.63k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.63k | return Status::OK(); | 721 | 6.63k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.71k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.71k | _operator_profile = | 664 | 8.71k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.71k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.71k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.71k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.71k | _operator_profile->add_child(_common_profile, true); | 673 | 8.71k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.71k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.71k | _wait_for_finish_dependency_timer = | 677 | 8.71k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.71k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.71k | if constexpr (!is_fake_shared) { | 680 | 8.71k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.71k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.71k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.71k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.71k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.71k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.71k | } | 699 | 8.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.71k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.71k | } | 702 | | | 703 | 8.71k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.71k | _rows_input_counter = | 708 | 8.71k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.71k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.71k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.71k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.71k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.71k | _memory_used_counter = | 714 | 8.71k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.71k | _common_profile->add_info_string("IsColocate", | 716 | 8.71k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.71k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.71k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.71k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.71k | return Status::OK(); | 721 | 8.71k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 88.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 88.6k | _operator_profile = | 664 | 88.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 88.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 88.6k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 88.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 88.6k | _operator_profile->add_child(_common_profile, true); | 673 | 88.6k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 88.6k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 88.6k | _wait_for_finish_dependency_timer = | 677 | 88.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 88.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 88.6k | if constexpr (!is_fake_shared) { | 680 | 88.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 88.6k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 88.6k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 88.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 88.6k | _dependency = _shared_state->create_sink_dependency( | 697 | 88.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 88.6k | } | 699 | 88.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 88.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 88.6k | } | 702 | | | 703 | 88.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 88.6k | _rows_input_counter = | 708 | 88.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 88.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 88.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 88.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 88.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 88.6k | _memory_used_counter = | 714 | 88.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 88.6k | _common_profile->add_info_string("IsColocate", | 716 | 88.6k | std::to_string(_parent->is_colocated_operator())); | 717 | 88.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 88.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 88.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 88.6k | return Status::OK(); | 721 | 88.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 75.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 75.3k | _operator_profile = | 664 | 75.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 75.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 75.3k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 75.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 75.3k | _operator_profile->add_child(_common_profile, true); | 673 | 75.3k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 75.3k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 75.3k | _wait_for_finish_dependency_timer = | 677 | 75.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 75.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 75.3k | if constexpr (!is_fake_shared) { | 680 | 75.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 75.4k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 75.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 75.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 75.4k | ? 0 | 688 | 75.4k | : info.task_idx] | 689 | 75.4k | .get(); | 690 | 75.4k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 75.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 75.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 75.3k | } | 702 | | | 703 | 75.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 75.3k | _rows_input_counter = | 708 | 75.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 75.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 75.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 75.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 75.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 75.3k | _memory_used_counter = | 714 | 75.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 75.3k | _common_profile->add_info_string("IsColocate", | 716 | 75.3k | std::to_string(_parent->is_colocated_operator())); | 717 | 75.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 75.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 75.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 75.3k | return Status::OK(); | 721 | 75.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 57 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 57 | _operator_profile = | 664 | 57 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 57 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 57 | _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 | 57 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 57 | _operator_profile->add_child(_common_profile, true); | 673 | 57 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 57 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 57 | _wait_for_finish_dependency_timer = | 677 | 57 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 57 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 57 | if constexpr (!is_fake_shared) { | 680 | 57 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 57 | 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 | 57 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 57 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 57 | _dependency = _shared_state->create_sink_dependency( | 697 | 57 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 57 | } | 699 | 57 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 57 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 57 | } | 702 | | | 703 | 57 | 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 | 57 | _rows_input_counter = | 708 | 57 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 57 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 57 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 57 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 57 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 57 | _memory_used_counter = | 714 | 57 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 57 | _common_profile->add_info_string("IsColocate", | 716 | 57 | std::to_string(_parent->is_colocated_operator())); | 717 | 57 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 57 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 57 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 57 | return Status::OK(); | 721 | 57 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 474k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 474k | _operator_profile = | 664 | 474k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 474k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 474k | _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 | 474k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 474k | _operator_profile->add_child(_common_profile, true); | 673 | 474k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 474k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 474k | _wait_for_finish_dependency_timer = | 677 | 474k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 474k | 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 | 474k | 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 | 474k | _rows_input_counter = | 708 | 474k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 474k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 474k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 474k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 474k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 474k | _memory_used_counter = | 714 | 474k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 474k | _common_profile->add_info_string("IsColocate", | 716 | 474k | std::to_string(_parent->is_colocated_operator())); | 717 | 474k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 474k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 474k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 474k | return Status::OK(); | 721 | 474k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 9.95k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 9.95k | _operator_profile = | 664 | 9.95k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 9.95k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 9.95k | _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 | 9.95k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 9.95k | _operator_profile->add_child(_common_profile, true); | 673 | 9.95k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 9.95k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 9.95k | _wait_for_finish_dependency_timer = | 677 | 9.95k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 9.95k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 9.95k | if constexpr (!is_fake_shared) { | 680 | 9.95k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 9.95k | 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 | 9.95k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 9.95k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 9.95k | _dependency = _shared_state->create_sink_dependency( | 697 | 9.95k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 9.95k | } | 699 | 9.95k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 9.95k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 9.95k | } | 702 | | | 703 | 9.95k | 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 | 9.95k | _rows_input_counter = | 708 | 9.95k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 9.95k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 9.95k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 9.95k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 9.95k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 9.95k | _memory_used_counter = | 714 | 9.95k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 9.95k | _common_profile->add_info_string("IsColocate", | 716 | 9.95k | std::to_string(_parent->is_colocated_operator())); | 717 | 9.95k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 9.95k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 9.95k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 9.95k | return Status::OK(); | 721 | 9.95k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 501 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 501 | _operator_profile = | 664 | 501 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 501 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 501 | _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 | 501 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 501 | _operator_profile->add_child(_common_profile, true); | 673 | 501 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 501 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 501 | _wait_for_finish_dependency_timer = | 677 | 501 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 501 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 501 | if constexpr (!is_fake_shared) { | 680 | 501 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 501 | 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 | 501 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 501 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 501 | _dependency = _shared_state->create_sink_dependency( | 697 | 501 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 501 | } | 699 | 501 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 501 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 501 | } | 702 | | | 703 | 501 | 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 | 501 | _rows_input_counter = | 708 | 501 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 501 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 501 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 501 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 501 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 501 | _memory_used_counter = | 714 | 501 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 501 | _common_profile->add_info_string("IsColocate", | 716 | 501 | std::to_string(_parent->is_colocated_operator())); | 717 | 501 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 501 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 501 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 501 | return Status::OK(); | 721 | 501 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 1.96k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 1.96k | _operator_profile = | 664 | 1.96k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 1.96k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 1.96k | _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.96k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 1.96k | _operator_profile->add_child(_common_profile, true); | 673 | 1.96k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 1.96k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 1.96k | _wait_for_finish_dependency_timer = | 677 | 1.96k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 1.96k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 1.96k | if constexpr (!is_fake_shared) { | 680 | 1.96k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 1.96k | 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 | 1.96k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 1.96k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 1.96k | _dependency = _shared_state->create_sink_dependency( | 697 | 1.96k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 1.96k | } | 699 | 1.96k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 1.96k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 1.96k | } | 702 | | | 703 | 1.96k | 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.96k | _rows_input_counter = | 708 | 1.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 1.96k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 1.96k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 1.96k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 1.96k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 1.96k | _memory_used_counter = | 714 | 1.96k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 1.96k | _common_profile->add_info_string("IsColocate", | 716 | 1.96k | std::to_string(_parent->is_colocated_operator())); | 717 | 1.96k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 1.96k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 1.96k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 1.96k | return Status::OK(); | 721 | 1.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.4k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.4k | _operator_profile = | 664 | 12.4k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.4k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.4k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.4k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.4k | _operator_profile->add_child(_common_profile, true); | 673 | 12.4k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.4k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.4k | _wait_for_finish_dependency_timer = | 677 | 12.4k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.4k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.4k | if constexpr (!is_fake_shared) { | 680 | 12.4k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.4k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.4k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.4k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.4k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.4k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.4k | } | 699 | 12.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.4k | } | 702 | | | 703 | 12.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.4k | _rows_input_counter = | 708 | 12.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.4k | _memory_used_counter = | 714 | 12.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.4k | _common_profile->add_info_string("IsColocate", | 716 | 12.4k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.4k | return Status::OK(); | 721 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 224k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 224k | _operator_profile = | 664 | 224k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 224k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 224k | _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 | 224k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 224k | _operator_profile->add_child(_common_profile, true); | 673 | 224k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 224k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 224k | _wait_for_finish_dependency_timer = | 677 | 224k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 224k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 224k | if constexpr (!is_fake_shared) { | 680 | 224k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 224k | info.shared_state_map.end()) { | 682 | 224k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 224k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 224k | } | 685 | 224k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 224k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 224k | ? 0 | 688 | 224k | : info.task_idx] | 689 | 224k | .get(); | 690 | 224k | _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 | 224k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 224k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 224k | } | 702 | | | 703 | 224k | 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 | 224k | _rows_input_counter = | 708 | 224k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 224k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 224k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 224k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 224k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 224k | _memory_used_counter = | 714 | 224k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 224k | _common_profile->add_info_string("IsColocate", | 716 | 224k | std::to_string(_parent->is_colocated_operator())); | 717 | 224k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 224k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 224k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 224k | return Status::OK(); | 721 | 224k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 425k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 425k | _operator_profile = | 664 | 425k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 425k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 425k | _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 | 425k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 425k | _operator_profile->add_child(_common_profile, true); | 673 | 425k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 425k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 425k | _wait_for_finish_dependency_timer = | 677 | 425k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 425k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 425k | if constexpr (!is_fake_shared) { | 680 | 425k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 425k | 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 | 425k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 425k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 425k | _dependency = _shared_state->create_sink_dependency( | 697 | 425k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 425k | } | 699 | 425k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 425k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 425k | } | 702 | | | 703 | 425k | 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 | 425k | _rows_input_counter = | 708 | 425k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 425k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 425k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 425k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 425k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 425k | _memory_used_counter = | 714 | 425k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 425k | _common_profile->add_info_string("IsColocate", | 716 | 425k | std::to_string(_parent->is_colocated_operator())); | 717 | 425k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 425k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 425k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 425k | return Status::OK(); | 721 | 425k | } |
_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.15M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.15M | } |
731 | 1.62M | _closed = true; |
732 | 1.62M | return Status::OK(); |
733 | 1.62M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 118k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 118k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 118k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 118k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 118k | } | 731 | 118k | _closed = true; | 732 | 118k | return Status::OK(); | 733 | 118k | } |
_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 | 176k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 176k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 176k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 176k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 176k | } | 731 | 176k | _closed = true; | 732 | 176k | return Status::OK(); | 733 | 176k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 24 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 24 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 22 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 22 | } | 731 | 22 | _closed = true; | 732 | 22 | return Status::OK(); | 733 | 24 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.64k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.64k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.64k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.64k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.64k | } | 731 | 6.64k | _closed = true; | 732 | 6.64k | return Status::OK(); | 733 | 6.64k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.69k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.69k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.69k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.69k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.69k | } | 731 | 8.69k | _closed = true; | 732 | 8.69k | return Status::OK(); | 733 | 8.69k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 88.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 88.5k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 88.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 88.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 88.5k | } | 731 | 88.5k | _closed = true; | 732 | 88.5k | return Status::OK(); | 733 | 88.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 75.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 75.1k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 75.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 75.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 75.1k | } | 731 | 75.1k | _closed = true; | 732 | 75.1k | return Status::OK(); | 733 | 75.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 46 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 46 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 46 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 46 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 46 | } | 731 | 46 | _closed = true; | 732 | 46 | return Status::OK(); | 733 | 46 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 475k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 475k | 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 | 475k | _closed = true; | 732 | 475k | return Status::OK(); | 733 | 475k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 9.96k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 9.96k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 9.96k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 9.96k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 9.96k | } | 731 | 9.96k | _closed = true; | 732 | 9.96k | return Status::OK(); | 733 | 9.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 403 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 403 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 403 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 403 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 403 | } | 731 | 403 | _closed = true; | 732 | 403 | return Status::OK(); | 733 | 403 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1.97k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1.97k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1.97k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1.97k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1.97k | } | 731 | 1.97k | _closed = true; | 732 | 1.97k | return Status::OK(); | 733 | 1.97k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.5k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.5k | } | 731 | 12.5k | _closed = true; | 732 | 12.5k | return Status::OK(); | 733 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 225k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 225k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 225k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 225k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 225k | } | 731 | 225k | _closed = true; | 732 | 225k | return Status::OK(); | 733 | 225k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 427k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 427k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 427k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 427k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 427k | } | 731 | 427k | _closed = true; | 732 | 427k | return Status::OK(); | 733 | 427k | } |
_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 | 2.76k | bool* eos) { |
738 | 2.76k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 2.76k | return pull(state, block, eos); |
740 | 2.76k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 38 | bool* eos) { | 738 | 38 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 38 | return pull(state, block, eos); | 740 | 38 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 2.72k | bool* eos) { | 738 | 2.72k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 2.72k | return pull(state, block, eos); | 740 | 2.72k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 551k | bool* eos) { |
745 | 551k | auto& local_state = get_local_state(state); |
746 | 551k | if (need_more_input_data(state)) { |
747 | 521k | local_state._child_block->clear_column_data( |
748 | 521k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 521k | .num_materialized_slots()); |
750 | 521k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 521k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 521k | *eos = local_state._child_eos; |
753 | 521k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 60.8k | return Status::OK(); |
755 | 60.8k | } |
756 | 460k | { |
757 | 460k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 460k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 460k | } |
760 | 460k | } |
761 | | |
762 | 490k | if (!need_more_input_data(state)) { |
763 | 465k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 465k | bool new_eos = false; |
765 | 465k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 465k | if (new_eos) { |
767 | 385k | *eos = true; |
768 | 385k | } else if (!need_more_input_data(state)) { |
769 | 23.6k | *eos = false; |
770 | 23.6k | } |
771 | 465k | } |
772 | 490k | return Status::OK(); |
773 | 490k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 141k | bool* eos) { | 745 | 141k | auto& local_state = get_local_state(state); | 746 | 141k | if (need_more_input_data(state)) { | 747 | 125k | local_state._child_block->clear_column_data( | 748 | 125k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 125k | .num_materialized_slots()); | 750 | 125k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 125k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 125k | *eos = local_state._child_eos; | 753 | 125k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 36.6k | return Status::OK(); | 755 | 36.6k | } | 756 | 88.5k | { | 757 | 88.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 88.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 88.5k | } | 760 | 88.5k | } | 761 | | | 762 | 105k | if (!need_more_input_data(state)) { | 763 | 105k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 105k | bool new_eos = false; | 765 | 105k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 105k | if (new_eos) { | 767 | 45.9k | *eos = true; | 768 | 59.3k | } else if (!need_more_input_data(state)) { | 769 | 9.55k | *eos = false; | 770 | 9.55k | } | 771 | 105k | } | 772 | 105k | return Status::OK(); | 773 | 105k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.27k | bool* eos) { | 745 | 4.27k | auto& local_state = get_local_state(state); | 746 | 4.27k | if (need_more_input_data(state)) { | 747 | 2.35k | local_state._child_block->clear_column_data( | 748 | 2.35k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.35k | .num_materialized_slots()); | 750 | 2.35k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.35k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.35k | *eos = local_state._child_eos; | 753 | 2.35k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 378 | return Status::OK(); | 755 | 378 | } | 756 | 1.97k | { | 757 | 1.97k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.97k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.97k | } | 760 | 1.97k | } | 761 | | | 762 | 3.90k | if (!need_more_input_data(state)) { | 763 | 3.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.90k | bool new_eos = false; | 765 | 3.90k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.90k | if (new_eos) { | 767 | 1.41k | *eos = true; | 768 | 2.49k | } else if (!need_more_input_data(state)) { | 769 | 1.91k | *eos = false; | 770 | 1.91k | } | 771 | 3.90k | } | 772 | 3.89k | return Status::OK(); | 773 | 3.89k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.89k | bool* eos) { | 745 | 1.89k | auto& local_state = get_local_state(state); | 746 | 1.89k | if (need_more_input_data(state)) { | 747 | 1.89k | local_state._child_block->clear_column_data( | 748 | 1.89k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.89k | .num_materialized_slots()); | 750 | 1.89k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.89k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.89k | *eos = local_state._child_eos; | 753 | 1.89k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 770 | return Status::OK(); | 755 | 770 | } | 756 | 1.12k | { | 757 | 1.12k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.12k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.12k | } | 760 | 1.12k | } | 761 | | | 762 | 1.12k | if (!need_more_input_data(state)) { | 763 | 1.12k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.12k | bool new_eos = false; | 765 | 1.12k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.12k | if (new_eos) { | 767 | 775 | *eos = true; | 768 | 775 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.12k | } | 772 | 1.12k | return Status::OK(); | 773 | 1.12k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 15.9k | bool* eos) { | 745 | 15.9k | auto& local_state = get_local_state(state); | 746 | 15.9k | if (need_more_input_data(state)) { | 747 | 15.9k | local_state._child_block->clear_column_data( | 748 | 15.9k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 15.9k | .num_materialized_slots()); | 750 | 15.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 15.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 15.9k | *eos = local_state._child_eos; | 753 | 15.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.01k | return Status::OK(); | 755 | 4.01k | } | 756 | 11.9k | { | 757 | 11.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 11.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 11.9k | } | 760 | 11.9k | } | 761 | | | 762 | 11.9k | if (!need_more_input_data(state)) { | 763 | 5.59k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.59k | bool new_eos = false; | 765 | 5.59k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.59k | if (new_eos) { | 767 | 5.56k | *eos = true; | 768 | 5.56k | } else if (!need_more_input_data(state)) { | 769 | 12 | *eos = false; | 770 | 12 | } | 771 | 5.59k | } | 772 | 11.9k | return Status::OK(); | 773 | 11.9k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 356k | bool* eos) { | 745 | 356k | auto& local_state = get_local_state(state); | 746 | 357k | if (need_more_input_data(state)) { | 747 | 357k | local_state._child_block->clear_column_data( | 748 | 357k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 357k | .num_materialized_slots()); | 750 | 357k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 357k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 357k | *eos = local_state._child_eos; | 753 | 357k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 17.3k | return Status::OK(); | 755 | 17.3k | } | 756 | 339k | { | 757 | 339k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 339k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 339k | } | 760 | 339k | } | 761 | | | 762 | 339k | if (!need_more_input_data(state)) { | 763 | 320k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 320k | bool new_eos = false; | 765 | 320k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 320k | if (new_eos) { | 767 | 320k | *eos = true; | 768 | 320k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 320k | } | 772 | 339k | return Status::OK(); | 773 | 339k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 23.3k | bool* eos) { | 745 | 23.3k | auto& local_state = get_local_state(state); | 746 | 23.3k | if (need_more_input_data(state)) { | 747 | 11.5k | local_state._child_block->clear_column_data( | 748 | 11.5k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.5k | .num_materialized_slots()); | 750 | 11.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.5k | *eos = local_state._child_eos; | 753 | 11.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 692 | return Status::OK(); | 755 | 692 | } | 756 | 10.8k | { | 757 | 10.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.8k | } | 760 | 10.8k | } | 761 | | | 762 | 22.6k | if (!need_more_input_data(state)) { | 763 | 22.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 22.0k | bool new_eos = false; | 765 | 22.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 22.0k | if (new_eos) { | 767 | 6.60k | *eos = true; | 768 | 15.4k | } else if (!need_more_input_data(state)) { | 769 | 11.7k | *eos = false; | 770 | 11.7k | } | 771 | 22.0k | } | 772 | 22.6k | return Status::OK(); | 773 | 22.6k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 7.56k | bool* eos) { | 745 | 7.56k | auto& local_state = get_local_state(state); | 746 | 7.56k | if (need_more_input_data(state)) { | 747 | 7.21k | local_state._child_block->clear_column_data( | 748 | 7.21k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.21k | .num_materialized_slots()); | 750 | 7.21k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.21k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.21k | *eos = local_state._child_eos; | 753 | 7.21k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 981 | return Status::OK(); | 755 | 981 | } | 756 | 6.23k | { | 757 | 6.23k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.23k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.23k | } | 760 | 6.23k | } | 761 | | | 762 | 6.59k | if (!need_more_input_data(state)) { | 763 | 6.59k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.59k | bool new_eos = false; | 765 | 6.59k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.59k | if (new_eos) { | 767 | 4.60k | *eos = true; | 768 | 4.60k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 6.59k | } | 772 | 6.57k | return Status::OK(); | 773 | 6.57k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 46.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 46.4k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 46.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 46.4k | "AsyncWriterDependency", true); |
781 | 46.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 46.4k | _finish_dependency)); |
783 | | |
784 | 46.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 46.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 46.4k | return Status::OK(); |
787 | 46.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 375 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 375 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 375 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 375 | "AsyncWriterDependency", true); | 781 | 375 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 375 | _finish_dependency)); | 783 | | | 784 | 375 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 375 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 375 | return Status::OK(); | 787 | 375 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 46.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 46.0k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 46.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 46.0k | "AsyncWriterDependency", true); | 781 | 46.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 46.0k | _finish_dependency)); | 783 | | | 784 | 46.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 46.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 46.0k | return Status::OK(); | 787 | 46.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 12 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 12 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 12 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 12 | "AsyncWriterDependency", true); | 781 | 12 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 12 | _finish_dependency)); | 783 | | | 784 | 12 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 12 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 12 | return Status::OK(); | 787 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
788 | | |
789 | | template <typename Writer, typename Parent> |
790 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
791 | 46.7k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 46.7k | RETURN_IF_ERROR(Base::open(state)); |
793 | 46.7k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 369k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 322k | RETURN_IF_ERROR( |
796 | 322k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 322k | } |
798 | 46.7k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 46.7k | return Status::OK(); |
800 | 46.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 378 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 378 | RETURN_IF_ERROR(Base::open(state)); | 793 | 378 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.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 | 378 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 378 | return Status::OK(); | 800 | 378 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 46.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 46.3k | RETURN_IF_ERROR(Base::open(state)); | 793 | 46.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 366k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 320k | RETURN_IF_ERROR( | 796 | 320k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 320k | } | 798 | 46.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 46.3k | return Status::OK(); | 800 | 46.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 12 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 12 | RETURN_IF_ERROR(Base::open(state)); | 793 | 12 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 216 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 204 | RETURN_IF_ERROR( | 796 | 204 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 204 | } | 798 | 12 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 12 | return Status::OK(); | 800 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 61.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 61.7k | return _writer->sink(block, eos); |
806 | 61.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.45k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.45k | return _writer->sink(block, eos); | 806 | 1.45k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 60.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 60.3k | return _writer->sink(block, eos); | 806 | 60.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 12 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 12 | return _writer->sink(block, eos); | 806 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
807 | | |
808 | | template <typename Writer, typename Parent> |
809 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
810 | 46.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 46.7k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 46.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 46.7k | 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 | 46.8k | if (_writer) { |
818 | 46.8k | Status st = _writer->get_writer_status(); |
819 | 46.8k | if (exec_status.ok()) { |
820 | 46.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 46.7k | : Status::Cancelled("force close")); |
822 | 46.7k | } else { |
823 | 130 | _writer->force_close(exec_status); |
824 | 130 | } |
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 | 46.8k | RETURN_IF_ERROR(st); |
829 | 46.8k | } |
830 | 46.7k | return Base::close(state, exec_status); |
831 | 46.7k | } _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 | 46.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 46.4k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 46.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 46.4k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 46.4k | if (_writer) { | 818 | 46.4k | Status st = _writer->get_writer_status(); | 819 | 46.4k | if (exec_status.ok()) { | 820 | 46.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 46.3k | : Status::Cancelled("force close")); | 822 | 46.3k | } else { | 823 | 130 | _writer->force_close(exec_status); | 824 | 130 | } | 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 | 46.4k | RETURN_IF_ERROR(st); | 829 | 46.4k | } | 830 | 46.3k | return Base::close(state, exec_status); | 831 | 46.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 12 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 12 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 12 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 12 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 12 | if (_writer) { | 818 | 12 | Status st = _writer->get_writer_status(); | 819 | 12 | if (exec_status.ok()) { | 820 | 12 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 12 | : Status::Cancelled("force close")); | 822 | 12 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 12 | RETURN_IF_ERROR(st); | 829 | 12 | } | 830 | 12 | return Base::close(state, exec_status); | 831 | 12 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE 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 |