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.68M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
122 | 1.68M | if (_parent->nereids_id() == -1) { |
123 | 874k | return fmt::format("(id={})", _parent->node_id()); |
124 | 874k | } else { |
125 | 813k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
126 | 813k | } |
127 | 1.68M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 69.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 69.7k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 69.7k | } else { | 125 | 69.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 69.7k | } | 127 | 69.7k | } |
_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 | 236k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 236k | if (_parent->nereids_id() == -1) { | 123 | 12 | return fmt::format("(id={})", _parent->node_id()); | 124 | 236k | } else { | 125 | 236k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 236k | } | 127 | 236k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 21 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 21 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 21 | } else { | 125 | 21 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 21 | } | 127 | 21 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 6.44k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 6.44k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 6.44k | } else { | 125 | 6.44k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 6.44k | } | 127 | 6.44k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 11.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 11.8k | if (_parent->nereids_id() == -1) { | 123 | 16 | return fmt::format("(id={})", _parent->node_id()); | 124 | 11.8k | } else { | 125 | 11.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 11.8k | } | 127 | 11.8k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 101k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 101k | if (_parent->nereids_id() == -1) { | 123 | 29 | return fmt::format("(id={})", _parent->node_id()); | 124 | 101k | } else { | 125 | 101k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 101k | } | 127 | 101k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 71.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 71.4k | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 71.4k | } else { | 125 | 71.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 71.4k | } | 127 | 71.4k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 92 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 92 | if (_parent->nereids_id() == -1) { | 123 | 0 | return fmt::format("(id={})", _parent->node_id()); | 124 | 92 | } else { | 125 | 92 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 92 | } | 127 | 92 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 496k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 496k | if (_parent->nereids_id() == -1) { | 123 | 242k | return fmt::format("(id={})", _parent->node_id()); | 124 | 254k | } else { | 125 | 254k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 254k | } | 127 | 496k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 55.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 55.7k | if (_parent->nereids_id() == -1) { | 123 | 2 | return fmt::format("(id={})", _parent->node_id()); | 124 | 55.7k | } else { | 125 | 55.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 55.7k | } | 127 | 55.7k | } |
_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.60k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.60k | if (_parent->nereids_id() == -1) { | 123 | 5.59k | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.59k | } else { | 125 | 3 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 3 | } | 127 | 5.60k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 424 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 424 | if (_parent->nereids_id() == -1) { | 123 | 102 | return fmt::format("(id={})", _parent->node_id()); | 124 | 322 | } else { | 125 | 322 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 322 | } | 127 | 424 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 5.05k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 5.05k | if (_parent->nereids_id() == -1) { | 123 | 13 | return fmt::format("(id={})", _parent->node_id()); | 124 | 5.04k | } else { | 125 | 5.04k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 5.04k | } | 127 | 5.05k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 121 | 626k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 122 | 626k | if (_parent->nereids_id() == -1) { | 123 | 626k | return fmt::format("(id={})", _parent->node_id()); | 124 | 626k | } else { | 125 | 124 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 126 | 124 | } | 127 | 626k | } |
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.20M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
131 | 1.20M | if (_parent->nereids_id() == -1) { |
132 | 646k | return fmt::format("(id={})", _parent->node_id()); |
133 | 646k | } else { |
134 | 558k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
135 | 558k | } |
136 | 1.20M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 118k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 118k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 118k | } else { | 134 | 118k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 118k | } | 136 | 118k | } |
_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 | 238k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 238k | if (_parent->nereids_id() == -1) { | 132 | 9 | return fmt::format("(id={})", _parent->node_id()); | 133 | 238k | } else { | 134 | 238k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 238k | } | 136 | 238k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 28 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 28 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 28 | } else { | 134 | 28 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 28 | } | 136 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 6.46k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 6.46k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 6.46k | } else { | 134 | 6.46k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 6.46k | } | 136 | 6.46k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 11.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 11.8k | if (_parent->nereids_id() == -1) { | 132 | 16 | return fmt::format("(id={})", _parent->node_id()); | 133 | 11.8k | } else { | 134 | 11.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 11.8k | } | 136 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 102k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 102k | if (_parent->nereids_id() == -1) { | 132 | 29 | return fmt::format("(id={})", _parent->node_id()); | 133 | 102k | } else { | 134 | 102k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 102k | } | 136 | 102k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 71.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 71.3k | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 71.3k | } else { | 134 | 71.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 71.3k | } | 136 | 71.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 102 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 102 | if (_parent->nereids_id() == -1) { | 132 | 0 | return fmt::format("(id={})", _parent->node_id()); | 133 | 102 | } else { | 134 | 102 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 102 | } | 136 | 102 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 15 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 17 | if (_parent->nereids_id() == -1) { | 132 | 17 | 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 | 15 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 10.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 10.1k | if (_parent->nereids_id() == -1) { | 132 | 3 | return fmt::format("(id={})", _parent->node_id()); | 133 | 10.1k | } else { | 134 | 10.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 10.1k | } | 136 | 10.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 427 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 427 | if (_parent->nereids_id() == -1) { | 132 | 102 | return fmt::format("(id={})", _parent->node_id()); | 133 | 325 | } else { | 134 | 325 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 135 | 325 | } | 136 | 427 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 12.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 12.6k | if (_parent->nereids_id() == -1) { | 132 | 12.6k | 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 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 240k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 240k | if (_parent->nereids_id() == -1) { | 132 | 240k | 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 | 240k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 130 | 393k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 131 | 393k | if (_parent->nereids_id() == -1) { | 132 | 393k | 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 | 393k | } |
_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.6k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
140 | 30.6k | if (_terminated) { |
141 | 1 | return Status::OK(); |
142 | 1 | } |
143 | 30.6k | _terminated = true; |
144 | 30.6k | return Status::OK(); |
145 | 30.6k | } _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.01k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.01k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.01k | _terminated = true; | 144 | 2.01k | return Status::OK(); | 145 | 2.01k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2 | _terminated = true; | 144 | 2 | return Status::OK(); | 145 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 8 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 8 | _terminated = true; | 144 | 8 | return Status::OK(); | 145 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_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_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 2.12k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 2.12k | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 2.12k | _terminated = true; | 144 | 2.12k | return Status::OK(); | 145 | 2.12k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 987 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 987 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 987 | _terminated = true; | 144 | 987 | return Status::OK(); | 145 | 987 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 535 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 535 | if (_terminated) { | 141 | 1 | return Status::OK(); | 142 | 1 | } | 143 | 534 | _terminated = true; | 144 | 534 | return Status::OK(); | 145 | 535 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 426 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 426 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 426 | _terminated = true; | 144 | 426 | return Status::OK(); | 145 | 426 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 6 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 6 | _terminated = true; | 144 | 6 | return Status::OK(); | 145 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 132 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 132 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 132 | _terminated = true; | 144 | 132 | return Status::OK(); | 145 | 132 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 6 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 6 | _terminated = true; | 144 | 6 | return Status::OK(); | 145 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 269 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 269 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 269 | _terminated = true; | 144 | 269 | return Status::OK(); | 145 | 269 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 139 | 134 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 140 | 134 | if (_terminated) { | 141 | 0 | return Status::OK(); | 142 | 0 | } | 143 | 134 | _terminated = true; | 144 | 134 | return Status::OK(); | 145 | 134 | } |
|
146 | | |
147 | 305k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
148 | 305k | return _child && _child->is_serial_operator() && !is_source() |
149 | 305k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
150 | 305k | : DataDistribution(TLocalPartitionType::NOOP); |
151 | 305k | } |
152 | | |
153 | 20.5k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
154 | 20.5k | if (!_child) { |
155 | 19.4k | return false; |
156 | 19.4k | } |
157 | 1.10k | if (_child->is_serial_operator()) { |
158 | 163 | return true; |
159 | 163 | } |
160 | 940 | const auto child_distribution = _child->required_data_distribution(state); |
161 | 940 | return child_distribution.need_local_exchange() && |
162 | 940 | !is_shuffled_exchange(child_distribution.distribution_type); |
163 | 1.10k | } |
164 | | |
165 | | template <typename SharedStateArg> |
166 | 16.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
167 | 16.8k | fmt::memory_buffer debug_string_buffer; |
168 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
169 | 16.8k | return fmt::to_string(debug_string_buffer); |
170 | 16.8k | } 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 | 16.8k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 167 | 16.8k | fmt::memory_buffer debug_string_buffer; | 168 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 169 | 16.8k | return fmt::to_string(debug_string_buffer); | 170 | 16.8k | } |
_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 | 16.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
174 | 16.8k | fmt::memory_buffer debug_string_buffer; |
175 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
176 | 16.8k | return fmt::to_string(debug_string_buffer); |
177 | 16.8k | } 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 | 16.8k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 174 | 16.8k | fmt::memory_buffer debug_string_buffer; | 175 | 16.8k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 176 | 16.8k | return fmt::to_string(debug_string_buffer); | 177 | 16.8k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
178 | | |
179 | 16.9k | std::string OperatorXBase::debug_string(int indentation_level) const { |
180 | 16.9k | fmt::memory_buffer debug_string_buffer; |
181 | 16.9k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
182 | 16.9k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
183 | 16.9k | _is_serial_operator); |
184 | 16.9k | return fmt::to_string(debug_string_buffer); |
185 | 16.9k | } |
186 | | |
187 | 16.8k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
188 | 16.8k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
189 | 16.8k | } |
190 | | |
191 | 673k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
192 | 673k | std::string node_name = print_plan_node_type(tnode.node_type); |
193 | 673k | _nereids_id = tnode.nereids_id; |
194 | 673k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
195 | 6.45k | if (!has_projection()) { |
196 | 0 | return Status::InternalError("no final output tuple id"); |
197 | 0 | } |
198 | 6.45k | if (tnode.intermediate_output_tuple_id_list.size() != |
199 | 6.45k | 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.45k | } |
207 | 673k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
208 | 673k | _op_name = substr + "_OPERATOR"; |
209 | | |
210 | 673k | if (tnode.__isset.vconjunct) { |
211 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
212 | 673k | } else if (tnode.__isset.conjuncts) { |
213 | 279k | for (const auto& conjunct : tnode.conjuncts) { |
214 | 279k | VExprContextSPtr context; |
215 | 279k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
216 | 279k | _conjuncts.emplace_back(context); |
217 | 279k | } |
218 | 103k | } |
219 | | |
220 | | // create the projections expr |
221 | 673k | if (tnode.__isset.projections) { |
222 | 272k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
223 | 272k | } |
224 | 673k | if (!tnode.intermediate_projections_list.empty()) { |
225 | 6.45k | DCHECK(has_projection()) << "no final projections"; |
226 | 6.45k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
227 | 11.4k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
228 | 11.4k | VExprContextSPtrs projections; |
229 | 11.4k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
230 | 11.4k | _projection->intermediate_projections.push_back(projections); |
231 | 11.4k | } |
232 | 6.45k | } |
233 | 673k | return Status::OK(); |
234 | 673k | } |
235 | | |
236 | 701k | Status OperatorXBase::prepare(RuntimeState* state) { |
237 | 701k | for (auto& conjunct : _conjuncts) { |
238 | 279k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
239 | 279k | } |
240 | 701k | if (state->enable_adjust_conjunct_order_by_cost()) { |
241 | 651k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
242 | 343k | return a->execute_cost() < b->execute_cost(); |
243 | 343k | }); |
244 | 651k | }; |
245 | | |
246 | 701k | if (has_projection()) { |
247 | 272k | auto& projection = *_projection; |
248 | 283k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
249 | 11.4k | const auto& input_row_desc = |
250 | 11.4k | i == 0 ? operator_row_desc_before_projection() |
251 | 11.4k | : projection.intermediate_output_row_descriptors[i - 1]; |
252 | 11.4k | RETURN_IF_ERROR( |
253 | 11.4k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
254 | 11.4k | } |
255 | 272k | const auto& final_projection_input_row_desc = |
256 | 272k | projection.intermediate_output_row_descriptors.empty() |
257 | 272k | ? operator_row_desc_before_projection() |
258 | 272k | : projection.intermediate_output_row_descriptors.back(); |
259 | 272k | RETURN_IF_ERROR( |
260 | 272k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
261 | 272k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
262 | 272k | projection.output_row_descriptor)); |
263 | 272k | } |
264 | | |
265 | 701k | for (auto& conjunct : _conjuncts) { |
266 | 279k | RETURN_IF_ERROR(conjunct->open(state)); |
267 | 279k | } |
268 | 701k | if (has_projection()) { |
269 | 272k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
270 | 272k | for (auto& projections : _projection->intermediate_projections) { |
271 | 11.4k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
272 | 11.4k | } |
273 | 272k | } |
274 | 701k | if (_child && !is_source()) { |
275 | 85.5k | RETURN_IF_ERROR(_child->prepare(state)); |
276 | 85.5k | } |
277 | | |
278 | 701k | if (VExpr::contains_blockable_function(_conjuncts) || |
279 | 701k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
280 | 0 | _blockable = true; |
281 | 0 | } |
282 | | |
283 | 701k | return Status::OK(); |
284 | 701k | } |
285 | | |
286 | 7.17k | Status OperatorXBase::terminate(RuntimeState* state) { |
287 | 7.17k | if (_child && !is_source()) { |
288 | 500 | RETURN_IF_ERROR(_child->terminate(state)); |
289 | 500 | } |
290 | 7.17k | auto result = state->get_local_state_result(operator_id()); |
291 | 7.17k | if (!result) { |
292 | 0 | return result.error(); |
293 | 0 | } |
294 | 7.17k | return result.value()->terminate(state); |
295 | 7.17k | } |
296 | | |
297 | 4.49M | Status OperatorXBase::close(RuntimeState* state) { |
298 | 4.49M | if (_child && !is_source()) { |
299 | 638k | RETURN_IF_ERROR(_child->close(state)); |
300 | 638k | } |
301 | 4.49M | auto result = state->get_local_state_result(operator_id()); |
302 | 4.49M | if (!result) { |
303 | 0 | return result.error(); |
304 | 0 | } |
305 | 4.49M | return result.value()->close(state); |
306 | 4.49M | } |
307 | | |
308 | 295k | void PipelineXLocalStateBase::clear_origin_block() { |
309 | 295k | _origin_block.clear_column_data(_parent->operator_row_desc_before_projection().num_slots()); |
310 | 295k | } |
311 | | |
312 | 662k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 662k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 662k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 662k | return Status::OK(); |
317 | 662k | } |
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 | 295k | Block* output_block) const { |
326 | 295k | auto* local_state = state->get_local_state(operator_id()); |
327 | 295k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 295k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 295k | const size_t rows = origin_block->rows(); |
330 | 295k | if (rows == 0) { |
331 | 155k | return Status::OK(); |
332 | 155k | } |
333 | 139k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 139k | { |
336 | 139k | Block input_block = *origin_block; |
337 | | |
338 | 139k | ColumnsWithTypeAndName new_columns; |
339 | 139k | 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 | 82.2k | for (int i = 0; i < projections.size(); i++) { |
346 | 77.2k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 77.2k | if (new_columns[i].column->size() != rows) { |
348 | 0 | return Status::InternalError( |
349 | 0 | "intermediate projection result column size {} not equal input rows " |
350 | 0 | "{}, expr: {}", |
351 | 0 | new_columns[i].column->size(), rows, |
352 | 0 | projections[i]->root()->debug_string()); |
353 | 0 | } |
354 | 77.2k | } |
355 | 4.96k | Block tmp_block {new_columns}; |
356 | 4.96k | input_block.swap(tmp_block); |
357 | 4.96k | } |
358 | | |
359 | 139k | 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 | 139k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 139k | output_block, _projection->output_row_descriptor); |
368 | 139k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 139k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 139k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 819k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 679k | ColumnPtr column_ptr; |
374 | 679k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 679k | 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 | 679k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 679k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 679k | if (column_ptr->is_exclusive()) { |
386 | 238k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 441k | } else { |
388 | 441k | shared_columns[i] = std::move(column_ptr); |
389 | 441k | } |
390 | 679k | } |
391 | | |
392 | 139k | scoped_mutable_block.restore(); |
393 | 819k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 680k | if (shared_columns[i]) { |
395 | 441k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 441k | } |
397 | 680k | } |
398 | 139k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 139k | local_state->_parent->operator_row_desc_before_projection().num_slots()); |
402 | 139k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 139k | return Status::OK(); |
405 | 139k | } |
406 | | |
407 | 3.96M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 3.96M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 3.96M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 3.96M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 3.96M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 3.96M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 3.96M | if (_debug_point_count++ % 2 == 0) { |
414 | 3.96M | return Status::OK(); |
415 | 3.96M | } |
416 | 3.96M | } |
417 | 3.96M | }); |
418 | | |
419 | 3.96M | Status status; |
420 | 3.96M | auto* local_state = state->get_local_state(operator_id()); |
421 | 3.96M | Defer defer([&]() { |
422 | 3.96M | if (status.ok()) { |
423 | 3.96M | local_state->update_output_block_counters(*block); |
424 | 3.96M | } |
425 | 3.96M | }); |
426 | 3.96M | if (has_projection()) { |
427 | 295k | local_state->clear_origin_block(); |
428 | 295k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 295k | if (UNLIKELY(!status.ok())) { |
430 | 24 | return status; |
431 | 24 | } |
432 | 295k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 295k | return status; |
434 | 295k | } |
435 | 3.67M | status = get_block(state, block, eos); |
436 | 3.67M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.67M | return status; |
438 | 3.67M | } |
439 | | |
440 | 2.74M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.74M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.87k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.87k | *eos = true; |
444 | 9.87k | } |
445 | | |
446 | 2.74M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.74M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.74M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.74M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.74M | if (op_name == arg_op_name) { |
452 | 2.74M | *eos = true; |
453 | 2.74M | } |
454 | 2.74M | }); |
455 | | |
456 | 2.74M | if (auto rows = block->rows()) { |
457 | 797k | _num_rows_returned += rows; |
458 | 797k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 797k | } |
460 | 2.74M | } |
461 | | |
462 | 30.6k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 30.6k | auto result = state->get_sink_local_state_result(); |
464 | 30.6k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 30.6k | return result.value()->terminate(state); |
468 | 30.6k | } |
469 | | |
470 | 16.8k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 16.8k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 16.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 16.8k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 16.8k | return fmt::to_string(debug_string_buffer); |
476 | 16.8k | } |
477 | | |
478 | 16.8k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 16.8k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 16.8k | } |
481 | | |
482 | 353k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 353k | std::string op_name = "UNKNOWN_SINK"; |
484 | 353k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 353k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 353k | op_name = it->second; |
488 | 353k | } |
489 | 353k | _name = op_name + "_OPERATOR"; |
490 | 353k | return Status::OK(); |
491 | 353k | } |
492 | | |
493 | 308k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 308k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 308k | _nereids_id = tnode.nereids_id; |
496 | 308k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 308k | _name = substr + "_SINK_OPERATOR"; |
498 | 308k | return Status::OK(); |
499 | 308k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.70M | LocalSinkStateInfo& info) { |
504 | 1.70M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.70M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.70M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.70M | return Status::OK(); |
508 | 1.70M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 118k | LocalSinkStateInfo& info) { | 504 | 118k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 118k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 118k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 118k | return Status::OK(); | 508 | 118k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 345k | LocalSinkStateInfo& info) { | 504 | 345k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 345k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 345k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 345k | return Status::OK(); | 508 | 345k | } |
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 | 361 | LocalSinkStateInfo& info) { | 504 | 361 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 361 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 361 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 361 | return Status::OK(); | 508 | 361 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 47.4k | LocalSinkStateInfo& info) { | 504 | 47.4k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 47.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 47.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 47.4k | return Status::OK(); | 508 | 47.4k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_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 | } |
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 | 11.8k | LocalSinkStateInfo& info) { | 504 | 11.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 11.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 11.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 11.8k | return Status::OK(); | 508 | 11.8k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 13 | LocalSinkStateInfo& info) { | 504 | 13 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 13 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 13 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 13 | return Status::OK(); | 508 | 13 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 238k | LocalSinkStateInfo& info) { | 504 | 238k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 238k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 238k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 238k | return Status::OK(); | 508 | 238k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 28 | LocalSinkStateInfo& info) { | 504 | 28 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 28 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 28 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 28 | return Status::OK(); | 508 | 28 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 240k | LocalSinkStateInfo& info) { | 504 | 240k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 240k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 240k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 240k | return Status::OK(); | 508 | 240k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 102k | LocalSinkStateInfo& info) { | 504 | 102k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 102k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 102k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 102k | return Status::OK(); | 508 | 102k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 71.3k | LocalSinkStateInfo& info) { | 504 | 71.3k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 71.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 71.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 71.3k | return Status::OK(); | 508 | 71.3k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 102 | LocalSinkStateInfo& info) { | 504 | 102 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 102 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 102 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 102 | return Status::OK(); | 508 | 102 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 497k | LocalSinkStateInfo& info) { | 504 | 497k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 497k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 497k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 497k | return Status::OK(); | 508 | 497k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 6.45k | LocalSinkStateInfo& info) { | 504 | 6.45k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 6.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 6.45k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 6.45k | return Status::OK(); | 508 | 6.45k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 10.1k | LocalSinkStateInfo& info) { | 504 | 10.1k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 10.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 10.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 10.1k | return Status::OK(); | 508 | 10.1k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.49k | LocalSinkStateInfo& info) { | 504 | 2.49k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.49k | return Status::OK(); | 508 | 2.49k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 325 | LocalSinkStateInfo& info) { | 504 | 325 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 325 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 325 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 325 | return Status::OK(); | 508 | 325 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.77k | LocalSinkStateInfo& info) { | 504 | 4.77k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.77k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.77k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.77k | return Status::OK(); | 508 | 4.77k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.59k | LocalSinkStateInfo& info) { | 504 | 2.59k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.59k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.59k | return Status::OK(); | 508 | 2.59k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.62k | LocalSinkStateInfo& info) { | 504 | 2.62k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.62k | return Status::OK(); | 508 | 2.62k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.54k | LocalSinkStateInfo& info) { | 504 | 2.54k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.54k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.54k | return Status::OK(); | 508 | 2.54k | } |
_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 | 559 | LocalSinkStateInfo& info) { | 504 | 559 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 559 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 559 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 559 | return Status::OK(); | 508 | 559 | } |
_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 | 107 | LocalSinkStateInfo& info) { | 504 | 107 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 107 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 107 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 107 | return Status::OK(); | 508 | 107 | } |
_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.36M | 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.36M | } else { |
519 | 1.36M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.36M | ss->id = operator_id(); |
521 | 1.36M | for (auto& dest : dests_id()) { |
522 | 1.35M | ss->related_op_ids.insert(dest); |
523 | 1.35M | } |
524 | 1.36M | return ss; |
525 | 1.36M | } |
526 | 1.36M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 102k | 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 | 102k | } else { | 519 | 102k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 102k | ss->id = operator_id(); | 521 | 102k | for (auto& dest : dests_id()) { | 522 | 102k | ss->related_op_ids.insert(dest); | 523 | 102k | } | 524 | 102k | return ss; | 525 | 102k | } | 526 | 102k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 346k | 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 | 346k | } else { | 519 | 346k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 346k | ss->id = operator_id(); | 521 | 346k | for (auto& dest : dests_id()) { | 522 | 345k | ss->related_op_ids.insert(dest); | 523 | 345k | } | 524 | 346k | return ss; | 525 | 346k | } | 526 | 346k | } |
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 | 362 | 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 | 362 | } else { | 519 | 362 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 362 | ss->id = operator_id(); | 521 | 362 | for (auto& dest : dests_id()) { | 522 | 362 | ss->related_op_ids.insert(dest); | 523 | 362 | } | 524 | 362 | return ss; | 525 | 362 | } | 526 | 362 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 47.5k | 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 | 47.5k | } else { | 519 | 47.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 47.5k | ss->id = operator_id(); | 521 | 47.5k | for (auto& dest : dests_id()) { | 522 | 47.2k | ss->related_op_ids.insert(dest); | 523 | 47.2k | } | 524 | 47.5k | return ss; | 525 | 47.5k | } | 526 | 47.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 14 | 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 | 14 | } else { | 519 | 14 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 14 | ss->id = operator_id(); | 521 | 14 | for (auto& dest : dests_id()) { | 522 | 14 | ss->related_op_ids.insert(dest); | 523 | 14 | } | 524 | 14 | return ss; | 525 | 14 | } | 526 | 14 | } |
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 | 11.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 | 11.8k | } else { | 519 | 11.8k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 11.8k | ss->id = operator_id(); | 521 | 11.8k | for (auto& dest : dests_id()) { | 522 | 11.8k | ss->related_op_ids.insert(dest); | 523 | 11.8k | } | 524 | 11.8k | return ss; | 525 | 11.8k | } | 526 | 11.8k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 15 | 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 | 15 | } else { | 519 | 15 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 15 | ss->id = operator_id(); | 521 | 15 | for (auto& dest : dests_id()) { | 522 | 14 | ss->related_op_ids.insert(dest); | 523 | 14 | } | 524 | 15 | return ss; | 525 | 15 | } | 526 | 15 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 239k | 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 | 239k | } else { | 519 | 239k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 239k | ss->id = operator_id(); | 521 | 239k | for (auto& dest : dests_id()) { | 522 | 239k | ss->related_op_ids.insert(dest); | 523 | 239k | } | 524 | 239k | return ss; | 525 | 239k | } | 526 | 239k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 30 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 30 | } else { | 519 | 30 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 30 | ss->id = operator_id(); | 521 | 30 | for (auto& dest : dests_id()) { | 522 | 30 | ss->related_op_ids.insert(dest); | 523 | 30 | } | 524 | 30 | return ss; | 525 | 30 | } | 526 | 30 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 102k | 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 | 102k | } else { | 519 | 102k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 102k | ss->id = operator_id(); | 521 | 102k | for (auto& dest : dests_id()) { | 522 | 102k | ss->related_op_ids.insert(dest); | 523 | 102k | } | 524 | 102k | return ss; | 525 | 102k | } | 526 | 102k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 101 | 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 | 101 | } else { | 519 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 101 | ss->id = operator_id(); | 521 | 101 | for (auto& dest : dests_id()) { | 522 | 101 | ss->related_op_ids.insert(dest); | 523 | 101 | } | 524 | 101 | return ss; | 525 | 101 | } | 526 | 101 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 499k | 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 | 499k | } else { | 519 | 499k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 499k | ss->id = operator_id(); | 521 | 499k | for (auto& dest : dests_id()) { | 522 | 497k | ss->related_op_ids.insert(dest); | 523 | 497k | } | 524 | 499k | return ss; | 525 | 499k | } | 526 | 499k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 6.47k | 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.47k | } else { | 519 | 6.47k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 6.47k | ss->id = operator_id(); | 521 | 6.47k | for (auto& dest : dests_id()) { | 522 | 6.46k | ss->related_op_ids.insert(dest); | 523 | 6.46k | } | 524 | 6.47k | return ss; | 525 | 6.47k | } | 526 | 6.47k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 426 | 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 | 426 | } else { | 519 | 426 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 426 | ss->id = operator_id(); | 521 | 427 | for (auto& dest : dests_id()) { | 522 | 427 | ss->related_op_ids.insert(dest); | 523 | 427 | } | 524 | 426 | return ss; | 525 | 426 | } | 526 | 426 | } |
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.64k | ss->related_op_ids.insert(dest); | 523 | 2.64k | } | 524 | 2.64k | return ss; | 525 | 2.64k | } | 526 | 2.64k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.56k | 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.56k | } else { | 519 | 2.56k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.56k | ss->id = operator_id(); | 521 | 2.56k | for (auto& dest : dests_id()) { | 522 | 2.56k | ss->related_op_ids.insert(dest); | 523 | 2.56k | } | 524 | 2.56k | return ss; | 525 | 2.56k | } | 526 | 2.56k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 566 | 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 | 566 | } else { | 519 | 566 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 566 | ss->id = operator_id(); | 521 | 566 | for (auto& dest : dests_id()) { | 522 | 561 | ss->related_op_ids.insert(dest); | 523 | 561 | } | 524 | 566 | return ss; | 525 | 566 | } | 526 | 566 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 107 | 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 | 107 | } else { | 519 | 107 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 107 | ss->id = operator_id(); | 521 | 107 | for (auto& dest : dests_id()) { | 522 | 107 | ss->related_op_ids.insert(dest); | 523 | 107 | } | 524 | 107 | return ss; | 525 | 107 | } | 526 | 107 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 1.95M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 1.95M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 1.95M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 1.95M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 1.95M | return Status::OK(); |
534 | 1.95M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 69.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 69.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 69.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 69.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 69.9k | return Status::OK(); | 534 | 69.9k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 251k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 251k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 251k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 251k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 251k | return Status::OK(); | 534 | 251k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 119 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 119 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 119 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 119 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 119 | return Status::OK(); | 534 | 119 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.23k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.23k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.23k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.23k | return Status::OK(); | 534 | 3.23k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 11.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 11.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 11.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 11.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 11.8k | return Status::OK(); | 534 | 11.8k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.9k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.9k | return Status::OK(); | 534 | 10.9k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 21 | return Status::OK(); | 534 | 21 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 227k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 227k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 227k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 227k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 227k | return Status::OK(); | 534 | 227k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 101k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 101k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 101k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 101k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 101k | return Status::OK(); | 534 | 101k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 71.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 71.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 71.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 71.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 71.5k | return Status::OK(); | 534 | 71.5k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 92 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 92 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 92 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 92 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 92 | return Status::OK(); | 534 | 92 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.07k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.07k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.07k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.07k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.07k | return Status::OK(); | 534 | 5.07k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 243k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 243k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 243k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 243k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 243k | return Status::OK(); | 534 | 243k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.29k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.29k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.29k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.29k | return Status::OK(); | 534 | 1.29k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.45k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.45k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.45k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.45k | return Status::OK(); | 534 | 6.45k | } |
_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.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.54k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.54k | return Status::OK(); | 534 | 1.54k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 55.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 55.8k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 55.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 55.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 55.8k | return Status::OK(); | 534 | 55.8k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 5.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 5.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 5.60k | return Status::OK(); | 534 | 5.60k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 325 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 325 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 325 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 325 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 325 | return Status::OK(); | 534 | 325 | } |
_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.51k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.51k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.51k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.51k | return Status::OK(); | 534 | 2.51k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 461 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 461 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 461 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 461 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 461 | return Status::OK(); | 534 | 461 | } |
_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 | 631k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 631k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 631k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 631k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 631k | return Status::OK(); | 534 | 631k | } |
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.00k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.00k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.00k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.00k | return Status::OK(); | 534 | 1.00k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.86k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.86k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.86k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.86k | return Status::OK(); | 534 | 7.86k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 222k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 222k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 222k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 222k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 222k | return Status::OK(); | 534 | 222k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.70M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 1.94M | : _num_rows_returned(0), |
542 | 1.94M | _rows_returned_counter(nullptr), |
543 | 1.94M | _parent(parent), |
544 | 1.94M | _state(state), |
545 | 1.94M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 1.95M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 1.95M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 1.95M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 1.95M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 1.95M | _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.95M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 1.95M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 1.95M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 1.95M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 1.95M | if constexpr (!is_fake_shared) { |
560 | 1.20M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 714k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 714k | .first.get() |
563 | 714k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 714k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 714k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 714k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 714k | } else if (info.shared_state) { |
569 | 422k | 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 | 422k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 422k | _dependency = _shared_state->create_source_dependency( |
576 | 422k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 422k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 422k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 422k | } else { |
580 | 66.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 6.97k | DCHECK(false); |
582 | 6.97k | } |
583 | 66.3k | } |
584 | 1.20M | } |
585 | | |
586 | 1.95M | 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.95M | _rows_returned_counter = |
591 | 1.95M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 1.95M | _blocks_returned_counter = |
593 | 1.95M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 1.95M | _output_block_bytes_counter = |
595 | 1.95M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 1.95M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 1.95M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 1.95M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 1.95M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 1.95M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 1.95M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 1.95M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 1.95M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 1.95M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 1.95M | _memory_used_counter = |
606 | 1.95M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 1.95M | _common_profile->add_info_string("IsColocate", |
608 | 1.95M | std::to_string(_parent->is_colocated_operator())); |
609 | 1.95M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 1.95M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 1.95M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 1.95M | return Status::OK(); |
613 | 1.95M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 70.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 70.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 70.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 70.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 70.2k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 70.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 70.2k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 70.2k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 70.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 70.2k | if constexpr (!is_fake_shared) { | 560 | 70.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 15.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 15.7k | .first.get() | 563 | 15.7k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 15.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 15.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 15.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 54.4k | } 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 | 53.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 53.6k | _dependency = _shared_state->create_source_dependency( | 576 | 53.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 53.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 53.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 53.6k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 806 | } | 584 | 70.2k | } | 585 | | | 586 | 70.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 70.2k | _rows_returned_counter = | 591 | 70.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 70.2k | _blocks_returned_counter = | 593 | 70.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 70.2k | _output_block_bytes_counter = | 595 | 70.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 70.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 70.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 70.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 70.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 70.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 70.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 70.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 70.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 70.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 70.2k | _memory_used_counter = | 606 | 70.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 70.2k | _common_profile->add_info_string("IsColocate", | 608 | 70.2k | std::to_string(_parent->is_colocated_operator())); | 609 | 70.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 70.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 70.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 70.2k | return Status::OK(); | 613 | 70.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 1 | if constexpr (!is_fake_shared) { | 560 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 1 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 1 | _dependency = _shared_state->create_source_dependency( | 576 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 1 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 1 | } | 585 | | | 586 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 1 | _rows_returned_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 1 | _blocks_returned_counter = | 593 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 1 | _output_block_bytes_counter = | 595 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 1 | _memory_used_counter = | 606 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 1 | _common_profile->add_info_string("IsColocate", | 608 | 1 | std::to_string(_parent->is_colocated_operator())); | 609 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 1 | return Status::OK(); | 613 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 239k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 239k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 239k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 239k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 239k | _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 | 239k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 239k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 239k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 239k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 239k | if constexpr (!is_fake_shared) { | 560 | 239k | 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 | 239k | } 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 | 233k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 233k | _dependency = _shared_state->create_source_dependency( | 576 | 233k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 233k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 233k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 233k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 5.38k | } | 584 | 239k | } | 585 | | | 586 | 239k | 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 | 239k | _rows_returned_counter = | 591 | 239k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 239k | _blocks_returned_counter = | 593 | 239k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 239k | _output_block_bytes_counter = | 595 | 239k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 239k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 239k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 239k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 239k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 239k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 239k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 239k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 239k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 239k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 239k | _memory_used_counter = | 606 | 239k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 239k | _common_profile->add_info_string("IsColocate", | 608 | 239k | std::to_string(_parent->is_colocated_operator())); | 609 | 239k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 239k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 239k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 239k | return Status::OK(); | 613 | 239k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 21 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 21 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 21 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 21 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 21 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 21 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 21 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 21 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 21 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 21 | if constexpr (!is_fake_shared) { | 560 | 21 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 21 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 21 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 21 | _dependency = _shared_state->create_source_dependency( | 576 | 21 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 21 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 21 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 21 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 21 | } | 585 | | | 586 | 21 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 21 | _rows_returned_counter = | 591 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 21 | _blocks_returned_counter = | 593 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 21 | _output_block_bytes_counter = | 595 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 21 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 21 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 21 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 21 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 21 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 21 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 21 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 21 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 21 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 21 | _memory_used_counter = | 606 | 21 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 21 | _common_profile->add_info_string("IsColocate", | 608 | 21 | std::to_string(_parent->is_colocated_operator())); | 609 | 21 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 21 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 21 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 21 | return Status::OK(); | 613 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.46k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.46k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.46k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.46k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.46k | _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.46k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.46k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.46k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.46k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.46k | if constexpr (!is_fake_shared) { | 560 | 6.46k | 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.46k | } 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.42k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.42k | _dependency = _shared_state->create_source_dependency( | 576 | 6.42k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.42k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.42k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.42k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 41 | } | 584 | 6.46k | } | 585 | | | 586 | 6.46k | 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.46k | _rows_returned_counter = | 591 | 6.46k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.46k | _blocks_returned_counter = | 593 | 6.46k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.46k | _output_block_bytes_counter = | 595 | 6.46k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.46k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.46k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.46k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.46k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.46k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.46k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.46k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.46k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.46k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.46k | _memory_used_counter = | 606 | 6.46k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.46k | _common_profile->add_info_string("IsColocate", | 608 | 6.46k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.46k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.46k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.46k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.46k | return Status::OK(); | 613 | 6.46k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 11.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 11.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 11.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 11.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 11.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 | 11.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 11.8k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 11.8k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 11.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 11.8k | if constexpr (!is_fake_shared) { | 560 | 11.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 11.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 | 11.8k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 11.8k | _dependency = _shared_state->create_source_dependency( | 576 | 11.8k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 11.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 11.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 11.8k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 47 | } | 584 | 11.8k | } | 585 | | | 586 | 11.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 | 11.8k | _rows_returned_counter = | 591 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 11.8k | _blocks_returned_counter = | 593 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 11.8k | _output_block_bytes_counter = | 595 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 11.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 11.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 11.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 11.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 11.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 11.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 11.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 11.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 11.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 11.8k | _memory_used_counter = | 606 | 11.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 11.8k | _common_profile->add_info_string("IsColocate", | 608 | 11.8k | std::to_string(_parent->is_colocated_operator())); | 609 | 11.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 11.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 11.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 11.8k | return Status::OK(); | 613 | 11.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 102k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 102k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 102k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 102k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 102k | _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 | 102k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 102k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 102k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 102k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 102k | if constexpr (!is_fake_shared) { | 560 | 102k | 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 | 102k | } 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 | 100k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 100k | _dependency = _shared_state->create_source_dependency( | 576 | 100k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 100k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 100k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 100k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.65k | } | 584 | 102k | } | 585 | | | 586 | 102k | 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 | 102k | _rows_returned_counter = | 591 | 102k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 102k | _blocks_returned_counter = | 593 | 102k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 102k | _output_block_bytes_counter = | 595 | 102k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 102k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 102k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 102k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 102k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 102k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 102k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 102k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 102k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 102k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 102k | _memory_used_counter = | 606 | 102k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 102k | _common_profile->add_info_string("IsColocate", | 608 | 102k | std::to_string(_parent->is_colocated_operator())); | 609 | 102k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 102k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 102k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 102k | return Status::OK(); | 613 | 102k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 71.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 71.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 71.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 71.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 71.5k | _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 | 71.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 71.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 71.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 71.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 71.5k | if constexpr (!is_fake_shared) { | 560 | 71.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 71.6k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 71.6k | .first.get() | 563 | 71.6k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 71.6k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 71.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 71.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 71.5k | } | 585 | | | 586 | 71.5k | 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 | 71.5k | _rows_returned_counter = | 591 | 71.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 71.5k | _blocks_returned_counter = | 593 | 71.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 71.5k | _output_block_bytes_counter = | 595 | 71.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 71.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 71.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 71.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 71.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 71.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 71.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 71.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 71.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 71.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 71.5k | _memory_used_counter = | 606 | 71.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 71.5k | _common_profile->add_info_string("IsColocate", | 608 | 71.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 71.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 71.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 71.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 71.5k | return Status::OK(); | 613 | 71.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 92 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 92 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 92 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 92 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 92 | _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 | 92 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 92 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 92 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 92 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 92 | if constexpr (!is_fake_shared) { | 560 | 92 | 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 | 92 | } 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 | 92 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 92 | _dependency = _shared_state->create_source_dependency( | 576 | 92 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 92 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 92 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 92 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 92 | } | 585 | | | 586 | 92 | 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 | 92 | _rows_returned_counter = | 591 | 92 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 92 | _blocks_returned_counter = | 593 | 92 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 92 | _output_block_bytes_counter = | 595 | 92 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 92 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 92 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 92 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 92 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 92 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 92 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 92 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 92 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 92 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 92 | _memory_used_counter = | 606 | 92 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 92 | _common_profile->add_info_string("IsColocate", | 608 | 92 | std::to_string(_parent->is_colocated_operator())); | 609 | 92 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 92 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 92 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 92 | return Status::OK(); | 613 | 92 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 752k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 752k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 752k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 752k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 752k | _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 | 752k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 752k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 752k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 752k | 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 | 752k | 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 | 752k | _rows_returned_counter = | 591 | 752k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 752k | _blocks_returned_counter = | 593 | 752k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 752k | _output_block_bytes_counter = | 595 | 752k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 752k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 752k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 752k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 752k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 752k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 752k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 752k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 752k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 752k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 752k | _memory_used_counter = | 606 | 752k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 752k | _common_profile->add_info_string("IsColocate", | 608 | 752k | std::to_string(_parent->is_colocated_operator())); | 609 | 752k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 752k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 752k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 752k | return Status::OK(); | 613 | 752k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 55.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 55.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 55.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 55.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 55.7k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 55.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 55.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 55.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 55.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 55.7k | if constexpr (!is_fake_shared) { | 560 | 55.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 55.7k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.48k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.48k | _dependency = _shared_state->create_source_dependency( | 576 | 4.48k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.48k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.48k | _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.7k | } | 585 | | | 586 | 55.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 55.7k | _rows_returned_counter = | 591 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 55.7k | _blocks_returned_counter = | 593 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 55.7k | _output_block_bytes_counter = | 595 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 55.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 55.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 55.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 55.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 55.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 55.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 55.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 55.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 55.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 55.7k | _memory_used_counter = | 606 | 55.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 55.7k | _common_profile->add_info_string("IsColocate", | 608 | 55.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 55.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 55.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 55.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 55.7k | return Status::OK(); | 613 | 55.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 26 | if constexpr (!is_fake_shared) { | 560 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 26 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 26 | _dependency = _shared_state->create_source_dependency( | 576 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 26 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 26 | } | 585 | | | 586 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 26 | _rows_returned_counter = | 591 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 26 | _blocks_returned_counter = | 593 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 26 | _output_block_bytes_counter = | 595 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 26 | _memory_used_counter = | 606 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 26 | _common_profile->add_info_string("IsColocate", | 608 | 26 | std::to_string(_parent->is_colocated_operator())); | 609 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 26 | return Status::OK(); | 613 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.61k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.61k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.61k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.61k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.61k | _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.61k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.61k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.61k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.61k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.61k | if constexpr (!is_fake_shared) { | 560 | 5.61k | 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.61k | } 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.59k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.59k | _dependency = _shared_state->create_source_dependency( | 576 | 5.59k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.59k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.59k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.59k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 17 | } | 584 | 5.61k | } | 585 | | | 586 | 5.61k | 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.61k | _rows_returned_counter = | 591 | 5.61k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.61k | _blocks_returned_counter = | 593 | 5.61k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.61k | _output_block_bytes_counter = | 595 | 5.61k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.61k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.61k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.61k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.61k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.61k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.61k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.61k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.61k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.61k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.61k | _memory_used_counter = | 606 | 5.61k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.61k | _common_profile->add_info_string("IsColocate", | 608 | 5.61k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.61k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.61k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.61k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.61k | return Status::OK(); | 613 | 5.61k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 427 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 427 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 427 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 427 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 427 | _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 | 427 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 427 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 427 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 427 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 427 | if constexpr (!is_fake_shared) { | 560 | 427 | 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 | 428 | } 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 | 428 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 428 | _dependency = _shared_state->create_source_dependency( | 576 | 428 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 428 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 428 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 427 | } | 585 | | | 586 | 427 | 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 | 427 | _rows_returned_counter = | 591 | 427 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 427 | _blocks_returned_counter = | 593 | 427 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 427 | _output_block_bytes_counter = | 595 | 427 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 427 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 427 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 427 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 427 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 427 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 427 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 427 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 427 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 427 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 427 | _memory_used_counter = | 606 | 427 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 427 | _common_profile->add_info_string("IsColocate", | 608 | 427 | std::to_string(_parent->is_colocated_operator())); | 609 | 427 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 427 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 427 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 427 | return Status::OK(); | 613 | 427 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.21k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.21k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.21k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.21k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.21k | _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.21k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.21k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.21k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.21k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.21k | if constexpr (!is_fake_shared) { | 560 | 5.21k | 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.21k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.92k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.92k | _dependency = _shared_state->create_source_dependency( | 576 | 4.92k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.92k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.92k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.92k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 289 | } | 584 | 5.21k | } | 585 | | | 586 | 5.21k | 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.21k | _rows_returned_counter = | 591 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.21k | _blocks_returned_counter = | 593 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.21k | _output_block_bytes_counter = | 595 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.21k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.21k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.21k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.21k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.21k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.21k | _memory_used_counter = | 606 | 5.21k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.21k | _common_profile->add_info_string("IsColocate", | 608 | 5.21k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.21k | return Status::OK(); | 613 | 5.21k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 633k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 633k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 633k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 633k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 633k | _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 | 633k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 633k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 633k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 633k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 633k | if constexpr (!is_fake_shared) { | 560 | 633k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 626k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 626k | .first.get() | 563 | 626k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 626k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 626k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 626k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 626k | } 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 | 6.97k | } else { | 580 | 6.97k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 6.97k | DCHECK(false); | 582 | 6.97k | } | 583 | 6.97k | } | 584 | 633k | } | 585 | | | 586 | 633k | 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 | 633k | _rows_returned_counter = | 591 | 633k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 633k | _blocks_returned_counter = | 593 | 633k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 633k | _output_block_bytes_counter = | 595 | 633k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 633k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 633k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 633k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 633k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 633k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 633k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 633k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 633k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 633k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 633k | _memory_used_counter = | 606 | 633k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 633k | _common_profile->add_info_string("IsColocate", | 608 | 633k | std::to_string(_parent->is_colocated_operator())); | 609 | 633k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 633k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 633k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 633k | return Status::OK(); | 613 | 633k | } |
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 | 1.96M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 1.96M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.27M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 310k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 310k | } |
621 | 1.96M | if (_parent->has_projection()) { |
622 | 395k | const auto& projection = *_parent->_projection; |
623 | 395k | _projections.resize(projection.projections.size()); |
624 | 2.44M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 2.04M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 2.04M | } |
627 | 395k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 414k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 18.9k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 241k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 222k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 222k | state, _intermediate_projections[i][j])); |
633 | 222k | } |
634 | 18.9k | } |
635 | 395k | } |
636 | 1.96M | return Status::OK(); |
637 | 1.96M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 70.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 70.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 71.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.44k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.44k | } | 621 | 70.4k | if (_parent->has_projection()) { | 622 | 70.4k | const auto& projection = *_parent->_projection; | 623 | 70.4k | _projections.resize(projection.projections.size()); | 624 | 371k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 301k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 301k | } | 627 | 70.4k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 78.5k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 8.12k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 175k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 167k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 167k | state, _intermediate_projections[i][j])); | 633 | 167k | } | 634 | 8.12k | } | 635 | 70.4k | } | 636 | 70.4k | return Status::OK(); | 637 | 70.4k | } |
_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 | 240k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 240k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 240k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 240k | 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 | 240k | return Status::OK(); | 637 | 240k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 21 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 21 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 21 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 21 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 21 | return Status::OK(); | 637 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.47k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.47k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.56k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 87 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 87 | } | 621 | 6.47k | if (_parent->has_projection()) { | 622 | 6.47k | const auto& projection = *_parent->_projection; | 623 | 6.47k | _projections.resize(projection.projections.size()); | 624 | 28.1k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 21.6k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 21.6k | } | 627 | 6.47k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.51k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 35 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 274 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 239 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 239 | state, _intermediate_projections[i][j])); | 633 | 239 | } | 634 | 35 | } | 635 | 6.47k | } | 636 | 6.47k | return Status::OK(); | 637 | 6.47k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 11.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 11.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 12.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 754 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 754 | } | 621 | 11.8k | if (_parent->has_projection()) { | 622 | 6.54k | const auto& projection = *_parent->_projection; | 623 | 6.54k | _projections.resize(projection.projections.size()); | 624 | 26.6k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 20.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 20.0k | } | 627 | 6.54k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 6.62k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 85 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 634 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 549 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 549 | state, _intermediate_projections[i][j])); | 633 | 549 | } | 634 | 85 | } | 635 | 6.54k | } | 636 | 11.8k | return Status::OK(); | 637 | 11.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 102k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 102k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 104k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.63k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.63k | } | 621 | 102k | if (_parent->has_projection()) { | 622 | 32.8k | const auto& projection = *_parent->_projection; | 623 | 32.8k | _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.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 33.6k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 753 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 4.77k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 4.02k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 4.02k | state, _intermediate_projections[i][j])); | 633 | 4.02k | } | 634 | 753 | } | 635 | 32.8k | } | 636 | 102k | return Status::OK(); | 637 | 102k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 71.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 71.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 71.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 25 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 25 | } | 621 | 71.6k | if (_parent->has_projection()) { | 622 | 240 | const auto& projection = *_parent->_projection; | 623 | 240 | _projections.resize(projection.projections.size()); | 624 | 911 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 671 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 671 | } | 627 | 240 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 241 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 1 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 3 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2 | state, _intermediate_projections[i][j])); | 633 | 2 | } | 634 | 1 | } | 635 | 240 | } | 636 | 71.6k | return Status::OK(); | 637 | 71.6k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 96 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 96 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 96 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 96 | if (_parent->has_projection()) { | 622 | 80 | const auto& projection = *_parent->_projection; | 623 | 80 | _projections.resize(projection.projections.size()); | 624 | 240 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 160 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 160 | } | 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 | 96 | return Status::OK(); | 637 | 96 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 756k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 756k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.06M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 305k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 305k | } | 621 | 756k | if (_parent->has_projection()) { | 622 | 266k | const auto& projection = *_parent->_projection; | 623 | 266k | _projections.resize(projection.projections.size()); | 624 | 1.60M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.34M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.34M | } | 627 | 266k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 276k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 9.77k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 57.6k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 47.8k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 47.8k | state, _intermediate_projections[i][j])); | 633 | 47.8k | } | 634 | 9.77k | } | 635 | 266k | } | 636 | 756k | return Status::OK(); | 637 | 756k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 56.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 56.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 56.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 56.0k | if (_parent->has_projection()) { | 622 | 11.8k | const auto& projection = *_parent->_projection; | 623 | 11.8k | _projections.resize(projection.projections.size()); | 624 | 114k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 102k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 102k | } | 627 | 11.8k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 12.0k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 174 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 3.32k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 3.15k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 3.15k | state, _intermediate_projections[i][j])); | 633 | 3.15k | } | 634 | 174 | } | 635 | 11.8k | } | 636 | 56.0k | return Status::OK(); | 637 | 56.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.60k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.60k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 6.19k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 585 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 585 | } | 621 | 5.60k | 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.60k | return Status::OK(); | 637 | 5.60k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 428 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 428 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 428 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 428 | 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 | 428 | return Status::OK(); | 637 | 428 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.28k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.28k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.28k | 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.28k | if (_parent->has_projection()) { | 622 | 59 | const auto& projection = *_parent->_projection; | 623 | 59 | _projections.resize(projection.projections.size()); | 624 | 226 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 167 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 167 | } | 627 | 59 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 59 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 59 | } | 636 | 5.28k | return Status::OK(); | 637 | 5.28k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 637k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 637k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 637k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 637k | 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 | 637k | return Status::OK(); | 637 | 637k | } |
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.17k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.17k | if (_terminated) { |
642 | 1 | return Status::OK(); |
643 | 1 | } |
644 | 7.17k | _terminated = true; |
645 | 7.17k | return Status::OK(); |
646 | 7.17k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 339 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 339 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 339 | _terminated = true; | 645 | 339 | return Status::OK(); | 646 | 339 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 31 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 31 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 31 | _terminated = true; | 645 | 31 | return Status::OK(); | 646 | 31 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 20 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 20 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 20 | _terminated = true; | 645 | 20 | return Status::OK(); | 646 | 20 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 140 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 140 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 140 | _terminated = true; | 645 | 140 | return Status::OK(); | 646 | 140 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.57k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.57k | if (_terminated) { | 642 | 1 | return Status::OK(); | 643 | 1 | } | 644 | 5.56k | _terminated = true; | 645 | 5.56k | return Status::OK(); | 646 | 5.57k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 34 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 34 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 34 | _terminated = true; | 645 | 34 | return Status::OK(); | 646 | 34 | } |
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 | 203 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 203 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 203 | _terminated = true; | 645 | 203 | return Status::OK(); | 646 | 203 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 796 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 796 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 796 | _terminated = true; | 645 | 796 | return Status::OK(); | 646 | 796 | } |
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.23M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.23M | if (_closed) { |
651 | 272k | return Status::OK(); |
652 | 272k | } |
653 | 1.96M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.20M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.20M | } |
656 | 1.96M | _closed = true; |
657 | 1.96M | return Status::OK(); |
658 | 2.23M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 70.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 70.3k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 70.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 70.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 70.3k | } | 656 | 70.3k | _closed = true; | 657 | 70.3k | return Status::OK(); | 658 | 70.3k | } |
_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 | 475k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 475k | if (_closed) { | 651 | 239k | return Status::OK(); | 652 | 239k | } | 653 | 236k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 236k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 236k | } | 656 | 236k | _closed = true; | 657 | 236k | return Status::OK(); | 658 | 475k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 21 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 21 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 21 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 21 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 21 | } | 656 | 21 | _closed = true; | 657 | 21 | return Status::OK(); | 658 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.46k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.46k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.46k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.46k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.46k | } | 656 | 6.46k | _closed = true; | 657 | 6.46k | return Status::OK(); | 658 | 6.46k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 23.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 23.8k | if (_closed) { | 651 | 12.0k | return Status::OK(); | 652 | 12.0k | } | 653 | 11.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 11.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 11.8k | } | 656 | 11.8k | _closed = true; | 657 | 11.8k | return Status::OK(); | 658 | 23.8k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 102k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 102k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 102k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 102k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 102k | } | 656 | 102k | _closed = true; | 657 | 102k | return Status::OK(); | 658 | 102k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 71.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 71.3k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 71.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 71.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 71.3k | } | 656 | 71.3k | _closed = true; | 657 | 71.3k | return Status::OK(); | 658 | 71.3k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 91 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 91 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 91 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 91 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 91 | } | 656 | 91 | _closed = true; | 657 | 91 | return Status::OK(); | 658 | 91 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 772k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 772k | if (_closed) { | 651 | 15.4k | return Status::OK(); | 652 | 15.4k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 756k | _closed = true; | 657 | 756k | return Status::OK(); | 658 | 772k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 56.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 56.0k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 56.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 56.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 56.0k | } | 656 | 56.0k | _closed = true; | 657 | 56.0k | return Status::OK(); | 658 | 56.0k | } |
_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.58k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 5.58k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 5.58k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.58k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.58k | } | 656 | 5.58k | _closed = true; | 657 | 5.58k | return Status::OK(); | 658 | 5.58k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 649 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 649 | if (_closed) { | 651 | 325 | return Status::OK(); | 652 | 325 | } | 653 | 324 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 324 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 324 | } | 656 | 324 | _closed = true; | 657 | 324 | return Status::OK(); | 658 | 649 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.8k | if (_closed) { | 651 | 5.59k | return Status::OK(); | 652 | 5.59k | } | 653 | 5.27k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.27k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.27k | } | 656 | 5.27k | _closed = true; | 657 | 5.27k | return Status::OK(); | 658 | 10.8k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 638k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 638k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 638k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 638k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 638k | } | 656 | 638k | _closed = true; | 657 | 638k | return Status::OK(); | 658 | 638k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 338 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 338 | if (_closed) { | 651 | 178 | return Status::OK(); | 652 | 178 | } | 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 | 338 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.71M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.71M | _operator_profile = |
664 | 1.71M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.71M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.71M | _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.71M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.71M | _operator_profile->add_child(_common_profile, true); |
673 | 1.71M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.71M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.71M | _wait_for_finish_dependency_timer = |
677 | 1.71M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.71M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.71M | if constexpr (!is_fake_shared) { |
680 | 1.21M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.21M | info.shared_state_map.end()) { |
682 | 328k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 240k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 240k | } |
685 | 328k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 328k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 328k | ? 0 |
688 | 328k | : info.task_idx] |
689 | 328k | .get(); |
690 | 328k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 883k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 883k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 883k | _dependency = _shared_state->create_sink_dependency( |
697 | 883k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 883k | } |
699 | 1.21M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.21M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.21M | } |
702 | | |
703 | 1.71M | 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.71M | _rows_input_counter = |
708 | 1.71M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.71M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.71M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.71M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.71M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.71M | _memory_used_counter = |
714 | 1.71M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.71M | _common_profile->add_info_string("IsColocate", |
716 | 1.71M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.71M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.71M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.71M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.71M | return Status::OK(); |
721 | 1.71M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 118k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 118k | _operator_profile = | 664 | 118k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 118k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 118k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 118k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 118k | _operator_profile->add_child(_common_profile, true); | 673 | 118k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 118k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 118k | _wait_for_finish_dependency_timer = | 677 | 118k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 118k | if constexpr (!is_fake_shared) { | 680 | 118k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 118k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 16.1k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 16.1k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 16.1k | ? 0 | 688 | 16.1k | : info.task_idx] | 689 | 16.1k | .get(); | 690 | 16.1k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 102k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 102k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 102k | _dependency = _shared_state->create_sink_dependency( | 697 | 102k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 102k | } | 699 | 118k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 118k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 118k | } | 702 | | | 703 | 118k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 118k | _rows_input_counter = | 708 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 118k | _memory_used_counter = | 714 | 118k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 118k | _common_profile->add_info_string("IsColocate", | 716 | 118k | std::to_string(_parent->is_colocated_operator())); | 717 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 118k | return Status::OK(); | 721 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 239k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 239k | _operator_profile = | 664 | 239k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 239k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 239k | _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 | 239k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 239k | _operator_profile->add_child(_common_profile, true); | 673 | 239k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 239k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 239k | _wait_for_finish_dependency_timer = | 677 | 239k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 239k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 239k | if constexpr (!is_fake_shared) { | 680 | 239k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 239k | 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 | 239k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 239k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 239k | _dependency = _shared_state->create_sink_dependency( | 697 | 239k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 239k | } | 699 | 239k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 239k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 239k | } | 702 | | | 703 | 239k | 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 | 239k | _rows_input_counter = | 708 | 239k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 239k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 239k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 239k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 239k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 239k | _memory_used_counter = | 714 | 239k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 239k | _common_profile->add_info_string("IsColocate", | 716 | 239k | std::to_string(_parent->is_colocated_operator())); | 717 | 239k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 239k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 239k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 239k | return Status::OK(); | 721 | 239k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 28 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 28 | _operator_profile = | 664 | 28 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 28 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 28 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 28 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 28 | _operator_profile->add_child(_common_profile, true); | 673 | 28 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 28 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 28 | _wait_for_finish_dependency_timer = | 677 | 28 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 28 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 28 | if constexpr (!is_fake_shared) { | 680 | 28 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 28 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 28 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 28 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 28 | _dependency = _shared_state->create_sink_dependency( | 697 | 28 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 28 | } | 699 | 28 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 28 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 28 | } | 702 | | | 703 | 28 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 28 | _rows_input_counter = | 708 | 28 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 28 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 28 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 28 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 28 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 28 | _memory_used_counter = | 714 | 28 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 28 | _common_profile->add_info_string("IsColocate", | 716 | 28 | std::to_string(_parent->is_colocated_operator())); | 717 | 28 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 28 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 28 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 28 | return Status::OK(); | 721 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 6.47k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 6.47k | _operator_profile = | 664 | 6.47k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 6.47k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 6.47k | _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.47k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 6.47k | _operator_profile->add_child(_common_profile, true); | 673 | 6.47k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 6.47k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 6.47k | _wait_for_finish_dependency_timer = | 677 | 6.47k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 6.47k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 6.47k | if constexpr (!is_fake_shared) { | 680 | 6.47k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 6.47k | 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.47k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6.47k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6.47k | _dependency = _shared_state->create_sink_dependency( | 697 | 6.47k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6.47k | } | 699 | 6.47k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 6.47k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 6.47k | } | 702 | | | 703 | 6.47k | 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.47k | _rows_input_counter = | 708 | 6.47k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 6.47k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 6.47k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 6.47k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 6.47k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 6.47k | _memory_used_counter = | 714 | 6.47k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 6.47k | _common_profile->add_info_string("IsColocate", | 716 | 6.47k | std::to_string(_parent->is_colocated_operator())); | 717 | 6.47k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 6.47k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 6.47k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 6.47k | return Status::OK(); | 721 | 6.47k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 11.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 11.8k | _operator_profile = | 664 | 11.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 11.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 11.8k | _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 | 11.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 11.8k | _operator_profile->add_child(_common_profile, true); | 673 | 11.8k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 11.8k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 11.8k | _wait_for_finish_dependency_timer = | 677 | 11.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 11.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 11.8k | if constexpr (!is_fake_shared) { | 680 | 11.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 11.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 | 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 | 11.8k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 11.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 11.8k | _dependency = _shared_state->create_sink_dependency( | 697 | 11.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 11.8k | } | 699 | 11.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 11.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 11.8k | } | 702 | | | 703 | 11.8k | 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 | 11.8k | _rows_input_counter = | 708 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 11.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 11.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 11.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 11.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 11.8k | _memory_used_counter = | 714 | 11.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 11.8k | _common_profile->add_info_string("IsColocate", | 716 | 11.8k | std::to_string(_parent->is_colocated_operator())); | 717 | 11.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 11.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 11.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 11.8k | return Status::OK(); | 721 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 102k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 102k | _operator_profile = | 664 | 102k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 102k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 102k | _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 | 102k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 102k | _operator_profile->add_child(_common_profile, true); | 673 | 102k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 102k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 102k | _wait_for_finish_dependency_timer = | 677 | 102k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 102k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 102k | if constexpr (!is_fake_shared) { | 680 | 102k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 102k | 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 | 102k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 102k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 102k | _dependency = _shared_state->create_sink_dependency( | 697 | 102k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 102k | } | 699 | 102k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 102k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 102k | } | 702 | | | 703 | 102k | 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 | 102k | _rows_input_counter = | 708 | 102k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 102k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 102k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 102k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 102k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 102k | _memory_used_counter = | 714 | 102k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 102k | _common_profile->add_info_string("IsColocate", | 716 | 102k | std::to_string(_parent->is_colocated_operator())); | 717 | 102k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 102k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 102k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 102k | return Status::OK(); | 721 | 102k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 71.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 71.5k | _operator_profile = | 664 | 71.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 71.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 71.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 | 71.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 71.5k | _operator_profile->add_child(_common_profile, true); | 673 | 71.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 71.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 71.5k | _wait_for_finish_dependency_timer = | 677 | 71.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 71.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 71.5k | if constexpr (!is_fake_shared) { | 680 | 71.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 71.6k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 71.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 71.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 71.6k | ? 0 | 688 | 71.6k | : info.task_idx] | 689 | 71.6k | .get(); | 690 | 71.6k | _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 | 71.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 71.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 71.5k | } | 702 | | | 703 | 71.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 | 71.5k | _rows_input_counter = | 708 | 71.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 71.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 71.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 71.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 71.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 71.5k | _memory_used_counter = | 714 | 71.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 71.5k | _common_profile->add_info_string("IsColocate", | 716 | 71.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 71.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 71.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 71.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 71.5k | return Status::OK(); | 721 | 71.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 102 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 102 | _operator_profile = | 664 | 102 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 102 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 102 | _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 | 102 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 102 | _operator_profile->add_child(_common_profile, true); | 673 | 102 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 102 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 102 | _wait_for_finish_dependency_timer = | 677 | 102 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 102 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 102 | if constexpr (!is_fake_shared) { | 680 | 102 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 102 | 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 | 102 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 102 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 102 | _dependency = _shared_state->create_sink_dependency( | 697 | 102 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 102 | } | 699 | 102 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 102 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 102 | } | 702 | | | 703 | 102 | 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 | 102 | _rows_input_counter = | 708 | 102 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 102 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 102 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 102 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 102 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 102 | _memory_used_counter = | 714 | 102 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 102 | _common_profile->add_info_string("IsColocate", | 716 | 102 | std::to_string(_parent->is_colocated_operator())); | 717 | 102 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 102 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 102 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 102 | return Status::OK(); | 721 | 102 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 499k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 499k | _operator_profile = | 664 | 499k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 499k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 499k | _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 | 499k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 499k | _operator_profile->add_child(_common_profile, true); | 673 | 499k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 499k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 499k | _wait_for_finish_dependency_timer = | 677 | 499k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 499k | 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 | 499k | 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 | 499k | _rows_input_counter = | 708 | 499k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 499k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 499k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 499k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 499k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 499k | _memory_used_counter = | 714 | 499k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 499k | _common_profile->add_info_string("IsColocate", | 716 | 499k | std::to_string(_parent->is_colocated_operator())); | 717 | 499k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 499k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 499k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 499k | return Status::OK(); | 721 | 499k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 10.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 10.1k | _operator_profile = | 664 | 10.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 10.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 10.1k | _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 | 10.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 10.1k | _operator_profile->add_child(_common_profile, true); | 673 | 10.1k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 10.1k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 10.1k | _wait_for_finish_dependency_timer = | 677 | 10.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 10.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 10.1k | if constexpr (!is_fake_shared) { | 680 | 10.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 10.1k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 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 | 10.1k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 10.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 10.1k | _dependency = _shared_state->create_sink_dependency( | 697 | 10.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 10.1k | } | 699 | 10.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 10.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 10.1k | } | 702 | | | 703 | 10.1k | 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 | 10.1k | _rows_input_counter = | 708 | 10.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 10.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 10.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 10.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 10.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 10.1k | _memory_used_counter = | 714 | 10.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 10.1k | _common_profile->add_info_string("IsColocate", | 716 | 10.1k | std::to_string(_parent->is_colocated_operator())); | 717 | 10.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 10.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 10.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 10.1k | return Status::OK(); | 721 | 10.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 428 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 428 | _operator_profile = | 664 | 428 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 428 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 428 | _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 | 428 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 428 | _operator_profile->add_child(_common_profile, true); | 673 | 428 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 428 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 428 | _wait_for_finish_dependency_timer = | 677 | 428 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 428 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 428 | if constexpr (!is_fake_shared) { | 680 | 428 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 428 | 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 | 428 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 428 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 428 | _dependency = _shared_state->create_sink_dependency( | 697 | 428 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 428 | } | 699 | 428 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 428 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 428 | } | 702 | | | 703 | 428 | 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 | 428 | _rows_input_counter = | 708 | 428 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 428 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 428 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 428 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 428 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 428 | _memory_used_counter = | 714 | 428 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 428 | _common_profile->add_info_string("IsColocate", | 716 | 428 | std::to_string(_parent->is_colocated_operator())); | 717 | 428 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 428 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 428 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 428 | return Status::OK(); | 721 | 428 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.50k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.50k | _operator_profile = | 664 | 2.50k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.50k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.50k | _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.50k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.50k | _operator_profile->add_child(_common_profile, true); | 673 | 2.50k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.50k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.50k | _wait_for_finish_dependency_timer = | 677 | 2.50k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.50k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.50k | if constexpr (!is_fake_shared) { | 680 | 2.50k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.50k | 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.50k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.50k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.50k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.50k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.50k | } | 699 | 2.50k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.50k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.50k | } | 702 | | | 703 | 2.50k | 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.50k | _rows_input_counter = | 708 | 2.50k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.50k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.50k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.50k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.50k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.50k | _memory_used_counter = | 714 | 2.50k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.50k | _common_profile->add_info_string("IsColocate", | 716 | 2.50k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.50k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.50k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.50k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.50k | return Status::OK(); | 721 | 2.50k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.6k | _operator_profile = | 664 | 12.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.6k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.6k | _operator_profile->add_child(_common_profile, true); | 673 | 12.6k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.6k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.6k | _wait_for_finish_dependency_timer = | 677 | 12.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.6k | if constexpr (!is_fake_shared) { | 680 | 12.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.6k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.6k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.6k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.6k | } | 699 | 12.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.6k | } | 702 | | | 703 | 12.6k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.6k | _rows_input_counter = | 708 | 12.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.6k | _memory_used_counter = | 714 | 12.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.6k | _common_profile->add_info_string("IsColocate", | 716 | 12.6k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.6k | return Status::OK(); | 721 | 12.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 240k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 240k | _operator_profile = | 664 | 240k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 240k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 240k | _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 | 240k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 240k | _operator_profile->add_child(_common_profile, true); | 673 | 240k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 240k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 240k | _wait_for_finish_dependency_timer = | 677 | 240k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 240k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 240k | if constexpr (!is_fake_shared) { | 680 | 240k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 240k | info.shared_state_map.end()) { | 682 | 240k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 240k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 240k | } | 685 | 240k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 240k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 240k | ? 0 | 688 | 240k | : info.task_idx] | 689 | 240k | .get(); | 690 | 240k | _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 | 240k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 240k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 240k | } | 702 | | | 703 | 240k | 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 | 240k | _rows_input_counter = | 708 | 240k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 240k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 240k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 240k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 240k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 240k | _memory_used_counter = | 714 | 240k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 240k | _common_profile->add_info_string("IsColocate", | 716 | 240k | std::to_string(_parent->is_colocated_operator())); | 717 | 240k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 240k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 240k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 240k | return Status::OK(); | 721 | 240k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 394k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 394k | _operator_profile = | 664 | 394k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 394k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 394k | _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 | 394k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 394k | _operator_profile->add_child(_common_profile, true); | 673 | 394k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 394k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 394k | _wait_for_finish_dependency_timer = | 677 | 394k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 394k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 394k | if constexpr (!is_fake_shared) { | 680 | 394k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 394k | 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 | 394k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 394k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 394k | _dependency = _shared_state->create_sink_dependency( | 697 | 394k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 394k | } | 699 | 394k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 394k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 394k | } | 702 | | | 703 | 394k | 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 | 394k | _rows_input_counter = | 708 | 394k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 394k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 394k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 394k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 394k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 394k | _memory_used_counter = | 714 | 394k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 394k | _common_profile->add_info_string("IsColocate", | 716 | 394k | std::to_string(_parent->is_colocated_operator())); | 717 | 394k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 394k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 394k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 394k | return Status::OK(); | 721 | 394k | } |
_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.71M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.71M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.71M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.21M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.21M | } |
731 | 1.71M | _closed = true; |
732 | 1.71M | return Status::OK(); |
733 | 1.71M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 118k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 118k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 118k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 118k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 118k | } | 731 | 118k | _closed = true; | 732 | 118k | return Status::OK(); | 733 | 118k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 238k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 238k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 238k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 238k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 238k | } | 731 | 238k | _closed = true; | 732 | 238k | return Status::OK(); | 733 | 238k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 19 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 19 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 17 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 17 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 17 | } | 731 | 17 | _closed = true; | 732 | 17 | return Status::OK(); | 733 | 19 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 6.45k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 6.45k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 6.45k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 6.45k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 6.45k | } | 731 | 6.45k | _closed = true; | 732 | 6.45k | return Status::OK(); | 733 | 6.45k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 11.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 11.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 11.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 11.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 11.7k | } | 731 | 11.7k | _closed = true; | 732 | 11.7k | return Status::OK(); | 733 | 11.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 102k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 102k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 102k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 102k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 102k | } | 731 | 102k | _closed = true; | 732 | 102k | return Status::OK(); | 733 | 102k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 71.3k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 71.3k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 71.3k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 71.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 71.3k | } | 731 | 71.3k | _closed = true; | 732 | 71.3k | return Status::OK(); | 733 | 71.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 91 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 91 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 91 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 91 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 91 | } | 731 | 91 | _closed = true; | 732 | 91 | return Status::OK(); | 733 | 91 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 502k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 502k | 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 | 502k | _closed = true; | 732 | 502k | return Status::OK(); | 733 | 502k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 10.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 10.1k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 10.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 10.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 10.1k | } | 731 | 10.1k | _closed = true; | 732 | 10.1k | return Status::OK(); | 733 | 10.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 326 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 326 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 326 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 326 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 326 | } | 731 | 326 | _closed = true; | 732 | 326 | return Status::OK(); | 733 | 326 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.50k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.50k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.50k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.50k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.50k | } | 731 | 2.50k | _closed = true; | 732 | 2.50k | return Status::OK(); | 733 | 2.50k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.7k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.7k | } | 731 | 12.7k | _closed = true; | 732 | 12.7k | return Status::OK(); | 733 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 241k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 241k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 241k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 241k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 241k | } | 731 | 241k | _closed = true; | 732 | 241k | return Status::OK(); | 733 | 241k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 395k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 395k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 395k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 395k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 395k | } | 731 | 395k | _closed = true; | 732 | 395k | return Status::OK(); | 733 | 395k | } |
_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 | 7.11k | bool* eos) { |
738 | 7.11k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 7.11k | return pull(state, block, eos); |
740 | 7.11k | } _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 | 7.08k | bool* eos) { | 738 | 7.08k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 7.07k | return pull(state, block, eos); | 740 | 7.08k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 476k | bool* eos) { |
745 | 476k | auto& local_state = get_local_state(state); |
746 | 476k | if (need_more_input_data(state)) { |
747 | 444k | local_state._child_block->clear_column_data( |
748 | 444k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 444k | .num_slots()); |
750 | 444k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 444k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 444k | *eos = local_state._child_eos; |
753 | 444k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 76.8k | return Status::OK(); |
755 | 76.8k | } |
756 | 368k | { |
757 | 368k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 368k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 368k | } |
760 | 368k | } |
761 | | |
762 | 399k | if (!need_more_input_data(state)) { |
763 | 374k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 374k | bool new_eos = false; |
765 | 374k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 374k | if (new_eos) { |
767 | 290k | *eos = true; |
768 | 290k | } else if (!need_more_input_data(state)) { |
769 | 24.4k | *eos = false; |
770 | 24.4k | } |
771 | 374k | } |
772 | 399k | return Status::OK(); |
773 | 399k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 146k | bool* eos) { | 745 | 146k | auto& local_state = get_local_state(state); | 746 | 146k | if (need_more_input_data(state)) { | 747 | 126k | local_state._child_block->clear_column_data( | 748 | 126k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 126k | .num_slots()); | 750 | 126k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 126k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 126k | *eos = local_state._child_eos; | 753 | 126k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 35.2k | return Status::OK(); | 755 | 35.2k | } | 756 | 91.4k | { | 757 | 91.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 91.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 91.4k | } | 760 | 91.4k | } | 761 | | | 762 | 110k | if (!need_more_input_data(state)) { | 763 | 110k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 110k | bool new_eos = false; | 765 | 110k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 110k | if (new_eos) { | 767 | 46.0k | *eos = true; | 768 | 64.7k | } else if (!need_more_input_data(state)) { | 769 | 11.7k | *eos = false; | 770 | 11.7k | } | 771 | 110k | } | 772 | 110k | return Status::OK(); | 773 | 110k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.25k | bool* eos) { | 745 | 4.25k | auto& local_state = get_local_state(state); | 746 | 4.25k | if (need_more_input_data(state)) { | 747 | 2.28k | local_state._child_block->clear_column_data( | 748 | 2.28k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.28k | .num_slots()); | 750 | 2.28k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.28k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.28k | *eos = local_state._child_eos; | 753 | 2.28k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 401 | return Status::OK(); | 755 | 401 | } | 756 | 1.88k | { | 757 | 1.88k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.88k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.88k | } | 760 | 1.88k | } | 761 | | | 762 | 3.86k | if (!need_more_input_data(state)) { | 763 | 3.86k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.86k | bool new_eos = false; | 765 | 3.86k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.86k | if (new_eos) { | 767 | 1.31k | *eos = true; | 768 | 2.55k | } else if (!need_more_input_data(state)) { | 769 | 1.96k | *eos = false; | 770 | 1.96k | } | 771 | 3.86k | } | 772 | 3.85k | return Status::OK(); | 773 | 3.85k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.93k | bool* eos) { | 745 | 1.93k | auto& local_state = get_local_state(state); | 746 | 1.93k | if (need_more_input_data(state)) { | 747 | 1.93k | local_state._child_block->clear_column_data( | 748 | 1.93k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.93k | .num_slots()); | 750 | 1.93k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.93k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.93k | *eos = local_state._child_eos; | 753 | 1.93k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 777 | return Status::OK(); | 755 | 777 | } | 756 | 1.15k | { | 757 | 1.15k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.15k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.15k | } | 760 | 1.15k | } | 761 | | | 762 | 1.15k | if (!need_more_input_data(state)) { | 763 | 1.15k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.15k | bool new_eos = false; | 765 | 1.15k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.15k | if (new_eos) { | 767 | 797 | *eos = true; | 768 | 797 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.15k | } | 772 | 1.15k | return Status::OK(); | 773 | 1.15k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 19.8k | bool* eos) { | 745 | 19.8k | auto& local_state = get_local_state(state); | 746 | 19.9k | if (need_more_input_data(state)) { | 747 | 19.9k | local_state._child_block->clear_column_data( | 748 | 19.9k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 19.9k | .num_slots()); | 750 | 19.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 19.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 19.9k | *eos = local_state._child_eos; | 753 | 19.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 4.74k | return Status::OK(); | 755 | 4.74k | } | 756 | 15.1k | { | 757 | 15.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 15.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 15.1k | } | 760 | 15.1k | } | 761 | | | 762 | 15.1k | if (!need_more_input_data(state)) { | 763 | 7.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.90k | bool new_eos = false; | 765 | 7.90k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.90k | if (new_eos) { | 767 | 7.81k | *eos = true; | 768 | 7.81k | } else if (!need_more_input_data(state)) { | 769 | 5 | *eos = false; | 770 | 5 | } | 771 | 7.90k | } | 772 | 15.1k | return Status::OK(); | 773 | 15.1k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 274k | bool* eos) { | 745 | 274k | auto& local_state = get_local_state(state); | 746 | 274k | if (need_more_input_data(state)) { | 747 | 274k | local_state._child_block->clear_column_data( | 748 | 274k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 274k | .num_slots()); | 750 | 274k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 274k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 274k | *eos = local_state._child_eos; | 753 | 274k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 34.2k | return Status::OK(); | 755 | 34.2k | } | 756 | 240k | { | 757 | 240k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 240k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 240k | } | 760 | 240k | } | 761 | | | 762 | 240k | if (!need_more_input_data(state)) { | 763 | 223k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 223k | bool new_eos = false; | 765 | 223k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 223k | if (new_eos) { | 767 | 223k | *eos = true; | 768 | 223k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 223k | } | 772 | 240k | return Status::OK(); | 773 | 240k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 21.8k | bool* eos) { | 745 | 21.8k | auto& local_state = get_local_state(state); | 746 | 21.8k | if (need_more_input_data(state)) { | 747 | 11.5k | local_state._child_block->clear_column_data( | 748 | 11.5k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 11.5k | .num_slots()); | 750 | 11.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 11.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 11.5k | *eos = local_state._child_eos; | 753 | 11.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 652 | return Status::OK(); | 755 | 652 | } | 756 | 10.8k | { | 757 | 10.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 10.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 10.8k | } | 760 | 10.8k | } | 761 | | | 762 | 21.1k | if (!need_more_input_data(state)) { | 763 | 20.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 20.5k | bool new_eos = false; | 765 | 20.5k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 20.5k | if (new_eos) { | 767 | 6.41k | *eos = true; | 768 | 14.1k | } else if (!need_more_input_data(state)) { | 769 | 10.3k | *eos = false; | 770 | 10.3k | } | 771 | 20.5k | } | 772 | 21.1k | return Status::OK(); | 773 | 21.1k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 7.96k | bool* eos) { | 745 | 7.96k | auto& local_state = get_local_state(state); | 746 | 7.96k | if (need_more_input_data(state)) { | 747 | 7.60k | local_state._child_block->clear_column_data( | 748 | 7.60k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.60k | .num_slots()); | 750 | 7.60k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.60k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.60k | *eos = local_state._child_eos; | 753 | 7.60k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 730 | return Status::OK(); | 755 | 730 | } | 756 | 6.87k | { | 757 | 6.87k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.87k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.87k | } | 760 | 6.87k | } | 761 | | | 762 | 7.24k | if (!need_more_input_data(state)) { | 763 | 7.24k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 7.24k | bool new_eos = false; | 765 | 7.24k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 7.24k | if (new_eos) { | 767 | 5.00k | *eos = true; | 768 | 5.00k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 7.24k | } | 772 | 7.22k | return Status::OK(); | 773 | 7.22k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 47.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 47.4k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 47.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 47.4k | "AsyncWriterDependency", true); |
781 | 47.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 47.4k | _finish_dependency)); |
783 | | |
784 | 47.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 47.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 47.4k | return Status::OK(); |
787 | 47.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 361 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 361 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 361 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 361 | "AsyncWriterDependency", true); | 781 | 361 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 361 | _finish_dependency)); | 783 | | | 784 | 361 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 361 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 361 | return Status::OK(); | 787 | 361 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 47.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 47.0k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 47.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 47.0k | "AsyncWriterDependency", true); | 781 | 47.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 47.0k | _finish_dependency)); | 783 | | | 784 | 47.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 47.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 47.0k | return Status::OK(); | 787 | 47.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 14 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 14 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 14 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 14 | "AsyncWriterDependency", true); | 781 | 14 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 14 | _finish_dependency)); | 783 | | | 784 | 14 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 14 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 14 | return Status::OK(); | 787 | 14 | } |
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.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 48.0k | RETURN_IF_ERROR(Base::open(state)); |
793 | 48.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 371k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 323k | RETURN_IF_ERROR( |
796 | 323k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 323k | } |
798 | 48.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 48.0k | return Status::OK(); |
800 | 48.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 362 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 362 | RETURN_IF_ERROR(Base::open(state)); | 793 | 362 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.87k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.51k | RETURN_IF_ERROR( | 796 | 1.51k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.51k | } | 798 | 362 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 362 | return Status::OK(); | 800 | 362 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 47.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 47.6k | RETURN_IF_ERROR(Base::open(state)); | 793 | 47.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 369k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 322k | RETURN_IF_ERROR( | 796 | 322k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 322k | } | 798 | 47.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 47.6k | return Status::OK(); | 800 | 47.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 14 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 14 | RETURN_IF_ERROR(Base::open(state)); | 793 | 14 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 252 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 238 | RETURN_IF_ERROR( | 796 | 238 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 238 | } | 798 | 14 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 14 | return Status::OK(); | 800 | 14 | } |
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 | 63.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 63.0k | return _writer->sink(block, eos); |
806 | 63.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.33k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.33k | return _writer->sink(block, eos); | 806 | 1.33k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 61.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 61.6k | return _writer->sink(block, eos); | 806 | 61.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 14 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 14 | return _writer->sink(block, eos); | 806 | 14 | } |
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.0k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 48.0k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 48.0k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 48.0k | 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.1k | if (_writer) { |
818 | 48.1k | Status st = _writer->get_writer_status(); |
819 | 48.1k | if (exec_status.ok()) { |
820 | 48.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 48.0k | : Status::Cancelled("force close")); |
822 | 48.0k | } else { |
823 | 67 | _writer->force_close(exec_status); |
824 | 67 | } |
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.1k | RETURN_IF_ERROR(st); |
829 | 48.1k | } |
830 | 48.0k | return Base::close(state, exec_status); |
831 | 48.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 350 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 350 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 350 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 350 | 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 | 350 | if (_writer) { | 818 | 350 | Status st = _writer->get_writer_status(); | 819 | 350 | if (exec_status.ok()) { | 820 | 350 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 350 | : Status::Cancelled("force close")); | 822 | 350 | } 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 | 350 | RETURN_IF_ERROR(st); | 829 | 350 | } | 830 | 350 | return Base::close(state, exec_status); | 831 | 350 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 47.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 47.7k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 47.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 47.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 47.7k | if (_writer) { | 818 | 47.7k | Status st = _writer->get_writer_status(); | 819 | 47.7k | if (exec_status.ok()) { | 820 | 47.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 47.7k | : Status::Cancelled("force close")); | 822 | 47.7k | } else { | 823 | 67 | _writer->force_close(exec_status); | 824 | 67 | } | 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 | 47.7k | RETURN_IF_ERROR(st); | 829 | 47.7k | } | 830 | 47.6k | return Base::close(state, exec_status); | 831 | 47.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 14 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 14 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 14 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 14 | 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 | 14 | if (_writer) { | 818 | 14 | Status st = _writer->get_writer_status(); | 819 | 14 | if (exec_status.ok()) { | 820 | 14 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 14 | : Status::Cancelled("force close")); | 822 | 14 | } 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 | 14 | RETURN_IF_ERROR(st); | 829 | 14 | } | 830 | 14 | return Base::close(state, exec_status); | 831 | 14 | } |
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 |