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