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 | 2.12M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 2.12M | if (_parent->nereids_id() == -1) { |
122 | 1.10M | return fmt::format("(id={})", _parent->node_id()); |
123 | 1.10M | } else { |
124 | 1.01M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 1.01M | } |
126 | 2.12M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 68.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 68.1k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 68.1k | } else { | 124 | 68.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 68.1k | } | 126 | 68.1k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 1 | if (_parent->nereids_id() == -1) { | 122 | 1 | return fmt::format("(id={})", _parent->node_id()); | 123 | 1 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 271k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 271k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 271k | } else { | 124 | 271k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 271k | } | 126 | 271k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 22 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 22 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 22 | } else { | 124 | 22 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 22 | } | 126 | 22 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 8.97k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 8.97k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 8.97k | } else { | 124 | 8.97k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 8.97k | } | 126 | 8.97k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 9.80k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 9.80k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 9.79k | } else { | 124 | 9.79k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 9.79k | } | 126 | 9.80k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 156k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 156k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 156k | } else { | 124 | 156k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 156k | } | 126 | 156k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 714 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 714 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 714 | } else { | 124 | 714 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 714 | } | 126 | 714 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 201 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 201 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 201 | } else { | 124 | 201 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 201 | } | 126 | 201 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 817k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 817k | if (_parent->nereids_id() == -1) { | 122 | 380k | return fmt::format("(id={})", _parent->node_id()); | 123 | 437k | } else { | 124 | 437k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 437k | } | 126 | 817k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 56.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 56.4k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 56.4k | } else { | 124 | 56.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 56.4k | } | 126 | 56.4k | } |
_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 | 10.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 10.1k | if (_parent->nereids_id() == -1) { | 122 | 10.1k | return fmt::format("(id={})", _parent->node_id()); | 123 | 10.1k | } else { | 124 | 4 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4 | } | 126 | 10.1k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 676 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 676 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 574 | } else { | 124 | 574 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 574 | } | 126 | 676 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.15k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.15k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.13k | } else { | 124 | 5.13k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.13k | } | 126 | 5.15k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 717k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 717k | if (_parent->nereids_id() == -1) { | 122 | 715k | return fmt::format("(id={})", _parent->node_id()); | 123 | 715k | } else { | 124 | 1.24k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 1.24k | } | 126 | 717k | } |
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.35M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.35M | if (_parent->nereids_id() == -1) { |
131 | 778k | return fmt::format("(id={})", _parent->node_id()); |
132 | 778k | } else { |
133 | 574k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 574k | } |
135 | 1.35M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 116k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 116k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 116k | } else { | 133 | 116k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 116k | } | 135 | 116k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 273k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 273k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 273k | } else { | 133 | 273k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 273k | } | 135 | 273k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 29 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 29 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 29 | } else { | 133 | 29 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 29 | } | 135 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.00k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.00k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.00k | } else { | 133 | 9.00k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.00k | } | 135 | 9.00k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.84k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.84k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.83k | } else { | 133 | 9.83k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.83k | } | 135 | 9.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 156k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 156k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 156k | } else { | 133 | 156k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 156k | } | 135 | 156k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 719 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 719 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 719 | } else { | 133 | 719 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 719 | } | 135 | 719 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 211 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 211 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 211 | } else { | 133 | 211 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 211 | } | 135 | 211 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 86 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 86 | if (_parent->nereids_id() == -1) { | 131 | 86 | return fmt::format("(id={})", _parent->node_id()); | 132 | 86 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 86 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 6.25k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 6.25k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 6.24k | } else { | 133 | 6.24k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 6.24k | } | 135 | 6.25k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 675 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 675 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 573 | } else { | 133 | 573 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 573 | } | 135 | 675 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.4k | if (_parent->nereids_id() == -1) { | 131 | 12.4k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 258k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 258k | if (_parent->nereids_id() == -1) { | 131 | 258k | 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 | 258k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 507k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 507k | if (_parent->nereids_id() == -1) { | 131 | 506k | return fmt::format("(id={})", _parent->node_id()); | 132 | 506k | } else { | 133 | 146 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 146 | } | 135 | 507k | } |
_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 | 29.8k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 29.8k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 29.8k | _terminated = true; |
143 | 29.8k | return Status::OK(); |
144 | 29.8k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 976 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 976 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 976 | _terminated = true; | 143 | 976 | return Status::OK(); | 144 | 976 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 4 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 4 | _terminated = true; | 143 | 4 | return Status::OK(); | 144 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2 | _terminated = true; | 143 | 2 | return Status::OK(); | 144 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 3.11k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3.11k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3.11k | _terminated = true; | 143 | 3.11k | return Status::OK(); | 144 | 3.11k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 555 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 555 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 555 | _terminated = true; | 143 | 555 | return Status::OK(); | 144 | 555 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 17 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 17 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 17 | _terminated = true; | 143 | 17 | return Status::OK(); | 144 | 17 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 806 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 806 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 806 | _terminated = true; | 143 | 806 | return Status::OK(); | 144 | 806 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_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_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 169 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 169 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 169 | _terminated = true; | 143 | 169 | return Status::OK(); | 144 | 169 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 143 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 143 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 143 | _terminated = true; | 143 | 143 | return Status::OK(); | 144 | 143 | } |
|
145 | | |
146 | 409k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 409k | return _child && _child->is_serial_operator() && !is_source() |
148 | 409k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 409k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 409k | } |
151 | | |
152 | 26.6k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 26.6k | if (!_child) { |
154 | 21.7k | return false; |
155 | 21.7k | } |
156 | 4.85k | if (_child->is_serial_operator()) { |
157 | 178 | return true; |
158 | 178 | } |
159 | 4.67k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 4.67k | return child_distribution.need_local_exchange() && |
161 | 4.67k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 4.85k | } |
163 | | |
164 | 82.7k | const RowDescriptor& OperatorBase::row_desc() const { |
165 | 82.7k | return _child->row_desc(); |
166 | 82.7k | } |
167 | | |
168 | | template <typename SharedStateArg> |
169 | 19.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
170 | 19.0k | fmt::memory_buffer debug_string_buffer; |
171 | 19.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
172 | 19.0k | return fmt::to_string(debug_string_buffer); |
173 | 19.0k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 28 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 28 | fmt::memory_buffer debug_string_buffer; | 171 | 28 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 28 | return fmt::to_string(debug_string_buffer); | 173 | 28 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 3 | fmt::memory_buffer debug_string_buffer; | 171 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 3 | return fmt::to_string(debug_string_buffer); | 173 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 14 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 14 | fmt::memory_buffer debug_string_buffer; | 171 | 14 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 14 | return fmt::to_string(debug_string_buffer); | 173 | 14 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 14 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 14 | fmt::memory_buffer debug_string_buffer; | 171 | 14 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 14 | return fmt::to_string(debug_string_buffer); | 173 | 14 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 12 | fmt::memory_buffer debug_string_buffer; | 171 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 12 | return fmt::to_string(debug_string_buffer); | 173 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 18.9k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 18.9k | fmt::memory_buffer debug_string_buffer; | 171 | 18.9k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 18.9k | return fmt::to_string(debug_string_buffer); | 173 | 18.9k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 1 | fmt::memory_buffer debug_string_buffer; | 171 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 1 | return fmt::to_string(debug_string_buffer); | 173 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 50 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 50 | fmt::memory_buffer debug_string_buffer; | 171 | 50 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 50 | return fmt::to_string(debug_string_buffer); | 173 | 50 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
174 | | |
175 | | template <typename SharedStateArg> |
176 | 19.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
177 | 19.0k | fmt::memory_buffer debug_string_buffer; |
178 | 19.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
179 | 19.0k | return fmt::to_string(debug_string_buffer); |
180 | 19.0k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 8 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 8 | fmt::memory_buffer debug_string_buffer; | 178 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 8 | return fmt::to_string(debug_string_buffer); | 180 | 8 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 14 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 14 | fmt::memory_buffer debug_string_buffer; | 178 | 14 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 14 | return fmt::to_string(debug_string_buffer); | 180 | 14 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 12 | fmt::memory_buffer debug_string_buffer; | 178 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 12 | return fmt::to_string(debug_string_buffer); | 180 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 28 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 28 | fmt::memory_buffer debug_string_buffer; | 178 | 28 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 28 | return fmt::to_string(debug_string_buffer); | 180 | 28 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 27 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 27 | fmt::memory_buffer debug_string_buffer; | 178 | 27 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 27 | return fmt::to_string(debug_string_buffer); | 180 | 27 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 18.9k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 18.9k | fmt::memory_buffer debug_string_buffer; | 178 | 18.9k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 18.9k | return fmt::to_string(debug_string_buffer); | 180 | 18.9k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
181 | | |
182 | 19.0k | std::string OperatorXBase::debug_string(int indentation_level) const { |
183 | 19.0k | fmt::memory_buffer debug_string_buffer; |
184 | 19.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
185 | 19.0k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
186 | 19.0k | _is_serial_operator); |
187 | 19.0k | return fmt::to_string(debug_string_buffer); |
188 | 19.0k | } |
189 | | |
190 | 19.0k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
191 | 19.0k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
192 | 19.0k | } |
193 | | |
194 | 834k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
195 | 834k | std::string node_name = print_plan_node_type(tnode.node_type); |
196 | 834k | _nereids_id = tnode.nereids_id; |
197 | 834k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
198 | 4.08k | if (!tnode.__isset.output_tuple_id) { |
199 | 0 | return Status::InternalError("no final output tuple id"); |
200 | 0 | } |
201 | 4.08k | if (tnode.intermediate_output_tuple_id_list.size() != |
202 | 4.08k | tnode.intermediate_projections_list.size()) { |
203 | 0 | return Status::InternalError( |
204 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
205 | 0 | "intermediate_projections_list size:{}", |
206 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
207 | 0 | tnode.intermediate_projections_list.size()); |
208 | 0 | } |
209 | 4.08k | } |
210 | 834k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
211 | 834k | _op_name = substr + "_OPERATOR"; |
212 | | |
213 | 834k | if (tnode.__isset.vconjunct) { |
214 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
215 | 834k | } else if (tnode.__isset.conjuncts) { |
216 | 489k | for (const auto& conjunct : tnode.conjuncts) { |
217 | 489k | VExprContextSPtr context; |
218 | 489k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
219 | 489k | _conjuncts.emplace_back(context); |
220 | 489k | } |
221 | 157k | } |
222 | | |
223 | | // create the projections expr |
224 | 834k | if (tnode.__isset.projections) { |
225 | 333k | DCHECK(tnode.__isset.output_tuple_id); |
226 | 333k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
227 | 333k | } |
228 | 834k | if (!tnode.intermediate_projections_list.empty()) { |
229 | 4.08k | DCHECK(tnode.__isset.projections) << "no final projections"; |
230 | 4.08k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
231 | 8.17k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
232 | 8.17k | VExprContextSPtrs projections; |
233 | 8.17k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
234 | 8.17k | _intermediate_projections.push_back(projections); |
235 | 8.17k | } |
236 | 4.08k | } |
237 | 834k | return Status::OK(); |
238 | 834k | } |
239 | | |
240 | 866k | Status OperatorXBase::prepare(RuntimeState* state) { |
241 | 866k | for (auto& conjunct : _conjuncts) { |
242 | 488k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
243 | 488k | } |
244 | 866k | if (state->enable_adjust_conjunct_order_by_cost()) { |
245 | 812k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
246 | 651k | return a->execute_cost() < b->execute_cost(); |
247 | 651k | }); |
248 | 812k | }; |
249 | | |
250 | 874k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
251 | 8.17k | RETURN_IF_ERROR( |
252 | 8.17k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
253 | 8.17k | } |
254 | 866k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
255 | | |
256 | 866k | if (has_output_row_desc()) { |
257 | 333k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
258 | 333k | } |
259 | | |
260 | 866k | for (auto& conjunct : _conjuncts) { |
261 | 489k | RETURN_IF_ERROR(conjunct->open(state)); |
262 | 489k | } |
263 | 866k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
264 | 866k | for (auto& projections : _intermediate_projections) { |
265 | 8.17k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
266 | 8.17k | } |
267 | 866k | if (_child && !is_source()) { |
268 | 126k | RETURN_IF_ERROR(_child->prepare(state)); |
269 | 126k | } |
270 | | |
271 | 866k | if (VExpr::contains_blockable_function(_conjuncts) || |
272 | 866k | VExpr::contains_blockable_function(_projections)) { |
273 | 0 | _blockable = true; |
274 | 0 | } |
275 | | |
276 | 866k | return Status::OK(); |
277 | 866k | } |
278 | | |
279 | 7.23k | Status OperatorXBase::terminate(RuntimeState* state) { |
280 | 7.23k | if (_child && !is_source()) { |
281 | 1.41k | RETURN_IF_ERROR(_child->terminate(state)); |
282 | 1.41k | } |
283 | 7.23k | auto result = state->get_local_state_result(operator_id()); |
284 | 7.23k | if (!result) { |
285 | 0 | return result.error(); |
286 | 0 | } |
287 | 7.23k | return result.value()->terminate(state); |
288 | 7.23k | } |
289 | | |
290 | 5.95M | Status OperatorXBase::close(RuntimeState* state) { |
291 | 5.95M | if (_child && !is_source()) { |
292 | 1.01M | RETURN_IF_ERROR(_child->close(state)); |
293 | 1.01M | } |
294 | 5.95M | auto result = state->get_local_state_result(operator_id()); |
295 | 5.95M | if (!result) { |
296 | 0 | return result.error(); |
297 | 0 | } |
298 | 5.95M | return result.value()->close(state); |
299 | 5.95M | } |
300 | | |
301 | 295k | void PipelineXLocalStateBase::clear_origin_block() { |
302 | 295k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
303 | 295k | } |
304 | | |
305 | 570k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
306 | 570k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
307 | | |
308 | 570k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
309 | 570k | return Status::OK(); |
310 | 570k | } |
311 | | |
312 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
313 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
314 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
315 | 0 | } |
316 | | |
317 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
318 | 295k | Block* output_block) const { |
319 | 295k | auto* local_state = state->get_local_state(operator_id()); |
320 | 295k | SCOPED_TIMER(local_state->exec_time_counter()); |
321 | 295k | SCOPED_TIMER(local_state->_projection_timer); |
322 | 295k | const size_t rows = origin_block->rows(); |
323 | 295k | if (rows == 0) { |
324 | 148k | return Status::OK(); |
325 | 148k | } |
326 | 147k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
327 | | |
328 | 147k | { |
329 | 147k | Block input_block = *origin_block; |
330 | | |
331 | 147k | ColumnsWithTypeAndName new_columns; |
332 | 147k | for (const auto& projections : local_state->_intermediate_projections) { |
333 | 1.99k | if (projections.empty()) { |
334 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
335 | 0 | node_id()); |
336 | 0 | } |
337 | 1.99k | new_columns.resize(projections.size()); |
338 | 15.4k | for (int i = 0; i < projections.size(); i++) { |
339 | 13.4k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
340 | 13.4k | if (new_columns[i].column->size() != rows) { |
341 | 0 | return Status::InternalError( |
342 | 0 | "intermediate projection result column size {} not equal input rows " |
343 | 0 | "{}, expr: {}", |
344 | 0 | new_columns[i].column->size(), rows, |
345 | 0 | projections[i]->root()->debug_string()); |
346 | 0 | } |
347 | 13.4k | } |
348 | 1.99k | Block tmp_block {new_columns}; |
349 | 1.99k | input_block.swap(tmp_block); |
350 | 1.99k | } |
351 | | |
352 | 147k | if (input_block.rows() != rows) { |
353 | 0 | return Status::InternalError( |
354 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
355 | 0 | "input_block: {}", |
356 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
357 | 0 | } |
358 | | |
359 | 147k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
360 | 147k | output_block, *_output_row_descriptor); |
361 | 147k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
362 | 147k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
363 | 147k | Columns shared_columns(mutable_columns.size()); |
364 | | |
365 | 822k | for (int i = 0; i < mutable_columns.size(); ++i) { |
366 | 674k | ColumnPtr column_ptr; |
367 | 674k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
368 | 674k | if (column_ptr->size() != rows) { |
369 | 0 | return Status::InternalError( |
370 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
371 | 0 | column_ptr->size(), rows, |
372 | 0 | local_state->_projections[i]->root()->debug_string()); |
373 | 0 | } |
374 | 674k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
375 | 674k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
376 | 0 | column_ptr = make_nullable(column_ptr, false); |
377 | 0 | } |
378 | 674k | if (column_ptr->is_exclusive()) { |
379 | 249k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
380 | 424k | } else { |
381 | 424k | shared_columns[i] = std::move(column_ptr); |
382 | 424k | } |
383 | 674k | } |
384 | | |
385 | 147k | scoped_mutable_block.restore(); |
386 | 822k | for (int i = 0; i < shared_columns.size(); ++i) { |
387 | 674k | if (shared_columns[i]) { |
388 | 424k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
389 | 424k | } |
390 | 674k | } |
391 | 147k | } |
392 | | |
393 | 0 | origin_block->clear_column_data( |
394 | 147k | local_state->_parent->intermediate_row_desc().num_materialized_slots()); |
395 | 147k | DCHECK_EQ(output_block->rows(), rows); |
396 | | |
397 | 147k | return Status::OK(); |
398 | 147k | } |
399 | | |
400 | 4.68M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
401 | 4.68M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
402 | 4.68M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
403 | 4.68M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
404 | 4.68M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
405 | 4.68M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
406 | 4.68M | if (_debug_point_count++ % 2 == 0) { |
407 | 4.68M | return Status::OK(); |
408 | 4.68M | } |
409 | 4.68M | } |
410 | 4.68M | }); |
411 | | |
412 | 4.68M | Status status; |
413 | 4.68M | auto* local_state = state->get_local_state(operator_id()); |
414 | 4.68M | Defer defer([&]() { |
415 | 4.68M | if (status.ok()) { |
416 | 4.68M | local_state->update_output_block_counters(*block); |
417 | 4.68M | } |
418 | 4.68M | }); |
419 | 4.68M | if (_output_row_descriptor) { |
420 | 295k | local_state->clear_origin_block(); |
421 | 295k | status = get_block(state, &local_state->_origin_block, eos); |
422 | 295k | if (UNLIKELY(!status.ok())) { |
423 | 20 | return status; |
424 | 20 | } |
425 | 295k | status = do_projections(state, &local_state->_origin_block, block); |
426 | 295k | return status; |
427 | 295k | } |
428 | 4.39M | status = get_block(state, block, eos); |
429 | 4.39M | RETURN_IF_ERROR(block->check_type_and_column()); |
430 | 4.39M | return status; |
431 | 4.39M | } |
432 | | |
433 | 3.25M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
434 | 3.25M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
435 | 6.95k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
436 | 6.95k | *eos = true; |
437 | 6.95k | } |
438 | | |
439 | 3.25M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
440 | 3.25M | auto op_name = to_lower(_parent->_op_name); |
441 | 3.25M | auto arg_op_name = dp->param<std::string>("op_name"); |
442 | 3.25M | arg_op_name = to_lower(arg_op_name); |
443 | | |
444 | 3.25M | if (op_name == arg_op_name) { |
445 | 3.25M | *eos = true; |
446 | 3.25M | } |
447 | 3.25M | }); |
448 | | |
449 | 3.25M | if (auto rows = block->rows()) { |
450 | 917k | _num_rows_returned += rows; |
451 | 917k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
452 | 917k | } |
453 | 3.25M | } |
454 | | |
455 | 29.8k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
456 | 29.8k | auto result = state->get_sink_local_state_result(); |
457 | 29.8k | if (!result) { |
458 | 0 | return result.error(); |
459 | 0 | } |
460 | 29.8k | return result.value()->terminate(state); |
461 | 29.8k | } |
462 | | |
463 | 19.0k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
464 | 19.0k | fmt::memory_buffer debug_string_buffer; |
465 | | |
466 | 19.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
467 | 19.0k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
468 | 19.0k | return fmt::to_string(debug_string_buffer); |
469 | 19.0k | } |
470 | | |
471 | 19.0k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
472 | 19.0k | return state->get_sink_local_state()->debug_string(indentation_level); |
473 | 19.0k | } |
474 | | |
475 | 477k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
476 | 477k | std::string op_name = "UNKNOWN_SINK"; |
477 | 477k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
478 | | |
479 | 477k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
480 | 477k | op_name = it->second; |
481 | 477k | } |
482 | 477k | _name = op_name + "_OPERATOR"; |
483 | 477k | return Status::OK(); |
484 | 477k | } |
485 | | |
486 | 308k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
487 | 308k | std::string op_name = print_plan_node_type(tnode.node_type); |
488 | 308k | _nereids_id = tnode.nereids_id; |
489 | 308k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
490 | 308k | _name = substr + "_SINK_OPERATOR"; |
491 | 308k | return Status::OK(); |
492 | 308k | } |
493 | | |
494 | | template <typename LocalStateType> |
495 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
496 | 2.05M | LocalSinkStateInfo& info) { |
497 | 2.05M | auto local_state = LocalStateType::create_unique(this, state); |
498 | 2.05M | RETURN_IF_ERROR(local_state->init(state, info)); |
499 | 2.05M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
500 | 2.05M | return Status::OK(); |
501 | 2.05M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 116k | LocalSinkStateInfo& info) { | 497 | 116k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 116k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 116k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 116k | return Status::OK(); | 501 | 116k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 439k | LocalSinkStateInfo& info) { | 497 | 439k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 439k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 439k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 439k | return Status::OK(); | 501 | 439k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 86 | LocalSinkStateInfo& info) { | 497 | 86 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 86 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 86 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 86 | return Status::OK(); | 501 | 86 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 3 | LocalSinkStateInfo& info) { | 497 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 3 | return Status::OK(); | 501 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 515 | LocalSinkStateInfo& info) { | 497 | 515 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 515 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 515 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 515 | return Status::OK(); | 501 | 515 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 47.1k | LocalSinkStateInfo& info) { | 497 | 47.1k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 47.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 47.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 47.1k | return Status::OK(); | 501 | 47.1k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 9.65k | LocalSinkStateInfo& info) { | 497 | 9.65k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 9.65k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 9.65k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 9.65k | return Status::OK(); | 501 | 9.65k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 5.23k | LocalSinkStateInfo& info) { | 497 | 5.23k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 5.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 5.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 5.23k | return Status::OK(); | 501 | 5.23k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 156 | LocalSinkStateInfo& info) { | 497 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 156 | return Status::OK(); | 501 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 4.02k | LocalSinkStateInfo& info) { | 497 | 4.02k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 4.02k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 4.02k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 4.02k | return Status::OK(); | 501 | 4.02k | } |
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 48 | LocalSinkStateInfo& info) { | 497 | 48 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 48 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 48 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 48 | return Status::OK(); | 501 | 48 | } |
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 704 | LocalSinkStateInfo& info) { | 497 | 704 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 704 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 704 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 704 | return Status::OK(); | 501 | 704 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 1.71k | LocalSinkStateInfo& info) { | 497 | 1.71k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 1.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 1.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 1.71k | return Status::OK(); | 501 | 1.71k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 9.84k | LocalSinkStateInfo& info) { | 497 | 9.84k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 9.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 9.84k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 9.84k | return Status::OK(); | 501 | 9.84k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 83 | LocalSinkStateInfo& info) { | 497 | 83 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 83 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 83 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 83 | return Status::OK(); | 501 | 83 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 274k | LocalSinkStateInfo& info) { | 497 | 274k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 274k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 274k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 274k | return Status::OK(); | 501 | 274k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 29 | LocalSinkStateInfo& info) { | 497 | 29 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 29 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 29 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 29 | return Status::OK(); | 501 | 29 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 258k | LocalSinkStateInfo& info) { | 497 | 258k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 258k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 258k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 258k | return Status::OK(); | 501 | 258k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 157k | LocalSinkStateInfo& info) { | 497 | 157k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 157k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 157k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 157k | return Status::OK(); | 501 | 157k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 719 | LocalSinkStateInfo& info) { | 497 | 719 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 719 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 719 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 719 | return Status::OK(); | 501 | 719 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 211 | LocalSinkStateInfo& info) { | 497 | 211 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 211 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 211 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 211 | return Status::OK(); | 501 | 211 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 698k | LocalSinkStateInfo& info) { | 497 | 698k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 698k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 698k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 698k | return Status::OK(); | 501 | 698k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 9.01k | LocalSinkStateInfo& info) { | 497 | 9.01k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 9.01k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 9.01k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 9.01k | return Status::OK(); | 501 | 9.01k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 6.24k | LocalSinkStateInfo& info) { | 497 | 6.24k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 6.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 6.24k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 6.24k | return Status::OK(); | 501 | 6.24k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 3.71k | LocalSinkStateInfo& info) { | 497 | 3.71k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 3.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 3.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 3.71k | return Status::OK(); | 501 | 3.71k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 573 | LocalSinkStateInfo& info) { | 497 | 573 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 573 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 573 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 573 | return Status::OK(); | 501 | 573 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 4.75k | LocalSinkStateInfo& info) { | 497 | 4.75k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 4.75k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 4.75k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 4.75k | return Status::OK(); | 501 | 4.75k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.53k | LocalSinkStateInfo& info) { | 497 | 2.53k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.53k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.53k | return Status::OK(); | 501 | 2.53k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.61k | LocalSinkStateInfo& info) { | 497 | 2.61k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.61k | return Status::OK(); | 501 | 2.61k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 2.48k | LocalSinkStateInfo& info) { | 497 | 2.48k | auto local_state = LocalStateType::create_unique(this, state); | 498 | 2.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 2.48k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 2.48k | return Status::OK(); | 501 | 2.48k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 1 | LocalSinkStateInfo& info) { | 497 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 1 | return Status::OK(); | 501 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 566 | LocalSinkStateInfo& info) { | 497 | 566 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 566 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 566 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 566 | return Status::OK(); | 501 | 566 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 14 | LocalSinkStateInfo& info) { | 497 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 14 | return Status::OK(); | 501 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 101 | LocalSinkStateInfo& info) { | 497 | 101 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 101 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 101 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 101 | return Status::OK(); | 501 | 101 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 164 | LocalSinkStateInfo& info) { | 497 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 164 | return Status::OK(); | 501 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 496 | 164 | LocalSinkStateInfo& info) { | 497 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 498 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 499 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 500 | 164 | return Status::OK(); | 501 | 164 | } |
|
502 | | |
503 | | template <typename LocalStateType> |
504 | 1.76M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
506 | 0 | LocalExchangeSharedState>) { |
507 | 0 | return nullptr; |
508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
509 | 0 | MultiCastSharedState>) { |
510 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
511 | 1.76M | } else { |
512 | 1.76M | auto ss = LocalStateType::SharedStateType::create_shared(); |
513 | 1.76M | ss->id = operator_id(); |
514 | 1.76M | for (auto& dest : dests_id()) { |
515 | 1.75M | ss->related_op_ids.insert(dest); |
516 | 1.75M | } |
517 | 1.76M | return ss; |
518 | 1.76M | } |
519 | 1.76M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 97.9k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 97.9k | } else { | 512 | 97.9k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 97.9k | ss->id = operator_id(); | 514 | 97.9k | for (auto& dest : dests_id()) { | 515 | 97.7k | ss->related_op_ids.insert(dest); | 516 | 97.7k | } | 517 | 97.9k | return ss; | 518 | 97.9k | } | 519 | 97.9k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 439k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 439k | } else { | 512 | 439k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 439k | ss->id = operator_id(); | 514 | 439k | for (auto& dest : dests_id()) { | 515 | 438k | ss->related_op_ids.insert(dest); | 516 | 438k | } | 517 | 439k | return ss; | 518 | 439k | } | 519 | 439k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 86 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 86 | } else { | 512 | 86 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 86 | ss->id = operator_id(); | 514 | 86 | for (auto& dest : dests_id()) { | 515 | 86 | ss->related_op_ids.insert(dest); | 516 | 86 | } | 517 | 86 | return ss; | 518 | 86 | } | 519 | 86 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 3 | } else { | 512 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 3 | ss->id = operator_id(); | 514 | 3 | for (auto& dest : dests_id()) { | 515 | 3 | ss->related_op_ids.insert(dest); | 516 | 3 | } | 517 | 3 | return ss; | 518 | 3 | } | 519 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 515 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 515 | } else { | 512 | 515 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 515 | ss->id = operator_id(); | 514 | 515 | for (auto& dest : dests_id()) { | 515 | 515 | ss->related_op_ids.insert(dest); | 516 | 515 | } | 517 | 515 | return ss; | 518 | 515 | } | 519 | 515 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 47.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 47.1k | } else { | 512 | 47.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 47.1k | ss->id = operator_id(); | 514 | 47.1k | for (auto& dest : dests_id()) { | 515 | 46.9k | ss->related_op_ids.insert(dest); | 516 | 46.9k | } | 517 | 47.1k | return ss; | 518 | 47.1k | } | 519 | 47.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 9.65k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 9.65k | } else { | 512 | 9.65k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 9.65k | ss->id = operator_id(); | 514 | 9.65k | for (auto& dest : dests_id()) { | 515 | 9.65k | ss->related_op_ids.insert(dest); | 516 | 9.65k | } | 517 | 9.65k | return ss; | 518 | 9.65k | } | 519 | 9.65k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 5.23k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 5.23k | } else { | 512 | 5.23k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 5.23k | ss->id = operator_id(); | 514 | 5.23k | for (auto& dest : dests_id()) { | 515 | 5.23k | ss->related_op_ids.insert(dest); | 516 | 5.23k | } | 517 | 5.23k | return ss; | 518 | 5.23k | } | 519 | 5.23k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 156 | } else { | 512 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 156 | ss->id = operator_id(); | 514 | 156 | for (auto& dest : dests_id()) { | 515 | 156 | ss->related_op_ids.insert(dest); | 516 | 156 | } | 517 | 156 | return ss; | 518 | 156 | } | 519 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 4.02k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 4.02k | } else { | 512 | 4.02k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 4.02k | ss->id = operator_id(); | 514 | 4.02k | for (auto& dest : dests_id()) { | 515 | 4.02k | ss->related_op_ids.insert(dest); | 516 | 4.02k | } | 517 | 4.02k | return ss; | 518 | 4.02k | } | 519 | 4.02k | } |
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 48 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 48 | } else { | 512 | 48 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 48 | ss->id = operator_id(); | 514 | 48 | for (auto& dest : dests_id()) { | 515 | 48 | ss->related_op_ids.insert(dest); | 516 | 48 | } | 517 | 48 | return ss; | 518 | 48 | } | 519 | 48 | } |
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 704 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 704 | } else { | 512 | 704 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 704 | ss->id = operator_id(); | 514 | 704 | for (auto& dest : dests_id()) { | 515 | 704 | ss->related_op_ids.insert(dest); | 516 | 704 | } | 517 | 704 | return ss; | 518 | 704 | } | 519 | 704 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 1.71k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 1.71k | } else { | 512 | 1.71k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 1.71k | ss->id = operator_id(); | 514 | 1.71k | for (auto& dest : dests_id()) { | 515 | 1.71k | ss->related_op_ids.insert(dest); | 516 | 1.71k | } | 517 | 1.71k | return ss; | 518 | 1.71k | } | 519 | 1.71k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 9.87k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 9.87k | } else { | 512 | 9.87k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 9.87k | ss->id = operator_id(); | 514 | 9.87k | for (auto& dest : dests_id()) { | 515 | 9.86k | ss->related_op_ids.insert(dest); | 516 | 9.86k | } | 517 | 9.87k | return ss; | 518 | 9.87k | } | 519 | 9.87k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 83 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 83 | } else { | 512 | 83 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 83 | ss->id = operator_id(); | 514 | 83 | for (auto& dest : dests_id()) { | 515 | 83 | ss->related_op_ids.insert(dest); | 516 | 83 | } | 517 | 83 | return ss; | 518 | 83 | } | 519 | 83 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 274k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 274k | } else { | 512 | 274k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 274k | ss->id = operator_id(); | 514 | 274k | for (auto& dest : dests_id()) { | 515 | 274k | ss->related_op_ids.insert(dest); | 516 | 274k | } | 517 | 274k | return ss; | 518 | 274k | } | 519 | 274k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 31 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 31 | } else { | 512 | 31 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 31 | ss->id = operator_id(); | 514 | 31 | for (auto& dest : dests_id()) { | 515 | 31 | ss->related_op_ids.insert(dest); | 516 | 31 | } | 517 | 31 | return ss; | 518 | 31 | } | 519 | 31 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 157k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 157k | } else { | 512 | 157k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 157k | ss->id = operator_id(); | 514 | 157k | for (auto& dest : dests_id()) { | 515 | 157k | ss->related_op_ids.insert(dest); | 516 | 157k | } | 517 | 157k | return ss; | 518 | 157k | } | 519 | 157k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 210 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 210 | } else { | 512 | 210 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 210 | ss->id = operator_id(); | 514 | 210 | for (auto& dest : dests_id()) { | 515 | 210 | ss->related_op_ids.insert(dest); | 516 | 210 | } | 517 | 210 | return ss; | 518 | 210 | } | 519 | 210 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 697k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 697k | } else { | 512 | 697k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 697k | ss->id = operator_id(); | 514 | 697k | for (auto& dest : dests_id()) { | 515 | 694k | ss->related_op_ids.insert(dest); | 516 | 694k | } | 517 | 697k | return ss; | 518 | 697k | } | 519 | 697k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 9.02k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 9.02k | } else { | 512 | 9.02k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 9.02k | ss->id = operator_id(); | 514 | 9.02k | for (auto& dest : dests_id()) { | 515 | 9.01k | ss->related_op_ids.insert(dest); | 516 | 9.01k | } | 517 | 9.02k | return ss; | 518 | 9.02k | } | 519 | 9.02k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 674 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 674 | } else { | 512 | 674 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 674 | ss->id = operator_id(); | 514 | 674 | for (auto& dest : dests_id()) { | 515 | 674 | ss->related_op_ids.insert(dest); | 516 | 674 | } | 517 | 674 | return ss; | 518 | 674 | } | 519 | 674 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 504 | 2.58k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 2.58k | } else { | 512 | 2.58k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 2.58k | ss->id = operator_id(); | 514 | 2.58k | for (auto& dest : dests_id()) { | 515 | 2.57k | ss->related_op_ids.insert(dest); | 516 | 2.57k | } | 517 | 2.58k | return ss; | 518 | 2.58k | } | 519 | 2.58k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 504 | 2.48k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 2.48k | } else { | 512 | 2.48k | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 2.48k | ss->id = operator_id(); | 514 | 2.48k | for (auto& dest : dests_id()) { | 515 | 2.48k | ss->related_op_ids.insert(dest); | 516 | 2.48k | } | 517 | 2.48k | return ss; | 518 | 2.48k | } | 519 | 2.48k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 569 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 569 | } else { | 512 | 569 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 569 | ss->id = operator_id(); | 514 | 569 | for (auto& dest : dests_id()) { | 515 | 554 | ss->related_op_ids.insert(dest); | 516 | 554 | } | 517 | 569 | return ss; | 518 | 569 | } | 519 | 569 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 504 | 101 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 505 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 506 | | LocalExchangeSharedState>) { | 507 | | return nullptr; | 508 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | MultiCastSharedState>) { | 510 | | throw Exception(Status::FatalError("should not reach here!")); | 511 | 101 | } else { | 512 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 513 | 101 | ss->id = operator_id(); | 514 | 101 | for (auto& dest : dests_id()) { | 515 | 101 | ss->related_op_ids.insert(dest); | 516 | 101 | } | 517 | 101 | return ss; | 518 | 101 | } | 519 | 101 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
520 | | |
521 | | template <typename LocalStateType> |
522 | 2.49M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
523 | 2.49M | auto local_state = LocalStateType::create_unique(state, this); |
524 | 2.49M | RETURN_IF_ERROR(local_state->init(state, info)); |
525 | 2.49M | state->emplace_local_state(operator_id(), std::move(local_state)); |
526 | 2.49M | return Status::OK(); |
527 | 2.49M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 68.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 68.3k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 68.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 68.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 68.3k | return Status::OK(); | 527 | 68.3k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 316k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 316k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 316k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 316k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 316k | return Status::OK(); | 527 | 316k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 145 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 145 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 145 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 145 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 145 | return Status::OK(); | 527 | 145 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 38.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 38.1k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 38.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 38.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 38.1k | return Status::OK(); | 527 | 38.1k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 9.80k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 9.80k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 9.80k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 9.80k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 9.80k | return Status::OK(); | 527 | 9.80k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 10.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 10.1k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 10.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 10.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 10.1k | return Status::OK(); | 527 | 10.1k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 22 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 22 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 22 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 22 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 22 | return Status::OK(); | 527 | 22 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 263k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 263k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 263k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 263k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 263k | return Status::OK(); | 527 | 263k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 156k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 156k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 156k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 156k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 156k | return Status::OK(); | 527 | 156k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 706 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 706 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 706 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 706 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 706 | return Status::OK(); | 527 | 706 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 201 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 201 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 201 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 201 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 201 | return Status::OK(); | 527 | 201 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 3.73k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 3.73k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 3.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 3.73k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 3.73k | return Status::OK(); | 527 | 3.73k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 383k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 383k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 383k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 383k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 383k | return Status::OK(); | 527 | 383k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 1.04k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 1.04k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 1.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 1.04k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 1.04k | return Status::OK(); | 527 | 1.04k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 8.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 8.98k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 8.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 8.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 8.98k | return Status::OK(); | 527 | 8.98k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 221 | return Status::OK(); | 527 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 1.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 1.98k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 1.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 1.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 1.98k | return Status::OK(); | 527 | 1.98k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 56.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 56.4k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 56.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 56.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 56.4k | return Status::OK(); | 527 | 56.4k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 10.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 10.1k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 10.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 10.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 10.1k | return Status::OK(); | 527 | 10.1k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 570 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 570 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 570 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 570 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 570 | return Status::OK(); | 527 | 570 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.62k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.62k | return Status::OK(); | 527 | 2.62k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.51k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.51k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.51k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.51k | return Status::OK(); | 527 | 2.51k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 522 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 522 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 522 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 522 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 522 | return Status::OK(); | 527 | 522 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.23k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.23k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.23k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.23k | return Status::OK(); | 527 | 2.23k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 6.93k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 6.93k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 6.93k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 6.93k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 6.93k | return Status::OK(); | 527 | 6.93k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 721k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 721k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 721k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 721k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 721k | return Status::OK(); | 527 | 721k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 14 | return Status::OK(); | 527 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 524 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 164 | return Status::OK(); | 527 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.18k | return Status::OK(); | 527 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 1.73k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 1.73k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 1.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 1.73k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 1.73k | return Status::OK(); | 527 | 1.73k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 2.86k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 2.86k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 2.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 2.86k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 2.86k | return Status::OK(); | 527 | 2.86k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 11.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 11.6k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 11.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 11.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 11.6k | return Status::OK(); | 527 | 11.6k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 522 | 407k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 523 | 407k | auto local_state = LocalStateType::create_unique(state, this); | 524 | 407k | RETURN_IF_ERROR(local_state->init(state, info)); | 525 | 407k | state->emplace_local_state(operator_id(), std::move(local_state)); | 526 | 407k | return Status::OK(); | 527 | 407k | } |
|
528 | | |
529 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
530 | | RuntimeState* state) |
531 | 2.05M | : _parent(parent), _state(state) {} |
532 | | |
533 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
534 | 2.48M | : _num_rows_returned(0), |
535 | 2.48M | _rows_returned_counter(nullptr), |
536 | 2.48M | _parent(parent), |
537 | 2.48M | _state(state), |
538 | 2.48M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
539 | | |
540 | | template <typename SharedStateArg> |
541 | 2.49M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
542 | 2.49M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
543 | 2.49M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
544 | 2.49M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
545 | 2.49M | _operator_profile->set_metadata(_parent->node_id()); |
546 | | // indent is false so that source operator will have same |
547 | | // indentation_level with its parent operator. |
548 | 2.49M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
549 | 2.49M | _operator_profile->add_child(_common_profile.get(), true); |
550 | 2.49M | _operator_profile->add_child(_custom_profile.get(), true); |
551 | 2.49M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
552 | 2.49M | if constexpr (!is_fake_shared) { |
553 | 1.31M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
554 | 732k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
555 | 732k | .first.get() |
556 | 732k | ->template cast<SharedStateArg>(); |
557 | | |
558 | 732k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
559 | 732k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
560 | 732k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
561 | 732k | } else if (info.shared_state) { |
562 | 508k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
563 | 0 | DCHECK(false); |
564 | 0 | } |
565 | | // For UnionSourceOperator without children, there is no shared state. |
566 | 508k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
567 | | |
568 | 508k | _dependency = _shared_state->create_source_dependency( |
569 | 508k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
570 | 508k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
571 | 508k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
572 | 508k | } else { |
573 | 76.5k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
574 | 11.3k | DCHECK(false); |
575 | 11.3k | } |
576 | 76.5k | } |
577 | 1.31M | } |
578 | | |
579 | 2.49M | if (must_set_shared_state() && _shared_state == nullptr) { |
580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
581 | 0 | } |
582 | | |
583 | 2.49M | _rows_returned_counter = |
584 | 2.49M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
585 | 2.49M | _blocks_returned_counter = |
586 | 2.49M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
587 | 2.49M | _output_block_bytes_counter = |
588 | 2.49M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
589 | 2.49M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
590 | 2.49M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
591 | 2.49M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
592 | 2.49M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
593 | 2.49M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
594 | 2.49M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
595 | 2.49M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
596 | 2.49M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
597 | 2.49M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
598 | 2.49M | _memory_used_counter = |
599 | 2.49M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
600 | 2.49M | _common_profile->add_info_string("IsColocate", |
601 | 2.49M | std::to_string(_parent->is_colocated_operator())); |
602 | 2.49M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
603 | 2.49M | _common_profile->add_info_string("FollowedByShuffledOperator", |
604 | 2.49M | std::to_string(_parent->followed_by_shuffled_operator())); |
605 | 2.49M | return Status::OK(); |
606 | 2.49M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 68.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 68.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 68.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 68.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 68.5k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 68.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 68.5k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 68.5k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 68.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 68.5k | if constexpr (!is_fake_shared) { | 553 | 68.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 18.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 18.4k | .first.get() | 556 | 18.4k | ->template cast<SharedStateArg>(); | 557 | | | 558 | 18.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 18.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 18.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 50.0k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 49.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 49.2k | _dependency = _shared_state->create_source_dependency( | 569 | 49.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 49.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 49.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 49.2k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 802 | } | 577 | 68.5k | } | 578 | | | 579 | 68.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 68.5k | _rows_returned_counter = | 584 | 68.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 68.5k | _blocks_returned_counter = | 586 | 68.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 68.5k | _output_block_bytes_counter = | 588 | 68.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 68.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 68.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 68.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 68.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 68.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 68.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 68.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 68.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 68.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 68.5k | _memory_used_counter = | 599 | 68.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 68.5k | _common_profile->add_info_string("IsColocate", | 601 | 68.5k | std::to_string(_parent->is_colocated_operator())); | 602 | 68.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 68.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 68.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 68.5k | return Status::OK(); | 606 | 68.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 1 | if constexpr (!is_fake_shared) { | 553 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 1 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 1 | _dependency = _shared_state->create_source_dependency( | 569 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 1 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 1 | } | 578 | | | 579 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 1 | _rows_returned_counter = | 584 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 1 | _blocks_returned_counter = | 586 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 1 | _output_block_bytes_counter = | 588 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 1 | _memory_used_counter = | 599 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 1 | _common_profile->add_info_string("IsColocate", | 601 | 1 | std::to_string(_parent->is_colocated_operator())); | 602 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 1 | return Status::OK(); | 606 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 274k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 274k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 274k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 274k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 274k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 274k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 274k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 274k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 274k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 274k | if constexpr (!is_fake_shared) { | 553 | 274k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 274k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 266k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 266k | _dependency = _shared_state->create_source_dependency( | 569 | 266k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 266k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 266k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 266k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 8.36k | } | 577 | 274k | } | 578 | | | 579 | 274k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 274k | _rows_returned_counter = | 584 | 274k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 274k | _blocks_returned_counter = | 586 | 274k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 274k | _output_block_bytes_counter = | 588 | 274k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 274k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 274k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 274k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 274k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 274k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 274k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 274k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 274k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 274k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 274k | _memory_used_counter = | 599 | 274k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 274k | _common_profile->add_info_string("IsColocate", | 601 | 274k | std::to_string(_parent->is_colocated_operator())); | 602 | 274k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 274k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 274k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 274k | return Status::OK(); | 606 | 274k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 22 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 22 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 22 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 22 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 22 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 22 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 22 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 22 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 22 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 22 | if constexpr (!is_fake_shared) { | 553 | 22 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 22 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 22 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 22 | _dependency = _shared_state->create_source_dependency( | 569 | 22 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 22 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 22 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 22 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 22 | } | 578 | | | 579 | 22 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 22 | _rows_returned_counter = | 584 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 22 | _blocks_returned_counter = | 586 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 22 | _output_block_bytes_counter = | 588 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 22 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 22 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 22 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 22 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 22 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 22 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 22 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 22 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 22 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 22 | _memory_used_counter = | 599 | 22 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 22 | _common_profile->add_info_string("IsColocate", | 601 | 22 | std::to_string(_parent->is_colocated_operator())); | 602 | 22 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 22 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 22 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 22 | return Status::OK(); | 606 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 9.02k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 9.02k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 9.02k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 9.02k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 9.02k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 9.02k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 9.02k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 9.02k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 9.02k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 9.02k | if constexpr (!is_fake_shared) { | 553 | 9.02k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.02k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 8.91k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 8.91k | _dependency = _shared_state->create_source_dependency( | 569 | 8.91k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 8.91k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 8.91k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 8.91k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 110 | } | 577 | 9.02k | } | 578 | | | 579 | 9.02k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 9.02k | _rows_returned_counter = | 584 | 9.02k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 9.02k | _blocks_returned_counter = | 586 | 9.02k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 9.02k | _output_block_bytes_counter = | 588 | 9.02k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 9.02k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 9.02k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 9.02k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 9.02k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 9.02k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 9.02k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 9.02k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 9.02k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 9.02k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 9.02k | _memory_used_counter = | 599 | 9.02k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 9.02k | _common_profile->add_info_string("IsColocate", | 601 | 9.02k | std::to_string(_parent->is_colocated_operator())); | 602 | 9.02k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 9.02k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 9.02k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 9.02k | return Status::OK(); | 606 | 9.02k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 9.87k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 9.87k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 9.87k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 9.87k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 9.87k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 9.87k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 9.87k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 9.87k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 9.87k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 9.87k | if constexpr (!is_fake_shared) { | 553 | 9.87k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.87k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 9.70k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 9.70k | _dependency = _shared_state->create_source_dependency( | 569 | 9.70k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 9.70k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 9.70k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 9.70k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 162 | } | 577 | 9.87k | } | 578 | | | 579 | 9.87k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 9.87k | _rows_returned_counter = | 584 | 9.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 9.87k | _blocks_returned_counter = | 586 | 9.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 9.87k | _output_block_bytes_counter = | 588 | 9.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 9.87k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 9.87k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 9.87k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 9.87k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 9.87k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 9.87k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 9.87k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 9.87k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 9.87k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 9.87k | _memory_used_counter = | 599 | 9.87k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 9.87k | _common_profile->add_info_string("IsColocate", | 601 | 9.87k | std::to_string(_parent->is_colocated_operator())); | 602 | 9.87k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 9.87k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 9.87k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 9.87k | return Status::OK(); | 606 | 9.87k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 157k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 157k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 157k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 157k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 157k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 157k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 157k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 157k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 157k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 157k | if constexpr (!is_fake_shared) { | 553 | 157k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 157k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 155k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 155k | _dependency = _shared_state->create_source_dependency( | 569 | 155k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 155k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 155k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 155k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 2.03k | } | 577 | 157k | } | 578 | | | 579 | 157k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 157k | _rows_returned_counter = | 584 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 157k | _blocks_returned_counter = | 586 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 157k | _output_block_bytes_counter = | 588 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 157k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 157k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 157k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 157k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 157k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 157k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 157k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 157k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 157k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 157k | _memory_used_counter = | 599 | 157k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 157k | _common_profile->add_info_string("IsColocate", | 601 | 157k | std::to_string(_parent->is_colocated_operator())); | 602 | 157k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 157k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 157k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 157k | return Status::OK(); | 606 | 157k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 717 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 717 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 717 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 717 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 717 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 717 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 717 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 717 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 717 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 717 | if constexpr (!is_fake_shared) { | 553 | 717 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 704 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 704 | .first.get() | 556 | 704 | ->template cast<SharedStateArg>(); | 557 | | | 558 | 704 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 704 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 704 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 704 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | |
| 568 | 0 | _dependency = _shared_state->create_source_dependency( | 569 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 13 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 13 | } | 577 | 717 | } | 578 | | | 579 | 717 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 717 | _rows_returned_counter = | 584 | 717 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 717 | _blocks_returned_counter = | 586 | 717 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 717 | _output_block_bytes_counter = | 588 | 717 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 717 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 717 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 717 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 717 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 717 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 717 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 717 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 717 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 717 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 717 | _memory_used_counter = | 599 | 717 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 717 | _common_profile->add_info_string("IsColocate", | 601 | 717 | std::to_string(_parent->is_colocated_operator())); | 602 | 717 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 717 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 717 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 717 | return Status::OK(); | 606 | 717 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 201 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 201 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 201 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 201 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 201 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 201 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 201 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 201 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 201 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 201 | if constexpr (!is_fake_shared) { | 553 | 201 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 201 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 201 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 201 | _dependency = _shared_state->create_source_dependency( | 569 | 201 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 201 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 201 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 201 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 201 | } | 578 | | | 579 | 201 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 201 | _rows_returned_counter = | 584 | 201 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 201 | _blocks_returned_counter = | 586 | 201 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 201 | _output_block_bytes_counter = | 588 | 201 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 201 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 201 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 201 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 201 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 201 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 201 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 201 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 201 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 201 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 201 | _memory_used_counter = | 599 | 201 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 201 | _common_profile->add_info_string("IsColocate", | 601 | 201 | std::to_string(_parent->is_colocated_operator())); | 602 | 201 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 201 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 201 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 201 | return Status::OK(); | 606 | 201 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 1.17M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 1.17M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 1.17M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 1.17M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 1.17M | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 1.17M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 1.17M | _operator_profile->add_child(_common_profile.get(), true); | 550 | 1.17M | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 1.17M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | | if constexpr (!is_fake_shared) { | 553 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | | .first.get() | 556 | | ->template cast<SharedStateArg>(); | 557 | | | 558 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | | _dependency = _shared_state->create_source_dependency( | 569 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | | } | 577 | | } | 578 | | | 579 | 1.17M | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 1.17M | _rows_returned_counter = | 584 | 1.17M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 1.17M | _blocks_returned_counter = | 586 | 1.17M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 1.17M | _output_block_bytes_counter = | 588 | 1.17M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 1.17M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 1.17M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 1.17M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 1.17M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 1.17M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 1.17M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 1.17M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 1.17M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 1.17M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 1.17M | _memory_used_counter = | 599 | 1.17M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 1.17M | _common_profile->add_info_string("IsColocate", | 601 | 1.17M | std::to_string(_parent->is_colocated_operator())); | 602 | 1.17M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 1.17M | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 1.17M | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 1.17M | return Status::OK(); | 606 | 1.17M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 56.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 56.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 56.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 56.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 56.4k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 56.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 56.4k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 56.4k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 56.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 56.4k | if constexpr (!is_fake_shared) { | 553 | 56.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 56.4k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 2.90k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 2.90k | _dependency = _shared_state->create_source_dependency( | 569 | 2.90k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 2.90k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 2.90k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 53.5k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 53.5k | } | 577 | 56.4k | } | 578 | | | 579 | 56.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 56.4k | _rows_returned_counter = | 584 | 56.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 56.4k | _blocks_returned_counter = | 586 | 56.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 56.4k | _output_block_bytes_counter = | 588 | 56.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 56.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 56.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 56.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 56.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 56.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 56.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 56.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 56.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 56.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 56.4k | _memory_used_counter = | 599 | 56.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 56.4k | _common_profile->add_info_string("IsColocate", | 601 | 56.4k | std::to_string(_parent->is_colocated_operator())); | 602 | 56.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 56.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 56.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 56.4k | return Status::OK(); | 606 | 56.4k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 26 | if constexpr (!is_fake_shared) { | 553 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 26 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 26 | _dependency = _shared_state->create_source_dependency( | 569 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 26 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 26 | } | 578 | | | 579 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 26 | _rows_returned_counter = | 584 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 26 | _blocks_returned_counter = | 586 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 26 | _output_block_bytes_counter = | 588 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 26 | _memory_used_counter = | 599 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 26 | _common_profile->add_info_string("IsColocate", | 601 | 26 | std::to_string(_parent->is_colocated_operator())); | 602 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 26 | return Status::OK(); | 606 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 10.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 10.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 10.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 10.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 10.1k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 10.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 10.1k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 10.1k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 10.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 10.1k | if constexpr (!is_fake_shared) { | 553 | 10.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 10.1k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 10.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 10.1k | _dependency = _shared_state->create_source_dependency( | 569 | 10.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 10.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 10.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 10.1k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 29 | } | 577 | 10.1k | } | 578 | | | 579 | 10.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 10.1k | _rows_returned_counter = | 584 | 10.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 10.1k | _blocks_returned_counter = | 586 | 10.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 10.1k | _output_block_bytes_counter = | 588 | 10.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 10.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 10.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 10.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 10.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 10.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 10.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 10.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 10.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 10.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 10.1k | _memory_used_counter = | 599 | 10.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 10.1k | _common_profile->add_info_string("IsColocate", | 601 | 10.1k | std::to_string(_parent->is_colocated_operator())); | 602 | 10.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 10.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 10.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 10.1k | return Status::OK(); | 606 | 10.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 675 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 675 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 675 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 675 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 675 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 675 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 675 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 675 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 675 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 675 | if constexpr (!is_fake_shared) { | 553 | 675 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 675 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 672 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 672 | _dependency = _shared_state->create_source_dependency( | 569 | 672 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 672 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 672 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 672 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 3 | } | 577 | 675 | } | 578 | | | 579 | 675 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 675 | _rows_returned_counter = | 584 | 675 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 675 | _blocks_returned_counter = | 586 | 675 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 675 | _output_block_bytes_counter = | 588 | 675 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 675 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 675 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 675 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 675 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 675 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 675 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 675 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 675 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 675 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 675 | _memory_used_counter = | 599 | 675 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 675 | _common_profile->add_info_string("IsColocate", | 601 | 675 | std::to_string(_parent->is_colocated_operator())); | 602 | 675 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 675 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 675 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 675 | return Status::OK(); | 606 | 675 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 5.16k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 5.16k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 5.16k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 5.16k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 5.16k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 5.16k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 5.16k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 5.16k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 5.16k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 5.16k | if constexpr (!is_fake_shared) { | 553 | 5.16k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 5.16k | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 5.13k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 5.13k | _dependency = _shared_state->create_source_dependency( | 569 | 5.13k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 5.13k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 5.13k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 5.13k | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 31 | } | 577 | 5.16k | } | 578 | | | 579 | 5.16k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 5.16k | _rows_returned_counter = | 584 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 5.16k | _blocks_returned_counter = | 586 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 5.16k | _output_block_bytes_counter = | 588 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 5.16k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 5.16k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 5.16k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 5.16k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 5.16k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 5.16k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 5.16k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 5.16k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 5.16k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 5.16k | _memory_used_counter = | 599 | 5.16k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 5.16k | _common_profile->add_info_string("IsColocate", | 601 | 5.16k | std::to_string(_parent->is_colocated_operator())); | 602 | 5.16k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 5.16k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 5.16k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 5.16k | return Status::OK(); | 606 | 5.16k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 724k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 724k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 724k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 724k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 724k | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 724k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 724k | _operator_profile->add_child(_common_profile.get(), true); | 550 | 724k | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 724k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 724k | if constexpr (!is_fake_shared) { | 553 | 724k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 712k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 712k | .first.get() | 556 | 712k | ->template cast<SharedStateArg>(); | 557 | | | 558 | 712k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 712k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 712k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 712k | } else if (info.shared_state) { | 562 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | 0 | DCHECK(false); | 564 | 0 | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | |
| 568 | 0 | _dependency = _shared_state->create_source_dependency( | 569 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 11.3k | } else { | 573 | 11.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | 11.3k | DCHECK(false); | 575 | 11.3k | } | 576 | 11.3k | } | 577 | 724k | } | 578 | | | 579 | 724k | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 724k | _rows_returned_counter = | 584 | 724k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 724k | _blocks_returned_counter = | 586 | 724k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 724k | _output_block_bytes_counter = | 588 | 724k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 724k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 724k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 724k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 724k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 724k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 724k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 724k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 724k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 724k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 724k | _memory_used_counter = | 599 | 724k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 724k | _common_profile->add_info_string("IsColocate", | 601 | 724k | std::to_string(_parent->is_colocated_operator())); | 602 | 724k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 724k | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 724k | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 724k | return Status::OK(); | 606 | 724k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 541 | 164 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 542 | 164 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 543 | 164 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 544 | 164 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 545 | 164 | _operator_profile->set_metadata(_parent->node_id()); | 546 | | // indent is false so that source operator will have same | 547 | | // indentation_level with its parent operator. | 548 | 164 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 549 | 164 | _operator_profile->add_child(_common_profile.get(), true); | 550 | 164 | _operator_profile->add_child(_custom_profile.get(), true); | 551 | 164 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 552 | 164 | if constexpr (!is_fake_shared) { | 553 | 164 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 554 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 555 | 0 | .first.get() | 556 | 0 | ->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 164 | } else if (info.shared_state) { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | // For UnionSourceOperator without children, there is no shared state. | 566 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 567 | | | 568 | 164 | _dependency = _shared_state->create_source_dependency( | 569 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 570 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 571 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 572 | 164 | } else { | 573 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 574 | | DCHECK(false); | 575 | | } | 576 | 0 | } | 577 | 164 | } | 578 | | | 579 | 164 | if (must_set_shared_state() && _shared_state == nullptr) { | 580 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 581 | 0 | } | 582 | | | 583 | 164 | _rows_returned_counter = | 584 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 585 | 164 | _blocks_returned_counter = | 586 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 587 | 164 | _output_block_bytes_counter = | 588 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 589 | 164 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 590 | 164 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 591 | 164 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 592 | 164 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 593 | 164 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 594 | 164 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 595 | 164 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 596 | 164 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 597 | 164 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 598 | 164 | _memory_used_counter = | 599 | 164 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 600 | 164 | _common_profile->add_info_string("IsColocate", | 601 | 164 | std::to_string(_parent->is_colocated_operator())); | 602 | 164 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 603 | 164 | _common_profile->add_info_string("FollowedByShuffledOperator", | 604 | 164 | std::to_string(_parent->followed_by_shuffled_operator())); | 605 | 164 | return Status::OK(); | 606 | 164 | } |
|
607 | | |
608 | | template <typename SharedStateArg> |
609 | 2.50M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
610 | 2.50M | _conjuncts.resize(_parent->_conjuncts.size()); |
611 | 2.50M | _projections.resize(_parent->_projections.size()); |
612 | 3.04M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
613 | 543k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
614 | 543k | } |
615 | 5.31M | for (size_t i = 0; i < _projections.size(); i++) { |
616 | 2.80M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
617 | 2.80M | } |
618 | 2.50M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
619 | 2.51M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
620 | 12.8k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
621 | 101k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
622 | 88.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
623 | 88.1k | state, _intermediate_projections[i][j])); |
624 | 88.1k | } |
625 | 12.8k | } |
626 | 2.50M | return Status::OK(); |
627 | 2.50M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 68.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 68.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 68.6k | _projections.resize(_parent->_projections.size()); | 612 | 69.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 760 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 760 | } | 615 | 329k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 261k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 261k | } | 618 | 68.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 71.7k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 3.08k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 41.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 38.0k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 38.0k | state, _intermediate_projections[i][j])); | 624 | 38.0k | } | 625 | 3.08k | } | 626 | 68.6k | return Status::OK(); | 627 | 68.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 3 | _projections.resize(_parent->_projections.size()); | 612 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 3 | return Status::OK(); | 627 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 275k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 275k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 275k | _projections.resize(_parent->_projections.size()); | 612 | 275k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 275k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 365 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 365 | } | 618 | 275k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 275k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 275k | return Status::OK(); | 627 | 275k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 22 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 22 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 22 | _projections.resize(_parent->_projections.size()); | 612 | 22 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 22 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 22 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 22 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 22 | return Status::OK(); | 627 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 9.02k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 9.02k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 9.02k | _projections.resize(_parent->_projections.size()); | 612 | 9.08k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 61 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 61 | } | 615 | 58.9k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 49.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 49.8k | } | 618 | 9.02k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 9.16k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 141 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 898 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 757 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 757 | state, _intermediate_projections[i][j])); | 624 | 757 | } | 625 | 141 | } | 626 | 9.02k | return Status::OK(); | 627 | 9.02k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 9.90k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 9.90k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 9.90k | _projections.resize(_parent->_projections.size()); | 612 | 11.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 1.11k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 1.11k | } | 615 | 27.1k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 17.2k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 17.2k | } | 618 | 9.90k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 9.99k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 91 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 690 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 599 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 599 | state, _intermediate_projections[i][j])); | 624 | 599 | } | 625 | 91 | } | 626 | 9.90k | return Status::OK(); | 627 | 9.90k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 157k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 157k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 157k | _projections.resize(_parent->_projections.size()); | 612 | 160k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 3.64k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 3.64k | } | 615 | 417k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 260k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 260k | } | 618 | 157k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 157k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 268 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 1.88k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 1.61k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 1.61k | state, _intermediate_projections[i][j])); | 624 | 1.61k | } | 625 | 268 | } | 626 | 157k | return Status::OK(); | 627 | 157k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 724 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 724 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 724 | _projections.resize(_parent->_projections.size()); | 612 | 747 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 23 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 23 | } | 615 | 1.88k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 1.15k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 1.15k | } | 618 | 724 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 724 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 724 | return Status::OK(); | 627 | 724 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 205 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 205 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 205 | _projections.resize(_parent->_projections.size()); | 612 | 205 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 585 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 380 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 380 | } | 618 | 205 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 205 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 205 | return Status::OK(); | 627 | 205 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 1.18M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 1.18M | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 1.18M | _projections.resize(_parent->_projections.size()); | 612 | 1.72M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 534k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 534k | } | 615 | 3.30M | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 2.12M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 2.12M | } | 618 | 1.18M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 1.19M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 9.23k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 56.3k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 47.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 47.1k | state, _intermediate_projections[i][j])); | 624 | 47.1k | } | 625 | 9.23k | } | 626 | 1.18M | return Status::OK(); | 627 | 1.18M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 56.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 56.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 56.6k | _projections.resize(_parent->_projections.size()); | 612 | 56.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 153k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 96.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 96.4k | } | 618 | 56.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 56.6k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 56.6k | return Status::OK(); | 627 | 56.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 25 | _projections.resize(_parent->_projections.size()); | 612 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 25 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 25 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 25 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 25 | return Status::OK(); | 627 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 10.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 10.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 10.1k | _projections.resize(_parent->_projections.size()); | 612 | 13.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 3.56k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 3.56k | } | 615 | 10.1k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 10.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 10.1k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 10.1k | return Status::OK(); | 627 | 10.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 676 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 676 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 676 | _projections.resize(_parent->_projections.size()); | 612 | 676 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 676 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 676 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 676 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 676 | return Status::OK(); | 627 | 676 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 5.16k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 5.16k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 5.16k | _projections.resize(_parent->_projections.size()); | 612 | 5.16k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 5.32k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 167 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 167 | } | 618 | 5.16k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 5.16k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 5.16k | return Status::OK(); | 627 | 5.16k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 726k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 726k | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 726k | _projections.resize(_parent->_projections.size()); | 612 | 726k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 0 | } | 615 | 726k | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 0 | } | 618 | 726k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 726k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 0 | state, _intermediate_projections[i][j])); | 624 | 0 | } | 625 | 0 | } | 626 | 726k | return Status::OK(); | 627 | 726k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 609 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 610 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 611 | 164 | _projections.resize(_parent->_projections.size()); | 612 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 613 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 614 | 7 | } | 615 | 483 | for (size_t i = 0; i < _projections.size(); i++) { | 616 | 319 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 617 | 319 | } | 618 | 164 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 619 | 167 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 620 | 3 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 621 | 11 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 622 | 8 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 623 | 8 | state, _intermediate_projections[i][j])); | 624 | 8 | } | 625 | 3 | } | 626 | 164 | return Status::OK(); | 627 | 164 | } |
|
628 | | |
629 | | template <typename SharedStateArg> |
630 | 7.23k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
631 | 7.23k | if (_terminated) { |
632 | 0 | return Status::OK(); |
633 | 0 | } |
634 | 7.23k | _terminated = true; |
635 | 7.23k | return Status::OK(); |
636 | 7.23k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 377 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 377 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 377 | _terminated = true; | 635 | 377 | return Status::OK(); | 636 | 377 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 39 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 39 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 39 | _terminated = true; | 635 | 39 | return Status::OK(); | 636 | 39 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 120 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 120 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 120 | _terminated = true; | 635 | 120 | return Status::OK(); | 636 | 120 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 61 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 61 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 61 | _terminated = true; | 635 | 61 | return Status::OK(); | 636 | 61 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 5.79k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 5.79k | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 5.79k | _terminated = true; | 635 | 5.79k | return Status::OK(); | 636 | 5.79k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 6 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 6 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 6 | _terminated = true; | 635 | 6 | return Status::OK(); | 636 | 6 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 2 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 2 | _terminated = true; | 635 | 2 | return Status::OK(); | 636 | 2 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 16 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 16 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 16 | _terminated = true; | 635 | 16 | return Status::OK(); | 636 | 16 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 803 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 803 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 803 | _terminated = true; | 635 | 803 | return Status::OK(); | 636 | 803 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 630 | 15 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 631 | 15 | if (_terminated) { | 632 | 0 | return Status::OK(); | 633 | 0 | } | 634 | 15 | _terminated = true; | 635 | 15 | return Status::OK(); | 636 | 15 | } |
|
637 | | |
638 | | template <typename SharedStateArg> |
639 | 2.81M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
640 | 2.81M | if (_closed) { |
641 | 308k | return Status::OK(); |
642 | 308k | } |
643 | 2.50M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
644 | 1.31M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
645 | 1.31M | } |
646 | 2.50M | _closed = true; |
647 | 2.50M | return Status::OK(); |
648 | 2.81M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 68.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 68.5k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 68.5k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 68.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 68.5k | } | 646 | 68.5k | _closed = true; | 647 | 68.5k | return Status::OK(); | 648 | 68.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 4 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 4 | } | 646 | 4 | _closed = true; | 647 | 4 | return Status::OK(); | 648 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 545k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 545k | if (_closed) { | 641 | 273k | return Status::OK(); | 642 | 273k | } | 643 | 271k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 271k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 271k | } | 646 | 271k | _closed = true; | 647 | 271k | return Status::OK(); | 648 | 545k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 22 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 22 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 22 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 22 | } | 646 | 22 | _closed = true; | 647 | 22 | return Status::OK(); | 648 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 9.03k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 9.03k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 9.03k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 9.03k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 9.03k | } | 646 | 9.03k | _closed = true; | 647 | 9.03k | return Status::OK(); | 648 | 9.03k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 19.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 19.9k | if (_closed) { | 641 | 10.0k | return Status::OK(); | 642 | 10.0k | } | 643 | 9.86k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 9.86k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 9.86k | } | 646 | 9.86k | _closed = true; | 647 | 9.86k | return Status::OK(); | 648 | 19.9k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 156k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 156k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 156k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 156k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 156k | } | 646 | 156k | _closed = true; | 647 | 156k | return Status::OK(); | 648 | 156k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 711 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 711 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 711 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 711 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 711 | } | 646 | 711 | _closed = true; | 647 | 711 | return Status::OK(); | 648 | 711 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 200 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 200 | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 200 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 200 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 200 | } | 646 | 200 | _closed = true; | 647 | 200 | return Status::OK(); | 648 | 200 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 1.20M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 1.20M | if (_closed) { | 641 | 18.6k | return Status::OK(); | 642 | 18.6k | } | 643 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | | } | 646 | 1.18M | _closed = true; | 647 | 1.18M | return Status::OK(); | 648 | 1.20M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 56.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 56.6k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 56.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 56.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 56.6k | } | 646 | 56.6k | _closed = true; | 647 | 56.6k | return Status::OK(); | 648 | 56.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 28 | if (_closed) { | 641 | 14 | return Status::OK(); | 642 | 14 | } | 643 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 14 | } | 646 | 14 | _closed = true; | 647 | 14 | return Status::OK(); | 648 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 10.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 10.0k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 10.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 10.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 10.0k | } | 646 | 10.0k | _closed = true; | 647 | 10.0k | return Status::OK(); | 648 | 10.0k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 1.14k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 1.14k | if (_closed) { | 641 | 574 | return Status::OK(); | 642 | 574 | } | 643 | 570 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 570 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 570 | } | 646 | 570 | _closed = true; | 647 | 570 | return Status::OK(); | 648 | 1.14k | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 10.5k | if (_closed) { | 641 | 5.41k | return Status::OK(); | 642 | 5.41k | } | 643 | 5.14k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 5.14k | } | 646 | 5.14k | _closed = true; | 647 | 5.14k | return Status::OK(); | 648 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 728k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 728k | if (_closed) { | 641 | 0 | return Status::OK(); | 642 | 0 | } | 643 | 728k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 728k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 728k | } | 646 | 728k | _closed = true; | 647 | 728k | return Status::OK(); | 648 | 728k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 639 | 334 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 640 | 334 | if (_closed) { | 641 | 179 | return Status::OK(); | 642 | 179 | } | 643 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 644 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 645 | 155 | } | 646 | 155 | _closed = true; | 647 | 155 | return Status::OK(); | 648 | 334 | } |
|
649 | | |
650 | | template <typename SharedState> |
651 | 2.06M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
652 | | // create profile |
653 | 2.06M | _operator_profile = |
654 | 2.06M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
655 | 2.06M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
656 | 2.06M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
657 | | |
658 | | // indentation is true |
659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
660 | | // So we should set the indentation to true. |
661 | 2.06M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
662 | 2.06M | _operator_profile->add_child(_common_profile, true); |
663 | 2.06M | _operator_profile->add_child(_custom_profile, true); |
664 | | |
665 | 2.06M | _operator_profile->set_metadata(_parent->node_id()); |
666 | 2.06M | _wait_for_finish_dependency_timer = |
667 | 2.06M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
668 | 2.06M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
669 | 2.06M | if constexpr (!is_fake_shared) { |
670 | 1.35M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
671 | 1.35M | info.shared_state_map.end()) { |
672 | 277k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
673 | 258k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
674 | 258k | } |
675 | 277k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
676 | 277k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
677 | 277k | ? 0 |
678 | 277k | : info.task_idx] |
679 | 277k | .get(); |
680 | 277k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
681 | 1.08M | } else { |
682 | 1.08M | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 302 | DCHECK(false); |
684 | 302 | } |
685 | 1.08M | _shared_state = info.shared_state->template cast<SharedState>(); |
686 | 1.08M | _dependency = _shared_state->create_sink_dependency( |
687 | 1.08M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
688 | 1.08M | } |
689 | 1.35M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
690 | 1.35M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
691 | 1.35M | } |
692 | | |
693 | 2.06M | if (must_set_shared_state() && _shared_state == nullptr) { |
694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
695 | 0 | } |
696 | | |
697 | 2.06M | _rows_input_counter = |
698 | 2.06M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
699 | 2.06M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
700 | 2.06M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
701 | 2.06M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
702 | 2.06M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
703 | 2.06M | _memory_used_counter = |
704 | 2.06M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
705 | 2.06M | _common_profile->add_info_string("IsColocate", |
706 | 2.06M | std::to_string(_parent->is_colocated_operator())); |
707 | 2.06M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
708 | 2.06M | _common_profile->add_info_string("FollowedByShuffledOperator", |
709 | 2.06M | std::to_string(_parent->followed_by_shuffled_operator())); |
710 | 2.06M | return Status::OK(); |
711 | 2.06M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 116k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 116k | _operator_profile = | 654 | 116k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 116k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 116k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 116k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 116k | _operator_profile->add_child(_common_profile, true); | 663 | 116k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 116k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 116k | _wait_for_finish_dependency_timer = | 667 | 116k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 116k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 116k | if constexpr (!is_fake_shared) { | 670 | 116k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 116k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 18.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 18.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 18.6k | ? 0 | 678 | 18.6k | : info.task_idx] | 679 | 18.6k | .get(); | 680 | 18.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 97.8k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 97.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 97.8k | _dependency = _shared_state->create_sink_dependency( | 687 | 97.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 97.8k | } | 689 | 116k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 116k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 116k | } | 692 | | | 693 | 116k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 116k | _rows_input_counter = | 698 | 116k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 116k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 116k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 116k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 116k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 116k | _memory_used_counter = | 704 | 116k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 116k | _common_profile->add_info_string("IsColocate", | 706 | 116k | std::to_string(_parent->is_colocated_operator())); | 707 | 116k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 116k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 116k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 116k | return Status::OK(); | 711 | 116k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 2 | _operator_profile = | 654 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 2 | _operator_profile->add_child(_common_profile, true); | 663 | 2 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 2 | _wait_for_finish_dependency_timer = | 667 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 2 | if constexpr (!is_fake_shared) { | 670 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 2 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 2 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 2 | _dependency = _shared_state->create_sink_dependency( | 687 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 2 | } | 689 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 2 | } | 692 | | | 693 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 2 | _rows_input_counter = | 698 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 2 | _memory_used_counter = | 704 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 2 | _common_profile->add_info_string("IsColocate", | 706 | 2 | std::to_string(_parent->is_colocated_operator())); | 707 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 2 | return Status::OK(); | 711 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 274k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 274k | _operator_profile = | 654 | 274k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 274k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 274k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 274k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 274k | _operator_profile->add_child(_common_profile, true); | 663 | 274k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 274k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 274k | _wait_for_finish_dependency_timer = | 667 | 274k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 274k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 274k | if constexpr (!is_fake_shared) { | 670 | 274k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 274k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 274k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 274k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 274k | _dependency = _shared_state->create_sink_dependency( | 687 | 274k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 274k | } | 689 | 274k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 274k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 274k | } | 692 | | | 693 | 274k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 274k | _rows_input_counter = | 698 | 274k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 274k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 274k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 274k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 274k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 274k | _memory_used_counter = | 704 | 274k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 274k | _common_profile->add_info_string("IsColocate", | 706 | 274k | std::to_string(_parent->is_colocated_operator())); | 707 | 274k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 274k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 274k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 274k | return Status::OK(); | 711 | 274k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 29 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 29 | _operator_profile = | 654 | 29 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 29 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 29 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 29 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 29 | _operator_profile->add_child(_common_profile, true); | 663 | 29 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 29 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 29 | _wait_for_finish_dependency_timer = | 667 | 29 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 29 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 29 | if constexpr (!is_fake_shared) { | 670 | 29 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 29 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 29 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 29 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 29 | _dependency = _shared_state->create_sink_dependency( | 687 | 29 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 29 | } | 689 | 29 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 29 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 29 | } | 692 | | | 693 | 29 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 29 | _rows_input_counter = | 698 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 29 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 29 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 29 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 29 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 29 | _memory_used_counter = | 704 | 29 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 29 | _common_profile->add_info_string("IsColocate", | 706 | 29 | std::to_string(_parent->is_colocated_operator())); | 707 | 29 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 29 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 29 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 29 | return Status::OK(); | 711 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 9.01k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 9.01k | _operator_profile = | 654 | 9.01k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 9.01k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 9.01k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 9.01k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 9.01k | _operator_profile->add_child(_common_profile, true); | 663 | 9.01k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 9.01k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 9.01k | _wait_for_finish_dependency_timer = | 667 | 9.01k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 9.01k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 9.01k | if constexpr (!is_fake_shared) { | 670 | 9.01k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 9.01k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 9.01k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 9.01k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 9.01k | _dependency = _shared_state->create_sink_dependency( | 687 | 9.01k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 9.01k | } | 689 | 9.01k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 9.01k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 9.01k | } | 692 | | | 693 | 9.01k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 9.01k | _rows_input_counter = | 698 | 9.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 9.01k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 9.01k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 9.01k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 9.01k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 9.01k | _memory_used_counter = | 704 | 9.01k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 9.01k | _common_profile->add_info_string("IsColocate", | 706 | 9.01k | std::to_string(_parent->is_colocated_operator())); | 707 | 9.01k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 9.01k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 9.01k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 9.01k | return Status::OK(); | 711 | 9.01k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 9.86k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 9.86k | _operator_profile = | 654 | 9.86k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 9.86k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 9.86k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 9.86k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 9.86k | _operator_profile->add_child(_common_profile, true); | 663 | 9.86k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 9.86k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 9.86k | _wait_for_finish_dependency_timer = | 667 | 9.86k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 9.86k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 9.86k | if constexpr (!is_fake_shared) { | 670 | 9.86k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 9.86k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 9.86k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 9.86k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 9.86k | _dependency = _shared_state->create_sink_dependency( | 687 | 9.86k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 9.86k | } | 689 | 9.86k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 9.86k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 9.86k | } | 692 | | | 693 | 9.86k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 9.86k | _rows_input_counter = | 698 | 9.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 9.86k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 9.86k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 9.86k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 9.86k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 9.86k | _memory_used_counter = | 704 | 9.86k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 9.86k | _common_profile->add_info_string("IsColocate", | 706 | 9.86k | std::to_string(_parent->is_colocated_operator())); | 707 | 9.86k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 9.86k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 9.86k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 9.86k | return Status::OK(); | 711 | 9.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 157k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 157k | _operator_profile = | 654 | 157k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 157k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 157k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 157k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 157k | _operator_profile->add_child(_common_profile, true); | 663 | 157k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 157k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 157k | _wait_for_finish_dependency_timer = | 667 | 157k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 157k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 157k | if constexpr (!is_fake_shared) { | 670 | 157k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 157k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 157k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 157k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 157k | _dependency = _shared_state->create_sink_dependency( | 687 | 157k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 157k | } | 689 | 157k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 157k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 157k | } | 692 | | | 693 | 157k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 157k | _rows_input_counter = | 698 | 157k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 157k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 157k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 157k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 157k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 157k | _memory_used_counter = | 704 | 157k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 157k | _common_profile->add_info_string("IsColocate", | 706 | 157k | std::to_string(_parent->is_colocated_operator())); | 707 | 157k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 157k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 157k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 157k | return Status::OK(); | 711 | 157k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 721 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 721 | _operator_profile = | 654 | 721 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 721 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 721 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 721 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 721 | _operator_profile->add_child(_common_profile, true); | 663 | 721 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 721 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 721 | _wait_for_finish_dependency_timer = | 667 | 721 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 721 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 721 | if constexpr (!is_fake_shared) { | 670 | 721 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 721 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 718 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 718 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 718 | ? 0 | 678 | 718 | : info.task_idx] | 679 | 718 | .get(); | 680 | 718 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 718 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 3 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 3 | _dependency = _shared_state->create_sink_dependency( | 687 | 3 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 3 | } | 689 | 721 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 721 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 721 | } | 692 | | | 693 | 721 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 721 | _rows_input_counter = | 698 | 721 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 721 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 721 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 721 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 721 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 721 | _memory_used_counter = | 704 | 721 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 721 | _common_profile->add_info_string("IsColocate", | 706 | 721 | std::to_string(_parent->is_colocated_operator())); | 707 | 721 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 721 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 721 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 721 | return Status::OK(); | 711 | 721 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 211 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 211 | _operator_profile = | 654 | 211 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 211 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 211 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 211 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 211 | _operator_profile->add_child(_common_profile, true); | 663 | 211 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 211 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 211 | _wait_for_finish_dependency_timer = | 667 | 211 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 211 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 211 | if constexpr (!is_fake_shared) { | 670 | 211 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 211 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 211 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 211 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 211 | _dependency = _shared_state->create_sink_dependency( | 687 | 211 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 211 | } | 689 | 211 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 211 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 211 | } | 692 | | | 693 | 211 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 211 | _rows_input_counter = | 698 | 211 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 211 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 211 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 211 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 211 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 211 | _memory_used_counter = | 704 | 211 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 211 | _common_profile->add_info_string("IsColocate", | 706 | 211 | std::to_string(_parent->is_colocated_operator())); | 707 | 211 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 211 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 211 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 211 | return Status::OK(); | 711 | 211 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 701k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 701k | _operator_profile = | 654 | 701k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 701k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 701k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 701k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 701k | _operator_profile->add_child(_common_profile, true); | 663 | 701k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 701k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 701k | _wait_for_finish_dependency_timer = | 667 | 701k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 701k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | | if constexpr (!is_fake_shared) { | 670 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | | ? 0 | 678 | | : info.task_idx] | 679 | | .get(); | 680 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | | _dependency = _shared_state->create_sink_dependency( | 687 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | | } | 689 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | | } | 692 | | | 693 | 701k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 701k | _rows_input_counter = | 698 | 701k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 701k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 701k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 701k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 701k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 701k | _memory_used_counter = | 704 | 701k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 701k | _common_profile->add_info_string("IsColocate", | 706 | 701k | std::to_string(_parent->is_colocated_operator())); | 707 | 701k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 701k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 701k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 701k | return Status::OK(); | 711 | 701k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 6.26k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 6.26k | _operator_profile = | 654 | 6.26k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 6.26k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 6.26k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 6.26k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 6.26k | _operator_profile->add_child(_common_profile, true); | 663 | 6.26k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 6.26k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 6.26k | _wait_for_finish_dependency_timer = | 667 | 6.26k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 6.26k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 6.26k | if constexpr (!is_fake_shared) { | 670 | 6.26k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 6.26k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 6.26k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 6.26k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 6.26k | _dependency = _shared_state->create_sink_dependency( | 687 | 6.26k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 6.26k | } | 689 | 6.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 6.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 6.26k | } | 692 | | | 693 | 6.26k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 6.26k | _rows_input_counter = | 698 | 6.26k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 6.26k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 6.26k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 6.26k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 6.26k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 6.26k | _memory_used_counter = | 704 | 6.26k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 6.26k | _common_profile->add_info_string("IsColocate", | 706 | 6.26k | std::to_string(_parent->is_colocated_operator())); | 707 | 6.26k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 6.26k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 6.26k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 6.26k | return Status::OK(); | 711 | 6.26k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 677 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 677 | _operator_profile = | 654 | 677 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 677 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 677 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 677 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 677 | _operator_profile->add_child(_common_profile, true); | 663 | 677 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 677 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 677 | _wait_for_finish_dependency_timer = | 667 | 677 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 677 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 677 | if constexpr (!is_fake_shared) { | 670 | 677 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 677 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 677 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 677 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 677 | _dependency = _shared_state->create_sink_dependency( | 687 | 677 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 677 | } | 689 | 677 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 677 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 677 | } | 692 | | | 693 | 677 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 677 | _rows_input_counter = | 698 | 677 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 677 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 677 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 677 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 677 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 677 | _memory_used_counter = | 704 | 677 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 677 | _common_profile->add_info_string("IsColocate", | 706 | 677 | std::to_string(_parent->is_colocated_operator())); | 707 | 677 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 677 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 677 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 677 | return Status::OK(); | 711 | 677 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 3.71k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 3.71k | _operator_profile = | 654 | 3.71k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 3.71k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 3.71k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 3.71k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 3.71k | _operator_profile->add_child(_common_profile, true); | 663 | 3.71k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 3.71k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 3.71k | _wait_for_finish_dependency_timer = | 667 | 3.71k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 3.71k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 3.71k | if constexpr (!is_fake_shared) { | 670 | 3.71k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 3.71k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 3.71k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 3.71k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 3.71k | _dependency = _shared_state->create_sink_dependency( | 687 | 3.71k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 3.71k | } | 689 | 3.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 3.71k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 3.71k | } | 692 | | | 693 | 3.71k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 3.71k | _rows_input_counter = | 698 | 3.71k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 3.71k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 3.71k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 3.71k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 3.71k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 3.71k | _memory_used_counter = | 704 | 3.71k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 3.71k | _common_profile->add_info_string("IsColocate", | 706 | 3.71k | std::to_string(_parent->is_colocated_operator())); | 707 | 3.71k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 3.71k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 3.71k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 3.71k | return Status::OK(); | 711 | 3.71k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 12.5k | _operator_profile = | 654 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 12.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 12.5k | _operator_profile->add_child(_common_profile, true); | 663 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 12.5k | _wait_for_finish_dependency_timer = | 667 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 12.5k | if constexpr (!is_fake_shared) { | 670 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 12.5k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 12.5k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 687 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 12.5k | } | 689 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 12.5k | } | 692 | | | 693 | 12.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 12.5k | _rows_input_counter = | 698 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 12.5k | _memory_used_counter = | 704 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 12.5k | _common_profile->add_info_string("IsColocate", | 706 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 707 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 12.5k | return Status::OK(); | 711 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 258k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 258k | _operator_profile = | 654 | 258k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 258k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 258k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 258k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 258k | _operator_profile->add_child(_common_profile, true); | 663 | 258k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 258k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 258k | _wait_for_finish_dependency_timer = | 667 | 258k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 258k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 258k | if constexpr (!is_fake_shared) { | 670 | 258k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 258k | info.shared_state_map.end()) { | 672 | 258k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | 258k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | 258k | } | 675 | 258k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 258k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 258k | ? 0 | 678 | 258k | : info.task_idx] | 679 | 258k | .get(); | 680 | 258k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 258k | } else { | 682 | 302 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 302 | DCHECK(false); | 684 | 302 | } | 685 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 302 | _dependency = _shared_state->create_sink_dependency( | 687 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 302 | } | 689 | 258k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 258k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 258k | } | 692 | | | 693 | 258k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 258k | _rows_input_counter = | 698 | 258k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 258k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 258k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 258k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 258k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 258k | _memory_used_counter = | 704 | 258k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 258k | _common_profile->add_info_string("IsColocate", | 706 | 258k | std::to_string(_parent->is_colocated_operator())); | 707 | 258k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 258k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 258k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 258k | return Status::OK(); | 711 | 258k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 509k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 509k | _operator_profile = | 654 | 509k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 509k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 509k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 509k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 509k | _operator_profile->add_child(_common_profile, true); | 663 | 509k | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 509k | _operator_profile->set_metadata(_parent->node_id()); | 666 | 509k | _wait_for_finish_dependency_timer = | 667 | 509k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 509k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 509k | if constexpr (!is_fake_shared) { | 670 | 509k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 509k | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 509k | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 509k | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 509k | _dependency = _shared_state->create_sink_dependency( | 687 | 509k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 509k | } | 689 | 509k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 509k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 509k | } | 692 | | | 693 | 509k | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 509k | _rows_input_counter = | 698 | 509k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 509k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 509k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 509k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 509k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 509k | _memory_used_counter = | 704 | 509k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 509k | _common_profile->add_info_string("IsColocate", | 706 | 509k | std::to_string(_parent->is_colocated_operator())); | 707 | 509k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 509k | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 509k | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 509k | return Status::OK(); | 711 | 509k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 25 | _operator_profile = | 654 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 25 | _operator_profile->add_child(_common_profile, true); | 663 | 25 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 25 | _wait_for_finish_dependency_timer = | 667 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 25 | if constexpr (!is_fake_shared) { | 670 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 25 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 25 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 25 | _dependency = _shared_state->create_sink_dependency( | 687 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 25 | } | 689 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 25 | } | 692 | | | 693 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 25 | _rows_input_counter = | 698 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 25 | _memory_used_counter = | 704 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 25 | _common_profile->add_info_string("IsColocate", | 706 | 25 | std::to_string(_parent->is_colocated_operator())); | 707 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 25 | return Status::OK(); | 711 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 651 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 652 | | // create profile | 653 | 328 | _operator_profile = | 654 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 655 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 656 | 328 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 657 | | | 658 | | // indentation is true | 659 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 660 | | // So we should set the indentation to true. | 661 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 662 | 328 | _operator_profile->add_child(_common_profile, true); | 663 | 328 | _operator_profile->add_child(_custom_profile, true); | 664 | | | 665 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 666 | 328 | _wait_for_finish_dependency_timer = | 667 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 668 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 669 | 328 | if constexpr (!is_fake_shared) { | 670 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 671 | 328 | info.shared_state_map.end()) { | 672 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 673 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 674 | | } | 675 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 676 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 677 | 0 | ? 0 | 678 | 0 | : info.task_idx] | 679 | 0 | .get(); | 680 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 681 | 328 | } else { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(false); | 684 | | } | 685 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 686 | 328 | _dependency = _shared_state->create_sink_dependency( | 687 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 688 | 328 | } | 689 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 690 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 691 | 328 | } | 692 | | | 693 | 328 | if (must_set_shared_state() && _shared_state == nullptr) { | 694 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 695 | 0 | } | 696 | | | 697 | 328 | _rows_input_counter = | 698 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 699 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 700 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 701 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 702 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 703 | 328 | _memory_used_counter = | 704 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 705 | 328 | _common_profile->add_info_string("IsColocate", | 706 | 328 | std::to_string(_parent->is_colocated_operator())); | 707 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 708 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 709 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 710 | 328 | return Status::OK(); | 711 | 328 | } |
|
712 | | |
713 | | template <typename SharedState> |
714 | 2.06M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
715 | 2.06M | if (_closed) { |
716 | 2 | return Status::OK(); |
717 | 2 | } |
718 | 2.06M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
719 | 1.36M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
720 | 1.36M | } |
721 | 2.06M | _closed = true; |
722 | 2.06M | return Status::OK(); |
723 | 2.06M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 116k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 116k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 116k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 116k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 116k | } | 721 | 116k | _closed = true; | 722 | 116k | return Status::OK(); | 723 | 116k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 1 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 1 | } | 721 | 1 | _closed = true; | 722 | 1 | return Status::OK(); | 723 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 273k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 273k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 273k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 273k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 273k | } | 721 | 273k | _closed = true; | 722 | 273k | return Status::OK(); | 723 | 273k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 20 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 20 | if (_closed) { | 716 | 2 | return Status::OK(); | 717 | 2 | } | 718 | 18 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 18 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 18 | } | 721 | 18 | _closed = true; | 722 | 18 | return Status::OK(); | 723 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 9.02k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 9.02k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 9.02k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 9.02k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 9.02k | } | 721 | 9.02k | _closed = true; | 722 | 9.02k | return Status::OK(); | 723 | 9.02k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 9.84k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 9.84k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 9.84k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 9.84k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 9.84k | } | 721 | 9.84k | _closed = true; | 722 | 9.84k | return Status::OK(); | 723 | 9.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 156k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 156k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 156k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 156k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 156k | } | 721 | 156k | _closed = true; | 722 | 156k | return Status::OK(); | 723 | 156k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 711 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 711 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 711 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 711 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 711 | } | 721 | 711 | _closed = true; | 722 | 711 | return Status::OK(); | 723 | 711 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 200 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 200 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 200 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 200 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 200 | } | 721 | 200 | _closed = true; | 722 | 200 | return Status::OK(); | 723 | 200 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 701k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 701k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | | } | 721 | 701k | _closed = true; | 722 | 701k | return Status::OK(); | 723 | 701k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 6.26k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 6.26k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 6.26k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 6.26k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 6.26k | } | 721 | 6.26k | _closed = true; | 722 | 6.26k | return Status::OK(); | 723 | 6.26k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 571 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 571 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 571 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 571 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 571 | } | 721 | 571 | _closed = true; | 722 | 571 | return Status::OK(); | 723 | 571 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 3.71k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 3.71k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 3.71k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 3.71k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 3.71k | } | 721 | 3.71k | _closed = true; | 722 | 3.71k | return Status::OK(); | 723 | 3.71k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 12.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 12.5k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 12.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 12.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 12.5k | } | 721 | 12.5k | _closed = true; | 722 | 12.5k | return Status::OK(); | 723 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 259k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 259k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 259k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 259k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 259k | } | 721 | 259k | _closed = true; | 722 | 259k | return Status::OK(); | 723 | 259k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 513k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 513k | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 513k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 513k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 513k | } | 721 | 513k | _closed = true; | 722 | 513k | return Status::OK(); | 723 | 513k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 14 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 14 | } | 721 | 14 | _closed = true; | 722 | 14 | return Status::OK(); | 723 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 714 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 715 | 328 | if (_closed) { | 716 | 0 | return Status::OK(); | 717 | 0 | } | 718 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 719 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 720 | 328 | } | 721 | 328 | _closed = true; | 722 | 328 | return Status::OK(); | 723 | 328 | } |
|
724 | | |
725 | | template <typename LocalStateType> |
726 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
727 | 13.7k | bool* eos) { |
728 | 13.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
729 | 13.7k | return pull(state, block, eos); |
730 | 13.7k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 727 | 432 | bool* eos) { | 728 | 432 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 729 | 432 | return pull(state, block, eos); | 730 | 432 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 727 | 13.3k | bool* eos) { | 728 | 13.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 729 | 13.3k | return pull(state, block, eos); | 730 | 13.3k | } |
|
731 | | |
732 | | template <typename LocalStateType> |
733 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
734 | 680k | bool* eos) { |
735 | 680k | auto& local_state = get_local_state(state); |
736 | 680k | if (need_more_input_data(state)) { |
737 | 650k | local_state._child_block->clear_column_data( |
738 | 650k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
739 | 650k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
740 | 650k | state, local_state._child_block.get(), &local_state._child_eos)); |
741 | 650k | *eos = local_state._child_eos; |
742 | 650k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
743 | 64.9k | return Status::OK(); |
744 | 64.9k | } |
745 | 585k | { |
746 | 585k | SCOPED_TIMER(local_state.exec_time_counter()); |
747 | 585k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
748 | 585k | } |
749 | 585k | } |
750 | | |
751 | 615k | if (!need_more_input_data(state)) { |
752 | 561k | SCOPED_TIMER(local_state.exec_time_counter()); |
753 | 561k | bool new_eos = false; |
754 | 561k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
755 | 561k | if (new_eos) { |
756 | 480k | *eos = true; |
757 | 480k | } else if (!need_more_input_data(state)) { |
758 | 25.2k | *eos = false; |
759 | 25.2k | } |
760 | 561k | } |
761 | 615k | return Status::OK(); |
762 | 615k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 139k | bool* eos) { | 735 | 139k | auto& local_state = get_local_state(state); | 736 | 139k | if (need_more_input_data(state)) { | 737 | 123k | local_state._child_block->clear_column_data( | 738 | 123k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 123k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 123k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 123k | *eos = local_state._child_eos; | 742 | 123k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 38.3k | return Status::OK(); | 744 | 38.3k | } | 745 | 84.9k | { | 746 | 84.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 84.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 84.9k | } | 749 | 84.9k | } | 750 | | | 751 | 101k | if (!need_more_input_data(state)) { | 752 | 101k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 101k | bool new_eos = false; | 754 | 101k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 101k | if (new_eos) { | 756 | 44.1k | *eos = true; | 757 | 57.4k | } else if (!need_more_input_data(state)) { | 758 | 10.6k | *eos = false; | 759 | 10.6k | } | 760 | 101k | } | 761 | 101k | return Status::OK(); | 762 | 101k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 4.11k | bool* eos) { | 735 | 4.11k | auto& local_state = get_local_state(state); | 736 | 4.11k | if (need_more_input_data(state)) { | 737 | 2.37k | local_state._child_block->clear_column_data( | 738 | 2.37k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 2.37k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 2.37k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 2.37k | *eos = local_state._child_eos; | 742 | 2.37k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 686 | return Status::OK(); | 744 | 686 | } | 745 | 1.68k | { | 746 | 1.68k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 1.68k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 1.68k | } | 749 | 1.68k | } | 750 | | | 751 | 3.43k | if (!need_more_input_data(state)) { | 752 | 3.43k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 3.43k | bool new_eos = false; | 754 | 3.43k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 3.43k | if (new_eos) { | 756 | 1.05k | *eos = true; | 757 | 2.37k | } else if (!need_more_input_data(state)) { | 758 | 1.74k | *eos = false; | 759 | 1.74k | } | 760 | 3.43k | } | 761 | 3.42k | return Status::OK(); | 762 | 3.42k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 4.93k | bool* eos) { | 735 | 4.93k | auto& local_state = get_local_state(state); | 736 | 4.93k | if (need_more_input_data(state)) { | 737 | 4.93k | local_state._child_block->clear_column_data( | 738 | 4.93k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 4.93k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 4.93k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 4.93k | *eos = local_state._child_eos; | 742 | 4.93k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 1.72k | return Status::OK(); | 744 | 1.72k | } | 745 | 3.20k | { | 746 | 3.20k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 3.20k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 3.20k | } | 749 | 3.20k | } | 750 | | | 751 | 3.20k | if (!need_more_input_data(state)) { | 752 | 3.20k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 3.20k | bool new_eos = false; | 754 | 3.20k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 3.20k | if (new_eos) { | 756 | 1.73k | *eos = true; | 757 | 1.73k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 3.20k | } | 761 | 3.20k | return Status::OK(); | 762 | 3.20k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 37.4k | bool* eos) { | 735 | 37.4k | auto& local_state = get_local_state(state); | 736 | 37.5k | if (need_more_input_data(state)) { | 737 | 37.5k | local_state._child_block->clear_column_data( | 738 | 37.5k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 37.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 37.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 37.5k | *eos = local_state._child_eos; | 742 | 37.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 5.77k | return Status::OK(); | 744 | 5.77k | } | 745 | 31.7k | { | 746 | 31.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 31.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 31.7k | } | 749 | 31.7k | } | 750 | | | 751 | 31.7k | if (!need_more_input_data(state)) { | 752 | 11.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 11.5k | bool new_eos = false; | 754 | 11.5k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 11.5k | if (new_eos) { | 756 | 11.4k | *eos = true; | 757 | 11.4k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 11.5k | } | 761 | 31.7k | return Status::OK(); | 762 | 31.7k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 458k | bool* eos) { | 735 | 458k | auto& local_state = get_local_state(state); | 736 | 459k | if (need_more_input_data(state)) { | 737 | 459k | local_state._child_block->clear_column_data( | 738 | 459k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 459k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 459k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 459k | *eos = local_state._child_eos; | 742 | 459k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 15.0k | return Status::OK(); | 744 | 15.0k | } | 745 | 444k | { | 746 | 444k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 444k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 444k | } | 749 | 444k | } | 750 | | | 751 | 443k | if (!need_more_input_data(state)) { | 752 | 410k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 410k | bool new_eos = false; | 754 | 410k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 410k | if (new_eos) { | 756 | 409k | *eos = true; | 757 | 409k | } else if (!need_more_input_data(state)) { | 758 | 0 | *eos = false; | 759 | 0 | } | 760 | 410k | } | 761 | 443k | return Status::OK(); | 762 | 443k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 29.6k | bool* eos) { | 735 | 29.6k | auto& local_state = get_local_state(state); | 736 | 29.6k | if (need_more_input_data(state)) { | 737 | 17.2k | local_state._child_block->clear_column_data( | 738 | 17.2k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 17.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 17.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 17.2k | *eos = local_state._child_eos; | 742 | 17.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 2.92k | return Status::OK(); | 744 | 2.92k | } | 745 | 14.2k | { | 746 | 14.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 14.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 14.2k | } | 749 | 14.2k | } | 750 | | | 751 | 26.7k | if (!need_more_input_data(state)) { | 752 | 26.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 26.1k | bool new_eos = false; | 754 | 26.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 26.1k | if (new_eos) { | 756 | 9.00k | *eos = true; | 757 | 17.1k | } else if (!need_more_input_data(state)) { | 758 | 12.4k | *eos = false; | 759 | 12.4k | } | 760 | 26.1k | } | 761 | 26.7k | return Status::OK(); | 762 | 26.7k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 734 | 6.23k | bool* eos) { | 735 | 6.23k | auto& local_state = get_local_state(state); | 736 | 6.23k | if (need_more_input_data(state)) { | 737 | 5.87k | local_state._child_block->clear_column_data( | 738 | 5.87k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 739 | 5.87k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 740 | 5.87k | state, local_state._child_block.get(), &local_state._child_eos)); | 741 | 5.87k | *eos = local_state._child_eos; | 742 | 5.87k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 743 | 446 | return Status::OK(); | 744 | 446 | } | 745 | 5.42k | { | 746 | 5.42k | SCOPED_TIMER(local_state.exec_time_counter()); | 747 | 5.42k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 748 | 5.42k | } | 749 | 5.42k | } | 750 | | | 751 | 5.78k | if (!need_more_input_data(state)) { | 752 | 5.78k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 5.78k | bool new_eos = false; | 754 | 5.78k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 755 | 5.78k | if (new_eos) { | 756 | 3.71k | *eos = true; | 757 | 3.71k | } else if (!need_more_input_data(state)) { | 758 | 366 | *eos = false; | 759 | 366 | } | 760 | 5.78k | } | 761 | 5.77k | return Status::OK(); | 762 | 5.77k | } |
|
763 | | |
764 | | template <typename Writer, typename Parent> |
765 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
766 | 69.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
767 | 69.2k | RETURN_IF_ERROR(Base::init(state, info)); |
768 | 69.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
769 | 69.2k | "AsyncWriterDependency", true); |
770 | 69.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
771 | 69.2k | _finish_dependency)); |
772 | | |
773 | 69.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
774 | 69.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
775 | 69.2k | return Status::OK(); |
776 | 69.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 515 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 515 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 515 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 515 | "AsyncWriterDependency", true); | 770 | 515 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 515 | _finish_dependency)); | 772 | | | 773 | 515 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 515 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 515 | return Status::OK(); | 776 | 515 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 86 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 86 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 86 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 86 | "AsyncWriterDependency", true); | 770 | 86 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 86 | _finish_dependency)); | 772 | | | 773 | 86 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 86 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 86 | return Status::OK(); | 776 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 47.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 47.0k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 47.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 47.0k | "AsyncWriterDependency", true); | 770 | 47.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 47.0k | _finish_dependency)); | 772 | | | 773 | 47.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 47.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 47.0k | return Status::OK(); | 776 | 47.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 9.65k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 9.65k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 9.65k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 9.65k | "AsyncWriterDependency", true); | 770 | 9.65k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 9.65k | _finish_dependency)); | 772 | | | 773 | 9.65k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 9.65k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 9.65k | return Status::OK(); | 776 | 9.65k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 5.23k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 5.23k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 5.23k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 5.23k | "AsyncWriterDependency", true); | 770 | 5.23k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 5.23k | _finish_dependency)); | 772 | | | 773 | 5.23k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 5.23k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 5.23k | return Status::OK(); | 776 | 5.23k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 4.02k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 4.02k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 4.02k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 4.02k | "AsyncWriterDependency", true); | 770 | 4.02k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 4.02k | _finish_dependency)); | 772 | | | 773 | 4.02k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 4.02k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 4.02k | return Status::OK(); | 776 | 4.02k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 48 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 48 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 48 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 48 | "AsyncWriterDependency", true); | 770 | 48 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 48 | _finish_dependency)); | 772 | | | 773 | 48 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 48 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 48 | return Status::OK(); | 776 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 704 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 704 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 704 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 704 | "AsyncWriterDependency", true); | 770 | 704 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 704 | _finish_dependency)); | 772 | | | 773 | 704 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 704 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 704 | return Status::OK(); | 776 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 1.71k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 1.71k | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 1.71k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 1.71k | "AsyncWriterDependency", true); | 770 | 1.71k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 1.71k | _finish_dependency)); | 772 | | | 773 | 1.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 1.71k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 1.71k | return Status::OK(); | 776 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 766 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 767 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 768 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 769 | 156 | "AsyncWriterDependency", true); | 770 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 771 | 156 | _finish_dependency)); | 772 | | | 773 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 774 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 775 | 156 | return Status::OK(); | 776 | 156 | } |
|
777 | | |
778 | | template <typename Writer, typename Parent> |
779 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
780 | 69.2k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
781 | 69.2k | RETURN_IF_ERROR(Base::open(state)); |
782 | 69.2k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
783 | 598k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
784 | 529k | RETURN_IF_ERROR( |
785 | 529k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
786 | 529k | } |
787 | 69.2k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
788 | 69.2k | return Status::OK(); |
789 | 69.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 514 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 514 | RETURN_IF_ERROR(Base::open(state)); | 782 | 514 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 2.77k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 2.25k | RETURN_IF_ERROR( | 785 | 2.25k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 2.25k | } | 787 | 514 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 514 | return Status::OK(); | 789 | 514 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 86 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 86 | RETURN_IF_ERROR(Base::open(state)); | 782 | 86 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 402 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 316 | RETURN_IF_ERROR( | 785 | 316 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 316 | } | 787 | 86 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 86 | return Status::OK(); | 789 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 47.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 47.3k | RETURN_IF_ERROR(Base::open(state)); | 782 | 47.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 339k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 291k | RETURN_IF_ERROR( | 785 | 291k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 291k | } | 787 | 47.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 47.3k | return Status::OK(); | 789 | 47.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 9.43k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 9.43k | RETURN_IF_ERROR(Base::open(state)); | 782 | 9.43k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 58.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 48.8k | RETURN_IF_ERROR( | 785 | 48.8k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 48.8k | } | 787 | 9.43k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 9.43k | return Status::OK(); | 789 | 9.43k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 5.22k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 5.22k | RETURN_IF_ERROR(Base::open(state)); | 782 | 5.22k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 136k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 131k | RETURN_IF_ERROR( | 785 | 131k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 131k | } | 787 | 5.22k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 5.22k | return Status::OK(); | 789 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 4.01k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 4.01k | RETURN_IF_ERROR(Base::open(state)); | 782 | 4.01k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 44.9k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 40.9k | RETURN_IF_ERROR( | 785 | 40.9k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 40.9k | } | 787 | 4.01k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 4.01k | return Status::OK(); | 789 | 4.01k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 48 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 48 | RETURN_IF_ERROR(Base::open(state)); | 782 | 48 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 206 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 158 | RETURN_IF_ERROR( | 785 | 158 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 158 | } | 787 | 48 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 48 | return Status::OK(); | 789 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 704 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 704 | RETURN_IF_ERROR(Base::open(state)); | 782 | 704 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 2.10k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 1.40k | RETURN_IF_ERROR( | 785 | 1.40k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 1.40k | } | 787 | 704 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 704 | return Status::OK(); | 789 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 1.71k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 1.71k | RETURN_IF_ERROR(Base::open(state)); | 782 | 1.71k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 13.3k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 11.6k | RETURN_IF_ERROR( | 785 | 11.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 11.6k | } | 787 | 1.71k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 1.71k | return Status::OK(); | 789 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 780 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 781 | 156 | RETURN_IF_ERROR(Base::open(state)); | 782 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 783 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 784 | 630 | RETURN_IF_ERROR( | 785 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 786 | 630 | } | 787 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 788 | 156 | return Status::OK(); | 789 | 156 | } |
|
790 | | |
791 | | template <typename Writer, typename Parent> |
792 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
793 | 95.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
794 | 95.6k | return _writer->sink(block, eos); |
795 | 95.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 2.62k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 2.62k | return _writer->sink(block, eos); | 795 | 2.62k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 110 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 110 | return _writer->sink(block, eos); | 795 | 110 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 64.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 64.2k | return _writer->sink(block, eos); | 795 | 64.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 11.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 11.0k | return _writer->sink(block, eos); | 795 | 11.0k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 7.67k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 7.67k | return _writer->sink(block, eos); | 795 | 7.67k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 6.57k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 6.57k | return _writer->sink(block, eos); | 795 | 6.57k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 60 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 60 | return _writer->sink(block, eos); | 795 | 60 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 792 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 792 | return _writer->sink(block, eos); | 795 | 792 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 2.17k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 2.17k | return _writer->sink(block, eos); | 795 | 2.17k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 793 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 794 | 310 | return _writer->sink(block, eos); | 795 | 310 | } |
|
796 | | |
797 | | template <typename Writer, typename Parent> |
798 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
799 | 69.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
800 | 69.4k | if (_closed) { |
801 | 0 | return Status::OK(); |
802 | 0 | } |
803 | 69.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
804 | 69.4k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
805 | | // if the init failed, the _writer may be nullptr. so here need check |
806 | 69.5k | if (_writer) { |
807 | 69.5k | Status st = _writer->get_writer_status(); |
808 | 69.5k | if (exec_status.ok()) { |
809 | 69.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
810 | 69.4k | : Status::Cancelled("force close")); |
811 | 69.4k | } else { |
812 | 137 | _writer->force_close(exec_status); |
813 | 137 | } |
814 | | // If there is an error in process_block thread, then we should get the writer |
815 | | // status before call force_close. For example, the thread may failed in commit |
816 | | // transaction. |
817 | 69.5k | RETURN_IF_ERROR(st); |
818 | 69.5k | } |
819 | 69.4k | return Base::close(state, exec_status); |
820 | 69.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 503 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 503 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 503 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 503 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 503 | if (_writer) { | 807 | 503 | Status st = _writer->get_writer_status(); | 808 | 503 | if (exec_status.ok()) { | 809 | 503 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 503 | : Status::Cancelled("force close")); | 811 | 503 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 503 | RETURN_IF_ERROR(st); | 818 | 503 | } | 819 | 503 | return Base::close(state, exec_status); | 820 | 503 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 86 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 86 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 86 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 86 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 86 | if (_writer) { | 807 | 86 | Status st = _writer->get_writer_status(); | 808 | 86 | if (exec_status.ok()) { | 809 | 86 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 86 | : Status::Cancelled("force close")); | 811 | 86 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 86 | RETURN_IF_ERROR(st); | 818 | 86 | } | 819 | 78 | return Base::close(state, exec_status); | 820 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 47.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 47.4k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 47.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 47.4k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 47.4k | if (_writer) { | 807 | 47.4k | Status st = _writer->get_writer_status(); | 808 | 47.4k | if (exec_status.ok()) { | 809 | 47.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 47.4k | : Status::Cancelled("force close")); | 811 | 47.4k | } else { | 812 | 43 | _writer->force_close(exec_status); | 813 | 43 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 47.4k | RETURN_IF_ERROR(st); | 818 | 47.4k | } | 819 | 47.3k | return Base::close(state, exec_status); | 820 | 47.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 9.58k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 9.58k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 9.58k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 9.58k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 9.65k | if (_writer) { | 807 | 9.65k | Status st = _writer->get_writer_status(); | 808 | 9.65k | if (exec_status.ok()) { | 809 | 9.56k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 9.56k | : Status::Cancelled("force close")); | 811 | 9.56k | } else { | 812 | 88 | _writer->force_close(exec_status); | 813 | 88 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 9.65k | RETURN_IF_ERROR(st); | 818 | 9.65k | } | 819 | 9.58k | return Base::close(state, exec_status); | 820 | 9.58k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 5.22k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 5.22k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 5.22k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 5.22k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 5.23k | if (_writer) { | 807 | 5.23k | Status st = _writer->get_writer_status(); | 808 | 5.23k | if (exec_status.ok()) { | 809 | 5.23k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 5.23k | : Status::Cancelled("force close")); | 811 | 5.23k | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 5.23k | RETURN_IF_ERROR(st); | 818 | 5.23k | } | 819 | 5.22k | return Base::close(state, exec_status); | 820 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 4.00k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 4.00k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 4.00k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 4.00k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 4.02k | if (_writer) { | 807 | 4.02k | Status st = _writer->get_writer_status(); | 808 | 4.02k | if (exec_status.ok()) { | 809 | 4.01k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 4.01k | : Status::Cancelled("force close")); | 811 | 4.01k | } else { | 812 | 6 | _writer->force_close(exec_status); | 813 | 6 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 4.02k | RETURN_IF_ERROR(st); | 818 | 4.02k | } | 819 | 4.00k | return Base::close(state, exec_status); | 820 | 4.00k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 48 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 48 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 48 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 48 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 48 | if (_writer) { | 807 | 48 | Status st = _writer->get_writer_status(); | 808 | 48 | if (exec_status.ok()) { | 809 | 48 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 48 | : Status::Cancelled("force close")); | 811 | 48 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 48 | RETURN_IF_ERROR(st); | 818 | 48 | } | 819 | 48 | return Base::close(state, exec_status); | 820 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 704 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 704 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 704 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 704 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 704 | if (_writer) { | 807 | 704 | Status st = _writer->get_writer_status(); | 808 | 704 | if (exec_status.ok()) { | 809 | 704 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 704 | : Status::Cancelled("force close")); | 811 | 704 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 704 | RETURN_IF_ERROR(st); | 818 | 704 | } | 819 | 704 | return Base::close(state, exec_status); | 820 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 1.71k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 1.71k | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 1.71k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 1.71k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 1.71k | if (_writer) { | 807 | 1.71k | Status st = _writer->get_writer_status(); | 808 | 1.71k | if (exec_status.ok()) { | 809 | 1.71k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 1.71k | : Status::Cancelled("force close")); | 811 | 1.71k | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 1.71k | RETURN_IF_ERROR(st); | 818 | 1.71k | } | 819 | 1.71k | return Base::close(state, exec_status); | 820 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 799 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 800 | 156 | if (_closed) { | 801 | 0 | return Status::OK(); | 802 | 0 | } | 803 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 804 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 805 | | // if the init failed, the _writer may be nullptr. so here need check | 806 | 156 | if (_writer) { | 807 | 156 | Status st = _writer->get_writer_status(); | 808 | 156 | if (exec_status.ok()) { | 809 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 810 | 156 | : Status::Cancelled("force close")); | 811 | 156 | } else { | 812 | 0 | _writer->force_close(exec_status); | 813 | 0 | } | 814 | | // If there is an error in process_block thread, then we should get the writer | 815 | | // status before call force_close. For example, the thread may failed in commit | 816 | | // transaction. | 817 | 156 | RETURN_IF_ERROR(st); | 818 | 156 | } | 819 | 156 | return Base::close(state, exec_status); | 820 | 156 | } |
|
821 | | |
822 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
823 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
824 | | DECLARE_OPERATOR(ResultSinkLocalState) |
825 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
826 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
827 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
828 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
829 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
830 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
831 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
832 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
833 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
834 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
835 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
836 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
837 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
838 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
839 | | DECLARE_OPERATOR(SortSinkLocalState) |
840 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
841 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
842 | | DECLARE_OPERATOR(AggSinkLocalState) |
843 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
844 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
845 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
846 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
847 | | DECLARE_OPERATOR(UnionSinkLocalState) |
848 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
849 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
850 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
851 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
852 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
853 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
854 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
855 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
856 | | DECLARE_OPERATOR(CacheSinkLocalState) |
857 | | DECLARE_OPERATOR(DictSinkLocalState) |
858 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
859 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
860 | | |
861 | | #undef DECLARE_OPERATOR |
862 | | |
863 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
864 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
865 | | DECLARE_OPERATOR(OlapScanLocalState) |
866 | | DECLARE_OPERATOR(GroupCommitLocalState) |
867 | | DECLARE_OPERATOR(JDBCScanLocalState) |
868 | | DECLARE_OPERATOR(FileScanLocalState) |
869 | | DECLARE_OPERATOR(AnalyticLocalState) |
870 | | DECLARE_OPERATOR(SortLocalState) |
871 | | DECLARE_OPERATOR(SpillSortLocalState) |
872 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
873 | | DECLARE_OPERATOR(AggLocalState) |
874 | | DECLARE_OPERATOR(BucketedAggLocalState) |
875 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
876 | | DECLARE_OPERATOR(TableFunctionLocalState) |
877 | | DECLARE_OPERATOR(ExchangeLocalState) |
878 | | DECLARE_OPERATOR(RepeatLocalState) |
879 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
880 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
881 | | DECLARE_OPERATOR(EmptySetLocalState) |
882 | | DECLARE_OPERATOR(UnionSourceLocalState) |
883 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
884 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
885 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
886 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
887 | | DECLARE_OPERATOR(DataGenLocalState) |
888 | | DECLARE_OPERATOR(SchemaScanLocalState) |
889 | | DECLARE_OPERATOR(MetaScanLocalState) |
890 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
891 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
892 | | DECLARE_OPERATOR(CacheSourceLocalState) |
893 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
894 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
895 | | |
896 | | #ifdef BE_TEST |
897 | | DECLARE_OPERATOR(MockLocalState) |
898 | | DECLARE_OPERATOR(MockScanLocalState) |
899 | | #endif |
900 | | #undef DECLARE_OPERATOR |
901 | | |
902 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
903 | | template class StreamingOperatorX<SelectLocalState>; |
904 | | |
905 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
906 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
907 | | template class StatefulOperatorX<RepeatLocalState>; |
908 | | template class StatefulOperatorX<MaterializationLocalState>; |
909 | | template class StatefulOperatorX<StreamingAggLocalState>; |
910 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
911 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
912 | | template class StatefulOperatorX<TableFunctionLocalState>; |
913 | | |
914 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
915 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
916 | | template class PipelineXSinkLocalState<SortSharedState>; |
917 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
918 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
919 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
920 | | template class PipelineXSinkLocalState<AggSharedState>; |
921 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
922 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
923 | | template class PipelineXSinkLocalState<FakeSharedState>; |
924 | | template class PipelineXSinkLocalState<UnionSharedState>; |
925 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
926 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
927 | | template class PipelineXSinkLocalState<SetSharedState>; |
928 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
929 | | template class PipelineXSinkLocalState<BasicSharedState>; |
930 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
931 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
932 | | |
933 | | template class PipelineXLocalState<HashJoinSharedState>; |
934 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
935 | | template class PipelineXLocalState<SortSharedState>; |
936 | | template class PipelineXLocalState<SpillSortSharedState>; |
937 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
938 | | template class PipelineXLocalState<AnalyticSharedState>; |
939 | | template class PipelineXLocalState<AggSharedState>; |
940 | | template class PipelineXLocalState<BucketedAggSharedState>; |
941 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
942 | | template class PipelineXLocalState<FakeSharedState>; |
943 | | template class PipelineXLocalState<UnionSharedState>; |
944 | | template class PipelineXLocalState<DataQueueSharedState>; |
945 | | template class PipelineXLocalState<MultiCastSharedState>; |
946 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
947 | | template class PipelineXLocalState<SetSharedState>; |
948 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
949 | | template class PipelineXLocalState<BasicSharedState>; |
950 | | template class PipelineXLocalState<RecCTESharedState>; |
951 | | |
952 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
953 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
954 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
955 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
956 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
957 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
958 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
959 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
960 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
962 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
963 | | |
964 | | #ifdef BE_TEST |
965 | | template class OperatorX<DummyOperatorLocalState>; |
966 | | template class DataSinkOperatorX<DummySinkLocalState>; |
967 | | #endif |
968 | | |
969 | | } // namespace doris |