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 "common/status.h" |
21 | | #include "exec/common/util.hpp" |
22 | | #include "exec/exchange/local_exchange_sink_operator.h" |
23 | | #include "exec/exchange/local_exchange_source_operator.h" |
24 | | #include "exec/operator/aggregation_sink_operator.h" |
25 | | #include "exec/operator/aggregation_source_operator.h" |
26 | | #include "exec/operator/analytic_sink_operator.h" |
27 | | #include "exec/operator/analytic_source_operator.h" |
28 | | #include "exec/operator/assert_num_rows_operator.h" |
29 | | #include "exec/operator/blackhole_sink_operator.h" |
30 | | #include "exec/operator/bucketed_aggregation_sink_operator.h" |
31 | | #include "exec/operator/bucketed_aggregation_source_operator.h" |
32 | | #include "exec/operator/cache_sink_operator.h" |
33 | | #include "exec/operator/cache_source_operator.h" |
34 | | #include "exec/operator/datagen_operator.h" |
35 | | #include "exec/operator/dict_sink_operator.h" |
36 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
37 | | #include "exec/operator/empty_set_operator.h" |
38 | | #include "exec/operator/exchange_sink_operator.h" |
39 | | #include "exec/operator/exchange_source_operator.h" |
40 | | #include "exec/operator/file_scan_operator.h" |
41 | | #include "exec/operator/group_commit_block_sink_operator.h" |
42 | | #include "exec/operator/group_commit_scan_operator.h" |
43 | | #include "exec/operator/hashjoin_build_sink.h" |
44 | | #include "exec/operator/hashjoin_probe_operator.h" |
45 | | #include "exec/operator/hive_table_sink_operator.h" |
46 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
47 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
48 | | #include "exec/operator/iceberg_table_sink_operator.h" |
49 | | #include "exec/operator/jdbc_scan_operator.h" |
50 | | #include "exec/operator/jdbc_table_sink_operator.h" |
51 | | #include "exec/operator/local_merge_sort_source_operator.h" |
52 | | #include "exec/operator/materialization_opertor.h" |
53 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
54 | | #include "exec/operator/memory_scratch_sink_operator.h" |
55 | | #include "exec/operator/meta_scan_operator.h" |
56 | | #include "exec/operator/mock_operator.h" |
57 | | #include "exec/operator/mock_scan_operator.h" |
58 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
59 | | #include "exec/operator/multi_cast_data_stream_source.h" |
60 | | #include "exec/operator/nested_loop_join_build_operator.h" |
61 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
62 | | #include "exec/operator/olap_scan_operator.h" |
63 | | #include "exec/operator/olap_table_sink_operator.h" |
64 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
65 | | #include "exec/operator/partition_sort_sink_operator.h" |
66 | | #include "exec/operator/partition_sort_source_operator.h" |
67 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
68 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
69 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
70 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
72 | | #include "exec/operator/rec_cte_scan_operator.h" |
73 | | #include "exec/operator/rec_cte_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_source_operator.h" |
75 | | #include "exec/operator/repeat_operator.h" |
76 | | #include "exec/operator/result_file_sink_operator.h" |
77 | | #include "exec/operator/result_sink_operator.h" |
78 | | #include "exec/operator/schema_scan_operator.h" |
79 | | #include "exec/operator/select_operator.h" |
80 | | #include "exec/operator/set_probe_sink_operator.h" |
81 | | #include "exec/operator/set_sink_operator.h" |
82 | | #include "exec/operator/set_source_operator.h" |
83 | | #include "exec/operator/sort_sink_operator.h" |
84 | | #include "exec/operator/sort_source_operator.h" |
85 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
86 | | #include "exec/operator/spill_sort_sink_operator.h" |
87 | | #include "exec/operator/spill_sort_source_operator.h" |
88 | | #include "exec/operator/streaming_aggregation_operator.h" |
89 | | #include "exec/operator/table_function_operator.h" |
90 | | #include "exec/operator/tvf_table_sink_operator.h" |
91 | | #include "exec/operator/union_sink_operator.h" |
92 | | #include "exec/operator/union_source_operator.h" |
93 | | #include "exec/pipeline/dependency.h" |
94 | | #include "exec/pipeline/pipeline.h" |
95 | | #include "exprs/vexpr.h" |
96 | | #include "exprs/vexpr_context.h" |
97 | | #include "runtime/runtime_profile.h" |
98 | | #include "runtime/runtime_profile_counter_names.h" |
99 | | #include "util/debug_util.h" |
100 | | #include "util/string_util.h" |
101 | | |
102 | | namespace doris { |
103 | | class RowDescriptor; |
104 | | class RuntimeState; |
105 | | } // namespace doris |
106 | | |
107 | | namespace doris { |
108 | | |
109 | 0 | Status OperatorBase::close(RuntimeState* state) { |
110 | 0 | if (_is_closed) { |
111 | 0 | return Status::OK(); |
112 | 0 | } |
113 | 0 | _is_closed = true; |
114 | 0 | return Status::OK(); |
115 | 0 | } |
116 | | |
117 | | template <typename SharedStateArg> |
118 | 2.23M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.23M | if (_parent->nereids_id() == -1) { |
120 | 1.15M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.15M | } else { |
122 | 1.08M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 1.08M | } |
124 | 2.23M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 102k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 102k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 102k | } else { | 122 | 102k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 102k | } | 124 | 102k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 1 | if (_parent->nereids_id() == -1) { | 120 | 1 | return fmt::format("(id={})", _parent->node_id()); | 121 | 1 | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 254k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 254k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 254k | } else { | 122 | 254k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 254k | } | 124 | 254k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 22 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 22 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 22 | } else { | 122 | 22 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 22 | } | 124 | 22 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.40k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.40k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.40k | } else { | 122 | 9.40k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 9.40k | } | 124 | 9.40k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.19k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.19k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.18k | } else { | 122 | 9.18k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 9.18k | } | 124 | 9.19k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 140k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 140k | if (_parent->nereids_id() == -1) { | 120 | 27 | return fmt::format("(id={})", _parent->node_id()); | 121 | 140k | } else { | 122 | 140k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 140k | } | 124 | 140k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 502 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 502 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 502 | } else { | 122 | 502 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 502 | } | 124 | 502 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 153 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 153 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 153 | } else { | 122 | 153 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 153 | } | 124 | 153 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 925k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 925k | if (_parent->nereids_id() == -1) { | 120 | 417k | return fmt::format("(id={})", _parent->node_id()); | 121 | 507k | } else { | 122 | 507k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 507k | } | 124 | 925k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 54.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 54.8k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 54.8k | } else { | 122 | 54.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 54.8k | } | 124 | 54.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 17 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 17 | if (_parent->nereids_id() == -1) { | 120 | 17 | return fmt::format("(id={})", _parent->node_id()); | 121 | 17 | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 17 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.49k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.49k | if (_parent->nereids_id() == -1) { | 120 | 9.49k | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.49k | } else { | 122 | 3 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 3 | } | 124 | 9.49k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 339 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 339 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 237 | } else { | 122 | 237 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 237 | } | 124 | 339 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.59k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.59k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.58k | } else { | 122 | 4.58k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.58k | } | 124 | 4.59k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 725k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 725k | if (_parent->nereids_id() == -1) { | 120 | 725k | return fmt::format("(id={})", _parent->node_id()); | 121 | 725k | } else { | 122 | 337 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 337 | } | 124 | 725k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 151 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 151 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 151 | } else { | 122 | 151 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 151 | } | 124 | 151 | } |
|
125 | | |
126 | | template <typename SharedStateArg> |
127 | 1.37M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.37M | if (_parent->nereids_id() == -1) { |
129 | 798k | return fmt::format("(id={})", _parent->node_id()); |
130 | 798k | } else { |
131 | 573k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 573k | } |
133 | 1.37M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 150k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 150k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 150k | } else { | 131 | 150k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 150k | } | 133 | 150k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 2 | if (_parent->nereids_id() == -1) { | 129 | 1 | return fmt::format("(id={})", _parent->node_id()); | 130 | 1 | } else { | 131 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 1 | } | 133 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 254k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 254k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 254k | } else { | 131 | 254k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 254k | } | 133 | 254k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 28 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 28 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 28 | } else { | 131 | 28 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 28 | } | 133 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 9.42k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 9.42k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 9.42k | } else { | 131 | 9.42k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 9.42k | } | 133 | 9.42k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 9.21k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 9.21k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 9.20k | } else { | 131 | 9.20k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 9.20k | } | 133 | 9.21k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 140k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 140k | if (_parent->nereids_id() == -1) { | 129 | 27 | return fmt::format("(id={})", _parent->node_id()); | 130 | 140k | } else { | 131 | 140k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 140k | } | 133 | 140k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 432 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 432 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 432 | } else { | 131 | 432 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 432 | } | 133 | 432 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 163 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 163 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 163 | } else { | 131 | 163 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 163 | } | 133 | 163 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 89 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 89 | if (_parent->nereids_id() == -1) { | 129 | 89 | return fmt::format("(id={})", _parent->node_id()); | 130 | 89 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 89 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 7.28k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 7.28k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 7.27k | } else { | 131 | 7.27k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 7.27k | } | 133 | 7.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 339 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 339 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 237 | } else { | 131 | 237 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 237 | } | 133 | 339 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12.4k | if (_parent->nereids_id() == -1) { | 129 | 12.3k | return fmt::format("(id={})", _parent->node_id()); | 130 | 12.3k | } else { | 131 | 7 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 7 | } | 133 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 278k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 278k | if (_parent->nereids_id() == -1) { | 129 | 277k | return fmt::format("(id={})", _parent->node_id()); | 130 | 277k | } else { | 131 | 224 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 224 | } | 133 | 278k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 508k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 508k | if (_parent->nereids_id() == -1) { | 129 | 508k | return fmt::format("(id={})", _parent->node_id()); | 130 | 508k | } else { | 131 | 504 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 504 | } | 133 | 508k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 16 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 17 | if (_parent->nereids_id() == -1) { | 129 | 17 | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 16 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 302 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 302 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 302 | } else { | 131 | 302 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 302 | } | 133 | 302 | } |
|
134 | | |
135 | | template <typename SharedStateArg> |
136 | 30.9k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 30.9k | if (_terminated) { |
138 | 2 | return Status::OK(); |
139 | 2 | } |
140 | 30.9k | _terminated = true; |
141 | 30.9k | return Status::OK(); |
142 | 30.9k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 24.0k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 24.0k | _terminated = true; | 141 | 24.0k | return Status::OK(); | 142 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 738 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 738 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 738 | _terminated = true; | 141 | 738 | return Status::OK(); | 142 | 738 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 4 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 4 | _terminated = true; | 141 | 4 | return Status::OK(); | 142 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 4.49k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 4.49k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 4.49k | _terminated = true; | 141 | 4.49k | return Status::OK(); | 142 | 4.49k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1.16k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1.16k | if (_terminated) { | 138 | 2 | return Status::OK(); | 139 | 2 | } | 140 | 1.16k | _terminated = true; | 141 | 1.16k | return Status::OK(); | 142 | 1.16k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 236 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 236 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 236 | _terminated = true; | 141 | 236 | return Status::OK(); | 142 | 236 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 162 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 162 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 162 | _terminated = true; | 141 | 162 | return Status::OK(); | 142 | 162 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 142 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 142 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 142 | _terminated = true; | 141 | 142 | return Status::OK(); | 142 | 142 | } |
|
143 | | |
144 | 826k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 826k | return _child && _child->is_serial_operator() && !is_source() |
146 | 826k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 826k | : DataDistribution(ExchangeType::NOOP); |
148 | 826k | } |
149 | | |
150 | 81.7k | const RowDescriptor& OperatorBase::row_desc() const { |
151 | 81.7k | return _child->row_desc(); |
152 | 81.7k | } |
153 | | |
154 | | template <typename SharedStateArg> |
155 | 17.6k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
156 | 17.6k | fmt::memory_buffer debug_string_buffer; |
157 | 17.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
158 | 17.6k | return fmt::to_string(debug_string_buffer); |
159 | 17.6k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 24 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 24 | fmt::memory_buffer debug_string_buffer; | 157 | 24 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 24 | return fmt::to_string(debug_string_buffer); | 159 | 24 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 3 | fmt::memory_buffer debug_string_buffer; | 157 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 3 | return fmt::to_string(debug_string_buffer); | 159 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 6 | fmt::memory_buffer debug_string_buffer; | 157 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 6 | return fmt::to_string(debug_string_buffer); | 159 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 6 | fmt::memory_buffer debug_string_buffer; | 157 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 6 | return fmt::to_string(debug_string_buffer); | 159 | 6 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 12 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 12 | fmt::memory_buffer debug_string_buffer; | 157 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 12 | return fmt::to_string(debug_string_buffer); | 159 | 12 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 17.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 17.4k | fmt::memory_buffer debug_string_buffer; | 157 | 17.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 17.4k | return fmt::to_string(debug_string_buffer); | 159 | 17.4k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 1 | fmt::memory_buffer debug_string_buffer; | 157 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 1 | return fmt::to_string(debug_string_buffer); | 159 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 164 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 164 | fmt::memory_buffer debug_string_buffer; | 157 | 164 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 164 | return fmt::to_string(debug_string_buffer); | 159 | 164 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
160 | | |
161 | | template <typename SharedStateArg> |
162 | 17.6k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
163 | 17.6k | fmt::memory_buffer debug_string_buffer; |
164 | 17.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
165 | 17.6k | return fmt::to_string(debug_string_buffer); |
166 | 17.6k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 6 | fmt::memory_buffer debug_string_buffer; | 164 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 6 | return fmt::to_string(debug_string_buffer); | 166 | 6 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 6 | fmt::memory_buffer debug_string_buffer; | 164 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 6 | return fmt::to_string(debug_string_buffer); | 166 | 6 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 6 | fmt::memory_buffer debug_string_buffer; | 164 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 6 | return fmt::to_string(debug_string_buffer); | 166 | 6 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 12 | fmt::memory_buffer debug_string_buffer; | 164 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 12 | return fmt::to_string(debug_string_buffer); | 166 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 158 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 158 | fmt::memory_buffer debug_string_buffer; | 164 | 158 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 158 | return fmt::to_string(debug_string_buffer); | 166 | 158 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 14 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 14 | fmt::memory_buffer debug_string_buffer; | 164 | 14 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 14 | return fmt::to_string(debug_string_buffer); | 166 | 14 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 17.4k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 17.4k | fmt::memory_buffer debug_string_buffer; | 164 | 17.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 17.4k | return fmt::to_string(debug_string_buffer); | 166 | 17.4k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
167 | | |
168 | 17.8k | std::string OperatorXBase::debug_string(int indentation_level) const { |
169 | 17.8k | fmt::memory_buffer debug_string_buffer; |
170 | 17.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
171 | 17.8k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
172 | 17.8k | _is_serial_operator); |
173 | 17.8k | return fmt::to_string(debug_string_buffer); |
174 | 17.8k | } |
175 | | |
176 | 17.6k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
177 | 17.6k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
178 | 17.6k | } |
179 | | |
180 | 698k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
181 | 698k | std::string node_name = print_plan_node_type(tnode.node_type); |
182 | 698k | _nereids_id = tnode.nereids_id; |
183 | 698k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
184 | 3.53k | if (!tnode.__isset.output_tuple_id) { |
185 | 0 | return Status::InternalError("no final output tuple id"); |
186 | 0 | } |
187 | 3.53k | if (tnode.intermediate_output_tuple_id_list.size() != |
188 | 3.53k | tnode.intermediate_projections_list.size()) { |
189 | 0 | return Status::InternalError( |
190 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
191 | 0 | "intermediate_projections_list size:{}", |
192 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
193 | 0 | tnode.intermediate_projections_list.size()); |
194 | 0 | } |
195 | 3.53k | } |
196 | 698k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
197 | 698k | _op_name = substr + "_OPERATOR"; |
198 | | |
199 | 698k | if (tnode.__isset.vconjunct) { |
200 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
201 | 698k | } else if (tnode.__isset.conjuncts) { |
202 | 438k | for (const auto& conjunct : tnode.conjuncts) { |
203 | 438k | VExprContextSPtr context; |
204 | 438k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
205 | 438k | _conjuncts.emplace_back(context); |
206 | 438k | } |
207 | 139k | } |
208 | | |
209 | | // create the projections expr |
210 | 698k | if (tnode.__isset.projections) { |
211 | 304k | DCHECK(tnode.__isset.output_tuple_id); |
212 | 304k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
213 | 304k | } |
214 | 698k | if (!tnode.intermediate_projections_list.empty()) { |
215 | 3.53k | DCHECK(tnode.__isset.projections) << "no final projections"; |
216 | 3.53k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
217 | 6.70k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
218 | 6.70k | VExprContextSPtrs projections; |
219 | 6.70k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
220 | 6.70k | _intermediate_projections.push_back(projections); |
221 | 6.70k | } |
222 | 3.53k | } |
223 | 698k | return Status::OK(); |
224 | 698k | } |
225 | | |
226 | 729k | Status OperatorXBase::prepare(RuntimeState* state) { |
227 | 729k | for (auto& conjunct : _conjuncts) { |
228 | 438k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
229 | 438k | } |
230 | 729k | if (state->enable_adjust_conjunct_order_by_cost()) { |
231 | 679k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
232 | 596k | return a->execute_cost() < b->execute_cost(); |
233 | 596k | }); |
234 | 679k | }; |
235 | | |
236 | 735k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
237 | 6.70k | RETURN_IF_ERROR( |
238 | 6.70k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
239 | 6.70k | } |
240 | 729k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
241 | | |
242 | 729k | if (has_output_row_desc()) { |
243 | 304k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
244 | 304k | } |
245 | | |
246 | 729k | for (auto& conjunct : _conjuncts) { |
247 | 437k | RETURN_IF_ERROR(conjunct->open(state)); |
248 | 437k | } |
249 | 729k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
250 | 729k | for (auto& projections : _intermediate_projections) { |
251 | 6.70k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
252 | 6.70k | } |
253 | 729k | if (_child && !is_source()) { |
254 | 138k | RETURN_IF_ERROR(_child->prepare(state)); |
255 | 138k | } |
256 | | |
257 | 729k | if (VExpr::contains_blockable_function(_conjuncts) || |
258 | 729k | VExpr::contains_blockable_function(_projections)) { |
259 | 0 | _blockable = true; |
260 | 0 | } |
261 | | |
262 | 729k | return Status::OK(); |
263 | 729k | } |
264 | | |
265 | 9.15k | Status OperatorXBase::terminate(RuntimeState* state) { |
266 | 9.15k | if (_child && !is_source()) { |
267 | 2.16k | RETURN_IF_ERROR(_child->terminate(state)); |
268 | 2.16k | } |
269 | 9.15k | auto result = state->get_local_state_result(operator_id()); |
270 | 9.15k | if (!result) { |
271 | 0 | return result.error(); |
272 | 0 | } |
273 | 9.15k | return result.value()->terminate(state); |
274 | 9.15k | } |
275 | | |
276 | 6.38M | Status OperatorXBase::close(RuntimeState* state) { |
277 | 6.38M | if (_child && !is_source()) { |
278 | 1.24M | RETURN_IF_ERROR(_child->close(state)); |
279 | 1.24M | } |
280 | 6.38M | auto result = state->get_local_state_result(operator_id()); |
281 | 6.38M | if (!result) { |
282 | 0 | return result.error(); |
283 | 0 | } |
284 | 6.38M | return result.value()->close(state); |
285 | 6.38M | } |
286 | | |
287 | 322k | void PipelineXLocalStateBase::clear_origin_block() { |
288 | 322k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
289 | 322k | } |
290 | | |
291 | 612k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
292 | 612k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
293 | | |
294 | 612k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
295 | 612k | return Status::OK(); |
296 | 612k | } |
297 | | |
298 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
299 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
300 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
301 | 0 | } |
302 | | |
303 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
304 | 322k | Block* output_block) const { |
305 | 322k | auto* local_state = state->get_local_state(operator_id()); |
306 | 322k | SCOPED_TIMER(local_state->exec_time_counter()); |
307 | 322k | SCOPED_TIMER(local_state->_projection_timer); |
308 | 322k | const size_t rows = origin_block->rows(); |
309 | 322k | if (rows == 0) { |
310 | 187k | return Status::OK(); |
311 | 187k | } |
312 | 135k | Block input_block = *origin_block; |
313 | | |
314 | 135k | size_t bytes_usage = 0; |
315 | 135k | ColumnsWithTypeAndName new_columns; |
316 | 135k | for (const auto& projections : local_state->_intermediate_projections) { |
317 | 1.24k | if (projections.empty()) { |
318 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
319 | 0 | node_id()); |
320 | 0 | } |
321 | 1.24k | new_columns.resize(projections.size()); |
322 | 8.64k | for (int i = 0; i < projections.size(); i++) { |
323 | 7.40k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
324 | 7.40k | if (new_columns[i].column->size() != rows) { |
325 | 0 | return Status::InternalError( |
326 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
327 | 0 | "expr: {}", |
328 | 0 | new_columns[i].column->size(), rows, |
329 | 0 | projections[i]->root()->debug_string()); |
330 | 0 | } |
331 | 7.40k | } |
332 | 1.24k | Block tmp_block {new_columns}; |
333 | 1.24k | bytes_usage += tmp_block.allocated_bytes(); |
334 | 1.24k | input_block.swap(tmp_block); |
335 | 1.24k | } |
336 | | |
337 | 135k | if (input_block.rows() != rows) { |
338 | 0 | return Status::InternalError( |
339 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
340 | 0 | "input_block: {}", |
341 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
342 | 0 | } |
343 | 635k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
344 | 635k | if (to->is_nullable() && !from->is_nullable()) { |
345 | 0 | if (_keep_origin || !from->is_exclusive()) { |
346 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
347 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
348 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
349 | 0 | bytes_usage += null_column.allocated_bytes(); |
350 | 0 | } else { |
351 | 0 | to = make_nullable(from, false)->assume_mutable(); |
352 | 0 | } |
353 | 635k | } else { |
354 | 635k | if (_keep_origin || !from->is_exclusive()) { |
355 | 624k | to->insert_range_from(*from, 0, rows); |
356 | 624k | bytes_usage += from->allocated_bytes(); |
357 | 624k | } else { |
358 | 11.1k | to = from->assume_mutable(); |
359 | 11.1k | } |
360 | 635k | } |
361 | 635k | }; |
362 | | |
363 | 135k | MutableBlock mutable_block = |
364 | 135k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
365 | 135k | if (rows != 0) { |
366 | 135k | auto& mutable_columns = mutable_block.mutable_columns(); |
367 | 135k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
368 | 771k | for (int i = 0; i < mutable_columns.size(); ++i) { |
369 | 635k | ColumnPtr column_ptr; |
370 | 635k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
371 | 635k | if (column_ptr->size() != rows) { |
372 | 0 | return Status::InternalError( |
373 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
374 | 0 | column_ptr->size(), rows, |
375 | 0 | local_state->_projections[i]->root()->debug_string()); |
376 | 0 | } |
377 | 635k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
378 | 635k | bytes_usage += column_ptr->allocated_bytes(); |
379 | 635k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
380 | 635k | } |
381 | 135k | DCHECK(mutable_block.rows() == rows); |
382 | 135k | output_block->set_columns(std::move(mutable_columns)); |
383 | 135k | } |
384 | | |
385 | 135k | local_state->_estimate_memory_usage += bytes_usage; |
386 | | |
387 | 135k | return Status::OK(); |
388 | 135k | } |
389 | | |
390 | 4.66M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
391 | 4.66M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
392 | 4.66M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
393 | 4.66M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
394 | 4.66M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
395 | 4.66M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
396 | 4.66M | if (_debug_point_count++ % 2 == 0) { |
397 | 4.66M | return Status::OK(); |
398 | 4.66M | } |
399 | 4.66M | } |
400 | 4.66M | }); |
401 | | |
402 | 4.66M | Status status; |
403 | 4.66M | auto* local_state = state->get_local_state(operator_id()); |
404 | 4.66M | Defer defer([&]() { |
405 | 4.66M | if (status.ok()) { |
406 | 4.66M | local_state->update_output_block_counters(*block); |
407 | 4.66M | } |
408 | 4.66M | }); |
409 | 4.66M | if (_output_row_descriptor) { |
410 | 322k | local_state->clear_origin_block(); |
411 | 322k | status = get_block(state, &local_state->_origin_block, eos); |
412 | 322k | if (UNLIKELY(!status.ok())) { |
413 | 17 | return status; |
414 | 17 | } |
415 | 322k | status = do_projections(state, &local_state->_origin_block, block); |
416 | 322k | return status; |
417 | 322k | } |
418 | 4.33M | status = get_block(state, block, eos); |
419 | 4.33M | RETURN_IF_ERROR(block->check_type_and_column()); |
420 | 4.33M | return status; |
421 | 4.33M | } |
422 | | |
423 | 3.07M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
424 | 3.07M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
425 | 6.38k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
426 | 6.38k | *eos = true; |
427 | 6.38k | } |
428 | | |
429 | 3.07M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
430 | 3.07M | auto op_name = to_lower(_parent->_op_name); |
431 | 3.07M | auto arg_op_name = dp->param<std::string>("op_name"); |
432 | 3.07M | arg_op_name = to_lower(arg_op_name); |
433 | | |
434 | 3.07M | if (op_name == arg_op_name) { |
435 | 3.07M | *eos = true; |
436 | 3.07M | } |
437 | 3.07M | }); |
438 | | |
439 | 3.07M | if (auto rows = block->rows()) { |
440 | 817k | _num_rows_returned += rows; |
441 | 817k | } |
442 | 3.07M | } |
443 | | |
444 | 30.9k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
445 | 30.9k | auto result = state->get_sink_local_state_result(); |
446 | 30.9k | if (!result) { |
447 | 0 | return result.error(); |
448 | 0 | } |
449 | 30.9k | return result.value()->terminate(state); |
450 | 30.9k | } |
451 | | |
452 | 17.7k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
453 | 17.7k | fmt::memory_buffer debug_string_buffer; |
454 | | |
455 | 17.7k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
456 | 17.7k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
457 | 17.7k | return fmt::to_string(debug_string_buffer); |
458 | 17.7k | } |
459 | | |
460 | 17.6k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
461 | 17.6k | return state->get_sink_local_state()->debug_string(indentation_level); |
462 | 17.6k | } |
463 | | |
464 | 438k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
465 | 438k | std::string op_name = "UNKNOWN_SINK"; |
466 | 438k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
467 | | |
468 | 438k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
469 | 438k | op_name = it->second; |
470 | 438k | } |
471 | 438k | _name = op_name + "_OPERATOR"; |
472 | 438k | return Status::OK(); |
473 | 438k | } |
474 | | |
475 | 197k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
476 | 197k | std::string op_name = print_plan_node_type(tnode.node_type); |
477 | 197k | _nereids_id = tnode.nereids_id; |
478 | 197k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
479 | 197k | _name = substr + "_SINK_OPERATOR"; |
480 | 197k | return Status::OK(); |
481 | 197k | } |
482 | | |
483 | | template <typename LocalStateType> |
484 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
485 | 2.05M | LocalSinkStateInfo& info) { |
486 | 2.05M | auto local_state = LocalStateType::create_unique(this, state); |
487 | 2.05M | RETURN_IF_ERROR(local_state->init(state, info)); |
488 | 2.05M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
489 | 2.05M | return Status::OK(); |
490 | 2.05M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 150k | LocalSinkStateInfo& info) { | 486 | 150k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 150k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 150k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 150k | return Status::OK(); | 490 | 150k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 439k | LocalSinkStateInfo& info) { | 486 | 439k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 439k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 439k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 439k | return Status::OK(); | 490 | 439k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 88 | LocalSinkStateInfo& info) { | 486 | 88 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 88 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 88 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 88 | return Status::OK(); | 490 | 88 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3 | LocalSinkStateInfo& info) { | 486 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3 | return Status::OK(); | 490 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 524 | LocalSinkStateInfo& info) { | 486 | 524 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 524 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 524 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 524 | return Status::OK(); | 490 | 524 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 54.2k | LocalSinkStateInfo& info) { | 486 | 54.2k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 54.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 54.2k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 54.2k | return Status::OK(); | 490 | 54.2k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 5.63k | LocalSinkStateInfo& info) { | 486 | 5.63k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 5.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 5.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 5.63k | return Status::OK(); | 490 | 5.63k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 5.15k | LocalSinkStateInfo& info) { | 486 | 5.15k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 5.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 5.15k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 5.15k | return Status::OK(); | 490 | 5.15k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 156 | LocalSinkStateInfo& info) { | 486 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 156 | return Status::OK(); | 490 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3.38k | LocalSinkStateInfo& info) { | 486 | 3.38k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3.38k | return Status::OK(); | 490 | 3.38k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 160 | LocalSinkStateInfo& info) { | 486 | 160 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 160 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 160 | return Status::OK(); | 490 | 160 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 640 | LocalSinkStateInfo& info) { | 486 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 640 | return Status::OK(); | 490 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 9.21k | LocalSinkStateInfo& info) { | 486 | 9.21k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 9.21k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 9.21k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 9.21k | return Status::OK(); | 490 | 9.21k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 86 | LocalSinkStateInfo& info) { | 486 | 86 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 86 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 86 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 86 | return Status::OK(); | 490 | 86 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 255k | LocalSinkStateInfo& info) { | 486 | 255k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 255k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 255k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 255k | return Status::OK(); | 490 | 255k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 28 | LocalSinkStateInfo& info) { | 486 | 28 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 28 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 28 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 28 | return Status::OK(); | 490 | 28 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 278k | LocalSinkStateInfo& info) { | 486 | 278k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 278k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 278k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 278k | return Status::OK(); | 490 | 278k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 140k | LocalSinkStateInfo& info) { | 486 | 140k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 140k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 140k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 140k | return Status::OK(); | 490 | 140k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 432 | LocalSinkStateInfo& info) { | 486 | 432 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 432 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 432 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 432 | return Status::OK(); | 490 | 432 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 163 | LocalSinkStateInfo& info) { | 486 | 163 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 163 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 163 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 163 | return Status::OK(); | 490 | 163 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 674k | LocalSinkStateInfo& info) { | 486 | 674k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 674k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 674k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 674k | return Status::OK(); | 490 | 674k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 9.42k | LocalSinkStateInfo& info) { | 486 | 9.42k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 9.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 9.42k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 9.42k | return Status::OK(); | 490 | 9.42k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 7.27k | LocalSinkStateInfo& info) { | 486 | 7.27k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 7.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 7.27k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 7.27k | return Status::OK(); | 490 | 7.27k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3.52k | LocalSinkStateInfo& info) { | 486 | 3.52k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3.52k | return Status::OK(); | 490 | 3.52k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 236 | LocalSinkStateInfo& info) { | 486 | 236 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 236 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 236 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 236 | return Status::OK(); | 490 | 236 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 4.72k | LocalSinkStateInfo& info) { | 486 | 4.72k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 4.72k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 4.72k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 4.72k | return Status::OK(); | 490 | 4.72k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.61k | LocalSinkStateInfo& info) { | 486 | 2.61k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.61k | return Status::OK(); | 490 | 2.61k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.52k | LocalSinkStateInfo& info) { | 486 | 2.52k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.52k | return Status::OK(); | 490 | 2.52k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.50k | LocalSinkStateInfo& info) { | 486 | 2.50k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.50k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.50k | return Status::OK(); | 490 | 2.50k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 1 | LocalSinkStateInfo& info) { | 486 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 1 | return Status::OK(); | 490 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 164 | LocalSinkStateInfo& info) { | 486 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 164 | return Status::OK(); | 490 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 14 | LocalSinkStateInfo& info) { | 486 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 14 | return Status::OK(); | 490 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 105 | LocalSinkStateInfo& info) { | 486 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 105 | return Status::OK(); | 490 | 105 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 151 | LocalSinkStateInfo& info) { | 486 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 151 | return Status::OK(); | 490 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 151 | LocalSinkStateInfo& info) { | 486 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 151 | return Status::OK(); | 490 | 151 | } |
|
491 | | |
492 | | template <typename LocalStateType> |
493 | 1.73M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
495 | 0 | LocalExchangeSharedState>) { |
496 | 0 | return nullptr; |
497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
498 | 0 | MultiCastSharedState>) { |
499 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
500 | 1.73M | } else { |
501 | 1.73M | auto ss = LocalStateType::SharedStateType::create_shared(); |
502 | 1.73M | ss->id = operator_id(); |
503 | 1.73M | for (auto& dest : dests_id()) { |
504 | 1.73M | ss->related_op_ids.insert(dest); |
505 | 1.73M | } |
506 | 1.73M | return ss; |
507 | 1.73M | } |
508 | 1.73M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 133k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 133k | } else { | 501 | 133k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 133k | ss->id = operator_id(); | 503 | 133k | for (auto& dest : dests_id()) { | 504 | 133k | ss->related_op_ids.insert(dest); | 505 | 133k | } | 506 | 133k | return ss; | 507 | 133k | } | 508 | 133k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 440k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 440k | } else { | 501 | 440k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 440k | ss->id = operator_id(); | 503 | 440k | for (auto& dest : dests_id()) { | 504 | 438k | ss->related_op_ids.insert(dest); | 505 | 438k | } | 506 | 440k | return ss; | 507 | 440k | } | 508 | 440k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 88 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 88 | } else { | 501 | 88 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 88 | ss->id = operator_id(); | 503 | 88 | for (auto& dest : dests_id()) { | 504 | 88 | ss->related_op_ids.insert(dest); | 505 | 88 | } | 506 | 88 | return ss; | 507 | 88 | } | 508 | 88 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 3 | } else { | 501 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 3 | ss->id = operator_id(); | 503 | 3 | for (auto& dest : dests_id()) { | 504 | 3 | ss->related_op_ids.insert(dest); | 505 | 3 | } | 506 | 3 | return ss; | 507 | 3 | } | 508 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 524 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 524 | } else { | 501 | 524 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 524 | ss->id = operator_id(); | 503 | 524 | for (auto& dest : dests_id()) { | 504 | 524 | ss->related_op_ids.insert(dest); | 505 | 524 | } | 506 | 524 | return ss; | 507 | 524 | } | 508 | 524 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 54.2k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 54.2k | } else { | 501 | 54.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 54.2k | ss->id = operator_id(); | 503 | 54.2k | for (auto& dest : dests_id()) { | 504 | 54.0k | ss->related_op_ids.insert(dest); | 505 | 54.0k | } | 506 | 54.2k | return ss; | 507 | 54.2k | } | 508 | 54.2k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 5.63k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 5.63k | } else { | 501 | 5.63k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 5.63k | ss->id = operator_id(); | 503 | 5.63k | for (auto& dest : dests_id()) { | 504 | 5.63k | ss->related_op_ids.insert(dest); | 505 | 5.63k | } | 506 | 5.63k | return ss; | 507 | 5.63k | } | 508 | 5.63k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 5.15k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 5.15k | } else { | 501 | 5.15k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 5.15k | ss->id = operator_id(); | 503 | 5.15k | for (auto& dest : dests_id()) { | 504 | 5.14k | ss->related_op_ids.insert(dest); | 505 | 5.14k | } | 506 | 5.15k | return ss; | 507 | 5.15k | } | 508 | 5.15k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 156 | } else { | 501 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 156 | ss->id = operator_id(); | 503 | 156 | for (auto& dest : dests_id()) { | 504 | 156 | ss->related_op_ids.insert(dest); | 505 | 156 | } | 506 | 156 | return ss; | 507 | 156 | } | 508 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 3.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 3.38k | } else { | 501 | 3.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 3.38k | ss->id = operator_id(); | 503 | 3.38k | for (auto& dest : dests_id()) { | 504 | 3.38k | ss->related_op_ids.insert(dest); | 505 | 3.38k | } | 506 | 3.38k | return ss; | 507 | 3.38k | } | 508 | 3.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 160 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 160 | } else { | 501 | 160 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 160 | ss->id = operator_id(); | 503 | 160 | for (auto& dest : dests_id()) { | 504 | 160 | ss->related_op_ids.insert(dest); | 505 | 160 | } | 506 | 160 | return ss; | 507 | 160 | } | 508 | 160 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 640 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 640 | } else { | 501 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 640 | ss->id = operator_id(); | 503 | 640 | for (auto& dest : dests_id()) { | 504 | 640 | ss->related_op_ids.insert(dest); | 505 | 640 | } | 506 | 640 | return ss; | 507 | 640 | } | 508 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 9.22k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 9.22k | } else { | 501 | 9.22k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 9.22k | ss->id = operator_id(); | 503 | 9.22k | for (auto& dest : dests_id()) { | 504 | 9.21k | ss->related_op_ids.insert(dest); | 505 | 9.21k | } | 506 | 9.22k | return ss; | 507 | 9.22k | } | 508 | 9.22k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 86 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 86 | } else { | 501 | 86 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 86 | ss->id = operator_id(); | 503 | 86 | for (auto& dest : dests_id()) { | 504 | 86 | ss->related_op_ids.insert(dest); | 505 | 86 | } | 506 | 86 | return ss; | 507 | 86 | } | 508 | 86 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 255k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 255k | } else { | 501 | 255k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 255k | ss->id = operator_id(); | 503 | 255k | for (auto& dest : dests_id()) { | 504 | 255k | ss->related_op_ids.insert(dest); | 505 | 255k | } | 506 | 255k | return ss; | 507 | 255k | } | 508 | 255k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 30 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 30 | } else { | 501 | 30 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 30 | ss->id = operator_id(); | 503 | 30 | for (auto& dest : dests_id()) { | 504 | 30 | ss->related_op_ids.insert(dest); | 505 | 30 | } | 506 | 30 | return ss; | 507 | 30 | } | 508 | 30 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 140k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 140k | } else { | 501 | 140k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 140k | ss->id = operator_id(); | 503 | 140k | for (auto& dest : dests_id()) { | 504 | 140k | ss->related_op_ids.insert(dest); | 505 | 140k | } | 506 | 140k | return ss; | 507 | 140k | } | 508 | 140k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 162 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 162 | } else { | 501 | 162 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 162 | ss->id = operator_id(); | 503 | 162 | for (auto& dest : dests_id()) { | 504 | 162 | ss->related_op_ids.insert(dest); | 505 | 162 | } | 506 | 162 | return ss; | 507 | 162 | } | 508 | 162 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 674k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 674k | } else { | 501 | 674k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 674k | ss->id = operator_id(); | 503 | 674k | for (auto& dest : dests_id()) { | 504 | 672k | ss->related_op_ids.insert(dest); | 505 | 672k | } | 506 | 674k | return ss; | 507 | 674k | } | 508 | 674k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 9.42k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 9.42k | } else { | 501 | 9.42k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 9.42k | ss->id = operator_id(); | 503 | 9.42k | for (auto& dest : dests_id()) { | 504 | 9.42k | ss->related_op_ids.insert(dest); | 505 | 9.42k | } | 506 | 9.42k | return ss; | 507 | 9.42k | } | 508 | 9.42k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 339 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 339 | } else { | 501 | 339 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 339 | ss->id = operator_id(); | 503 | 339 | for (auto& dest : dests_id()) { | 504 | 339 | ss->related_op_ids.insert(dest); | 505 | 339 | } | 506 | 339 | return ss; | 507 | 339 | } | 508 | 339 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 493 | 2.53k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 2.53k | } else { | 501 | 2.53k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 2.53k | ss->id = operator_id(); | 503 | 2.53k | for (auto& dest : dests_id()) { | 504 | 2.53k | ss->related_op_ids.insert(dest); | 505 | 2.53k | } | 506 | 2.53k | return ss; | 507 | 2.53k | } | 508 | 2.53k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 493 | 2.53k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 2.53k | } else { | 501 | 2.53k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 2.53k | ss->id = operator_id(); | 503 | 2.53k | for (auto& dest : dests_id()) { | 504 | 2.53k | ss->related_op_ids.insert(dest); | 505 | 2.53k | } | 506 | 2.53k | return ss; | 507 | 2.53k | } | 508 | 2.53k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 164 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 164 | } else { | 501 | 164 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 164 | ss->id = operator_id(); | 503 | 164 | for (auto& dest : dests_id()) { | 504 | 164 | ss->related_op_ids.insert(dest); | 505 | 164 | } | 506 | 164 | return ss; | 507 | 164 | } | 508 | 164 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 105 | } else { | 501 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 105 | ss->id = operator_id(); | 503 | 105 | for (auto& dest : dests_id()) { | 504 | 105 | ss->related_op_ids.insert(dest); | 505 | 105 | } | 506 | 105 | return ss; | 507 | 105 | } | 508 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
509 | | |
510 | | template <typename LocalStateType> |
511 | 2.59M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
512 | 2.59M | auto local_state = LocalStateType::create_unique(state, this); |
513 | 2.59M | RETURN_IF_ERROR(local_state->init(state, info)); |
514 | 2.59M | state->emplace_local_state(operator_id(), std::move(local_state)); |
515 | 2.59M | return Status::OK(); |
516 | 2.59M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 102k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 102k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 102k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 102k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 102k | return Status::OK(); | 516 | 102k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 315k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 315k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 315k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 315k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 315k | return Status::OK(); | 516 | 315k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 76 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 76 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 76 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 76 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 76 | return Status::OK(); | 516 | 76 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 31.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 31.4k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 31.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 31.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 31.4k | return Status::OK(); | 516 | 31.4k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 9.19k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.19k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.19k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.19k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.19k | return Status::OK(); | 516 | 9.19k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 9.74k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.74k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.74k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.74k | return Status::OK(); | 516 | 9.74k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 22 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 22 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 22 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 22 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 22 | return Status::OK(); | 516 | 22 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 245k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 245k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 245k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 245k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 245k | return Status::OK(); | 516 | 245k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 140k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 140k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 140k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 140k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 140k | return Status::OK(); | 516 | 140k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 501 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 501 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 501 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 501 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 501 | return Status::OK(); | 516 | 501 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 153 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 153 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 153 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 153 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 153 | return Status::OK(); | 516 | 153 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 5.43k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 5.43k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 5.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 5.43k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 5.43k | return Status::OK(); | 516 | 5.43k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 418k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 418k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 418k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 418k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 418k | return Status::OK(); | 516 | 418k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.20k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.20k | return Status::OK(); | 516 | 1.20k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 9.41k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.41k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.41k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.41k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.41k | return Status::OK(); | 516 | 9.41k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 221 | return Status::OK(); | 516 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.61k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.61k | return Status::OK(); | 516 | 1.61k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 55.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 55.0k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 55.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 55.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 55.0k | return Status::OK(); | 516 | 55.0k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 9.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.50k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.50k | return Status::OK(); | 516 | 9.50k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 237 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 237 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 237 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 237 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 237 | return Status::OK(); | 516 | 237 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.43k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.43k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.43k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.43k | return Status::OK(); | 516 | 2.43k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.43k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.43k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.43k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.43k | return Status::OK(); | 516 | 2.43k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 459 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 459 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 459 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 459 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 459 | return Status::OK(); | 516 | 459 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.05k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.05k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.05k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.05k | return Status::OK(); | 516 | 2.05k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 6.04k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 6.04k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 6.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 6.04k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 6.04k | return Status::OK(); | 516 | 6.04k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 729k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 729k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 729k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 729k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 729k | return Status::OK(); | 516 | 729k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 14 | return Status::OK(); | 516 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 151 | return Status::OK(); | 516 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.95k | return Status::OK(); | 516 | 1.95k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.60k | return Status::OK(); | 516 | 1.60k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.23k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.23k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.23k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.23k | return Status::OK(); | 516 | 2.23k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 12.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 12.4k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 12.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 12.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 12.4k | return Status::OK(); | 516 | 12.4k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 477k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 477k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 477k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 477k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 477k | return Status::OK(); | 516 | 477k | } |
|
517 | | |
518 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
519 | | RuntimeState* state) |
520 | 2.05M | : _parent(parent), _state(state) {} |
521 | | |
522 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
523 | 2.59M | : _num_rows_returned(0), |
524 | 2.59M | _rows_returned_counter(nullptr), |
525 | 2.59M | _parent(parent), |
526 | 2.59M | _state(state), |
527 | 2.59M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
528 | | |
529 | | template <typename SharedStateArg> |
530 | 2.59M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
531 | 2.59M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
532 | 2.59M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
533 | 2.59M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
534 | 2.59M | _operator_profile->set_metadata(_parent->node_id()); |
535 | | // indent is false so that source operator will have same |
536 | | // indentation_level with its parent operator. |
537 | 2.59M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
538 | 2.59M | _operator_profile->add_child(_common_profile.get(), true); |
539 | 2.59M | _operator_profile->add_child(_custom_profile.get(), true); |
540 | 2.59M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
541 | 2.59M | if constexpr (!is_fake_shared) { |
542 | 1.32M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
543 | 744k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
544 | 744k | .first.get() |
545 | 744k | ->template cast<SharedStateArg>(); |
546 | | |
547 | 744k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
548 | 744k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
549 | 744k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
550 | 744k | } else if (info.shared_state) { |
551 | 512k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
552 | 0 | DCHECK(false); |
553 | 0 | } |
554 | | // For UnionSourceOperator without children, there is no shared state. |
555 | 512k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
556 | | |
557 | 512k | _dependency = _shared_state->create_source_dependency( |
558 | 512k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
559 | 512k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
560 | 512k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
561 | 512k | } else { |
562 | 63.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
563 | 5.76k | DCHECK(false); |
564 | 5.76k | } |
565 | 63.3k | } |
566 | 1.32M | } |
567 | | |
568 | 2.59M | if (must_set_shared_state() && _shared_state == nullptr) { |
569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
570 | 0 | } |
571 | | |
572 | 2.59M | _rows_returned_counter = |
573 | 2.59M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
574 | 2.59M | _blocks_returned_counter = |
575 | 2.59M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
576 | 2.59M | _output_block_bytes_counter = |
577 | 2.59M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
578 | 2.59M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
579 | 2.59M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
580 | 2.59M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
581 | 2.59M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
582 | 2.59M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
583 | 2.59M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
584 | 2.59M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
585 | 2.59M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
586 | 2.59M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
587 | 2.59M | _memory_used_counter = |
588 | 2.59M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
589 | 2.59M | _common_profile->add_info_string("IsColocate", |
590 | 2.59M | std::to_string(_parent->is_colocated_operator())); |
591 | 2.59M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
592 | 2.59M | _common_profile->add_info_string("FollowedByShuffledOperator", |
593 | 2.59M | std::to_string(_parent->followed_by_shuffled_operator())); |
594 | 2.59M | return Status::OK(); |
595 | 2.59M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 102k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 102k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 102k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 102k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 102k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 102k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 102k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 102k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 102k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 102k | if constexpr (!is_fake_shared) { | 542 | 102k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 17.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 17.1k | .first.get() | 545 | 17.1k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 17.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 17.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 17.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 85.5k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 84.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 84.7k | _dependency = _shared_state->create_source_dependency( | 558 | 84.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 84.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 84.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 84.7k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 783 | } | 566 | 102k | } | 567 | | | 568 | 102k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 102k | _rows_returned_counter = | 573 | 102k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 102k | _blocks_returned_counter = | 575 | 102k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 102k | _output_block_bytes_counter = | 577 | 102k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 102k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 102k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 102k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 102k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 102k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 102k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 102k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 102k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 102k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 102k | _memory_used_counter = | 588 | 102k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 102k | _common_profile->add_info_string("IsColocate", | 590 | 102k | std::to_string(_parent->is_colocated_operator())); | 591 | 102k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 102k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 102k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 102k | return Status::OK(); | 595 | 102k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 1 | if constexpr (!is_fake_shared) { | 542 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 1 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 1 | _dependency = _shared_state->create_source_dependency( | 558 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 1 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 1 | } | 567 | | | 568 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 1 | _rows_returned_counter = | 573 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 1 | _blocks_returned_counter = | 575 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 1 | _output_block_bytes_counter = | 577 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 1 | _memory_used_counter = | 588 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 1 | _common_profile->add_info_string("IsColocate", | 590 | 1 | std::to_string(_parent->is_colocated_operator())); | 591 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 1 | return Status::OK(); | 595 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 255k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 255k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 255k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 255k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 255k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 255k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 255k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 255k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 255k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 255k | if constexpr (!is_fake_shared) { | 542 | 255k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 255k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 252k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 252k | _dependency = _shared_state->create_source_dependency( | 558 | 252k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 252k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 252k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 252k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 3.32k | } | 566 | 255k | } | 567 | | | 568 | 255k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 255k | _rows_returned_counter = | 573 | 255k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 255k | _blocks_returned_counter = | 575 | 255k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 255k | _output_block_bytes_counter = | 577 | 255k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 255k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 255k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 255k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 255k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 255k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 255k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 255k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 255k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 255k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 255k | _memory_used_counter = | 588 | 255k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 255k | _common_profile->add_info_string("IsColocate", | 590 | 255k | std::to_string(_parent->is_colocated_operator())); | 591 | 255k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 255k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 255k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 255k | return Status::OK(); | 595 | 255k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 22 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 22 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 22 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 22 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 22 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 22 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 22 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 22 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 22 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 22 | if constexpr (!is_fake_shared) { | 542 | 22 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 22 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 22 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 22 | _dependency = _shared_state->create_source_dependency( | 558 | 22 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 22 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 22 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 22 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 22 | } | 567 | | | 568 | 22 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 22 | _rows_returned_counter = | 573 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 22 | _blocks_returned_counter = | 575 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 22 | _output_block_bytes_counter = | 577 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 22 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 22 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 22 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 22 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 22 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 22 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 22 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 22 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 22 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 22 | _memory_used_counter = | 588 | 22 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 22 | _common_profile->add_info_string("IsColocate", | 590 | 22 | std::to_string(_parent->is_colocated_operator())); | 591 | 22 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 22 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 22 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 22 | return Status::OK(); | 595 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 9.42k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 9.42k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 9.42k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 9.42k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 9.42k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 9.42k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 9.42k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 9.42k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 9.42k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 9.42k | if constexpr (!is_fake_shared) { | 542 | 9.42k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 9.42k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 9.41k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 9.41k | _dependency = _shared_state->create_source_dependency( | 558 | 9.41k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 9.41k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 9.41k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.41k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 13 | } | 566 | 9.42k | } | 567 | | | 568 | 9.42k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 9.42k | _rows_returned_counter = | 573 | 9.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.42k | _blocks_returned_counter = | 575 | 9.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 9.42k | _output_block_bytes_counter = | 577 | 9.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 9.42k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 9.42k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 9.42k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 9.42k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 9.42k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 9.42k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 9.42k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 9.42k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 9.42k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 9.42k | _memory_used_counter = | 588 | 9.42k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 9.42k | _common_profile->add_info_string("IsColocate", | 590 | 9.42k | std::to_string(_parent->is_colocated_operator())); | 591 | 9.42k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 9.42k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 9.42k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 9.42k | return Status::OK(); | 595 | 9.42k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 9.21k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 9.21k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 9.21k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 9.21k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 9.21k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 9.21k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 9.21k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 9.21k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 9.21k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 9.21k | if constexpr (!is_fake_shared) { | 542 | 9.21k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 9.21k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 9.17k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 9.17k | _dependency = _shared_state->create_source_dependency( | 558 | 9.17k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 9.17k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 9.17k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.17k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 35 | } | 566 | 9.21k | } | 567 | | | 568 | 9.21k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 9.21k | _rows_returned_counter = | 573 | 9.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.21k | _blocks_returned_counter = | 575 | 9.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 9.21k | _output_block_bytes_counter = | 577 | 9.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 9.21k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 9.21k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 9.21k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 9.21k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 9.21k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 9.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 9.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 9.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 9.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 9.21k | _memory_used_counter = | 588 | 9.21k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 9.21k | _common_profile->add_info_string("IsColocate", | 590 | 9.21k | std::to_string(_parent->is_colocated_operator())); | 591 | 9.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 9.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 9.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 9.21k | return Status::OK(); | 595 | 9.21k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 140k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 140k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 140k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 140k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 140k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 140k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 140k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 140k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 140k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 140k | if constexpr (!is_fake_shared) { | 542 | 140k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 140k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 139k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 139k | _dependency = _shared_state->create_source_dependency( | 558 | 139k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 139k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 139k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 139k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 1.14k | } | 566 | 140k | } | 567 | | | 568 | 140k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 140k | _rows_returned_counter = | 573 | 140k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 140k | _blocks_returned_counter = | 575 | 140k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 140k | _output_block_bytes_counter = | 577 | 140k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 140k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 140k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 140k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 140k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 140k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 140k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 140k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 140k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 140k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 140k | _memory_used_counter = | 588 | 140k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 140k | _common_profile->add_info_string("IsColocate", | 590 | 140k | std::to_string(_parent->is_colocated_operator())); | 591 | 140k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 140k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 140k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 140k | return Status::OK(); | 595 | 140k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 504 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 504 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 504 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 504 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 504 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 504 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 504 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 504 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 504 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 504 | if constexpr (!is_fake_shared) { | 542 | 504 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 501 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 501 | .first.get() | 545 | 501 | ->template cast<SharedStateArg>(); | 546 | | | 547 | 501 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 501 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 501 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 501 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | |
| 557 | 0 | _dependency = _shared_state->create_source_dependency( | 558 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 3 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 3 | } | 566 | 504 | } | 567 | | | 568 | 504 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 504 | _rows_returned_counter = | 573 | 504 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 504 | _blocks_returned_counter = | 575 | 504 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 504 | _output_block_bytes_counter = | 577 | 504 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 504 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 504 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 504 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 504 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 504 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 504 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 504 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 504 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 504 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 504 | _memory_used_counter = | 588 | 504 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 504 | _common_profile->add_info_string("IsColocate", | 590 | 504 | std::to_string(_parent->is_colocated_operator())); | 591 | 504 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 504 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 504 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 504 | return Status::OK(); | 595 | 504 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 153 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 153 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 153 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 153 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 153 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 153 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 153 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 153 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 153 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 153 | if constexpr (!is_fake_shared) { | 542 | 153 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 153 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 153 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 153 | _dependency = _shared_state->create_source_dependency( | 558 | 153 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 153 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 153 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 153 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 153 | } | 567 | | | 568 | 153 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 153 | _rows_returned_counter = | 573 | 153 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 153 | _blocks_returned_counter = | 575 | 153 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 153 | _output_block_bytes_counter = | 577 | 153 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 153 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 153 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 153 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 153 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 153 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 153 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 153 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 153 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 153 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 153 | _memory_used_counter = | 588 | 153 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 153 | _common_profile->add_info_string("IsColocate", | 590 | 153 | std::to_string(_parent->is_colocated_operator())); | 591 | 153 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 153 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 153 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 153 | return Status::OK(); | 595 | 153 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 1.27M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 1.27M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 1.27M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 1.27M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 1.27M | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 1.27M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 1.27M | _operator_profile->add_child(_common_profile.get(), true); | 539 | 1.27M | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 1.27M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | | if constexpr (!is_fake_shared) { | 542 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | | .first.get() | 545 | | ->template cast<SharedStateArg>(); | 546 | | | 547 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | | _dependency = _shared_state->create_source_dependency( | 558 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | } | 566 | | } | 567 | | | 568 | 1.27M | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 1.27M | _rows_returned_counter = | 573 | 1.27M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 1.27M | _blocks_returned_counter = | 575 | 1.27M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 1.27M | _output_block_bytes_counter = | 577 | 1.27M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 1.27M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 1.27M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 1.27M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 1.27M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 1.27M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 1.27M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 1.27M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 1.27M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 1.27M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 1.27M | _memory_used_counter = | 588 | 1.27M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 1.27M | _common_profile->add_info_string("IsColocate", | 590 | 1.27M | std::to_string(_parent->is_colocated_operator())); | 591 | 1.27M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 1.27M | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 1.27M | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 1.27M | return Status::OK(); | 595 | 1.27M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 54.9k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 54.9k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 54.9k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 54.9k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 54.9k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 54.9k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 54.9k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 54.9k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 54.9k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 54.9k | if constexpr (!is_fake_shared) { | 542 | 54.9k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 54.9k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 3.44k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 3.44k | _dependency = _shared_state->create_source_dependency( | 558 | 3.44k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 3.44k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 3.44k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 51.5k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 51.5k | } | 566 | 54.9k | } | 567 | | | 568 | 54.9k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 54.9k | _rows_returned_counter = | 573 | 54.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 54.9k | _blocks_returned_counter = | 575 | 54.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 54.9k | _output_block_bytes_counter = | 577 | 54.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 54.9k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 54.9k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 54.9k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 54.9k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 54.9k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 54.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 54.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 54.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 54.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 54.9k | _memory_used_counter = | 588 | 54.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 54.9k | _common_profile->add_info_string("IsColocate", | 590 | 54.9k | std::to_string(_parent->is_colocated_operator())); | 591 | 54.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 54.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 54.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 54.9k | return Status::OK(); | 595 | 54.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 17 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 17 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 17 | if constexpr (!is_fake_shared) { | 542 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 17 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 16 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 16 | _dependency = _shared_state->create_source_dependency( | 558 | 16 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 16 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 16 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 16 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 1 | } | 566 | 17 | } | 567 | | | 568 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 17 | _rows_returned_counter = | 573 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 17 | _blocks_returned_counter = | 575 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 17 | _output_block_bytes_counter = | 577 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 17 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 17 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 17 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 17 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 17 | _memory_used_counter = | 588 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 17 | _common_profile->add_info_string("IsColocate", | 590 | 17 | std::to_string(_parent->is_colocated_operator())); | 591 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 17 | return Status::OK(); | 595 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 9.51k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 9.51k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 9.51k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 9.51k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 9.51k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 9.51k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 9.51k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 9.51k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 9.51k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 9.51k | if constexpr (!is_fake_shared) { | 542 | 9.51k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 9.51k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 9.46k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 9.46k | _dependency = _shared_state->create_source_dependency( | 558 | 9.46k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 9.46k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 9.46k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.46k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 43 | } | 566 | 9.51k | } | 567 | | | 568 | 9.51k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 9.51k | _rows_returned_counter = | 573 | 9.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.51k | _blocks_returned_counter = | 575 | 9.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 9.51k | _output_block_bytes_counter = | 577 | 9.51k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 9.51k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 9.51k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 9.51k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 9.51k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 9.51k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 9.51k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 9.51k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 9.51k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 9.51k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 9.51k | _memory_used_counter = | 588 | 9.51k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 9.51k | _common_profile->add_info_string("IsColocate", | 590 | 9.51k | std::to_string(_parent->is_colocated_operator())); | 591 | 9.51k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 9.51k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 9.51k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 9.51k | return Status::OK(); | 595 | 9.51k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 339 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 339 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 339 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 339 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 339 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 339 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 339 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 339 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 339 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 339 | if constexpr (!is_fake_shared) { | 542 | 339 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 339 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 337 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 337 | _dependency = _shared_state->create_source_dependency( | 558 | 337 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 337 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 337 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 337 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 2 | } | 566 | 339 | } | 567 | | | 568 | 339 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 339 | _rows_returned_counter = | 573 | 339 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 339 | _blocks_returned_counter = | 575 | 339 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 339 | _output_block_bytes_counter = | 577 | 339 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 339 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 339 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 339 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 339 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 339 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 339 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 339 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 339 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 339 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 339 | _memory_used_counter = | 588 | 339 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 339 | _common_profile->add_info_string("IsColocate", | 590 | 339 | std::to_string(_parent->is_colocated_operator())); | 591 | 339 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 339 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 339 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 339 | return Status::OK(); | 595 | 339 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 4.95k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 4.95k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 4.95k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 4.95k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 4.95k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 4.95k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 4.95k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 4.95k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 4.95k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 4.95k | if constexpr (!is_fake_shared) { | 542 | 4.95k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 4.95k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 4.26k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 4.26k | _dependency = _shared_state->create_source_dependency( | 558 | 4.26k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 4.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 4.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 4.26k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 687 | } | 566 | 4.95k | } | 567 | | | 568 | 4.95k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 4.95k | _rows_returned_counter = | 573 | 4.95k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 4.95k | _blocks_returned_counter = | 575 | 4.95k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 4.95k | _output_block_bytes_counter = | 577 | 4.95k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 4.95k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 4.95k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 4.95k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 4.95k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 4.95k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 4.95k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 4.95k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 4.95k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 4.95k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 4.95k | _memory_used_counter = | 588 | 4.95k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 4.95k | _common_profile->add_info_string("IsColocate", | 590 | 4.95k | std::to_string(_parent->is_colocated_operator())); | 591 | 4.95k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 4.95k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 4.95k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 4.95k | return Status::OK(); | 595 | 4.95k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 733k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 733k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 733k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 733k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 733k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 733k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 733k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 733k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 733k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 733k | if constexpr (!is_fake_shared) { | 542 | 733k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 727k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 727k | .first.get() | 545 | 727k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 727k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 727k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 727k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 727k | } else if (info.shared_state) { | 551 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | 0 | DCHECK(false); | 553 | 0 | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | |
| 557 | 0 | _dependency = _shared_state->create_source_dependency( | 558 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 5.76k | } else { | 562 | 5.76k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | 5.76k | DCHECK(false); | 564 | 5.76k | } | 565 | 5.76k | } | 566 | 733k | } | 567 | | | 568 | 733k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 733k | _rows_returned_counter = | 573 | 733k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 733k | _blocks_returned_counter = | 575 | 733k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 733k | _output_block_bytes_counter = | 577 | 733k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 733k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 733k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 733k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 733k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 733k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 733k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 733k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 733k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 733k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 733k | _memory_used_counter = | 588 | 733k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 733k | _common_profile->add_info_string("IsColocate", | 590 | 733k | std::to_string(_parent->is_colocated_operator())); | 591 | 733k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 733k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 733k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 733k | return Status::OK(); | 595 | 733k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 151 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 151 | if constexpr (!is_fake_shared) { | 542 | 151 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 151 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 151 | _dependency = _shared_state->create_source_dependency( | 558 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 151 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 151 | } | 567 | | | 568 | 151 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 151 | _rows_returned_counter = | 573 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 151 | _blocks_returned_counter = | 575 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 151 | _output_block_bytes_counter = | 577 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 151 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 151 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 151 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 151 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 151 | _memory_used_counter = | 588 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 151 | _common_profile->add_info_string("IsColocate", | 590 | 151 | std::to_string(_parent->is_colocated_operator())); | 591 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 151 | return Status::OK(); | 595 | 151 | } |
|
596 | | |
597 | | template <typename SharedStateArg> |
598 | 2.60M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
599 | 2.60M | _conjuncts.resize(_parent->_conjuncts.size()); |
600 | 2.60M | _projections.resize(_parent->_projections.size()); |
601 | 3.10M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
602 | 497k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
603 | 497k | } |
604 | 5.50M | for (size_t i = 0; i < _projections.size(); i++) { |
605 | 2.89M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
606 | 2.89M | } |
607 | 2.60M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
608 | 2.61M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
609 | 10.1k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
610 | 67.7k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
611 | 57.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
612 | 57.5k | state, _intermediate_projections[i][j])); |
613 | 57.5k | } |
614 | 10.1k | } |
615 | 2.60M | return Status::OK(); |
616 | 2.60M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 102k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 102k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 102k | _projections.resize(_parent->_projections.size()); | 601 | 104k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 1.32k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 1.32k | } | 604 | 519k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 416k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 416k | } | 607 | 102k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 103k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 1.18k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 13.2k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 12.0k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 12.0k | state, _intermediate_projections[i][j])); | 613 | 12.0k | } | 614 | 1.18k | } | 615 | 102k | return Status::OK(); | 616 | 102k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 3 | _projections.resize(_parent->_projections.size()); | 601 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 3 | return Status::OK(); | 616 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 255k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 255k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 255k | _projections.resize(_parent->_projections.size()); | 601 | 255k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 256k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 354 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 354 | } | 607 | 255k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 255k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 255k | return Status::OK(); | 616 | 255k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 22 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 22 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 22 | _projections.resize(_parent->_projections.size()); | 601 | 22 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 22 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 22 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 22 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 22 | return Status::OK(); | 616 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 9.42k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 9.42k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 9.42k | _projections.resize(_parent->_projections.size()); | 601 | 9.49k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 69 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 69 | } | 604 | 56.3k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 46.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 46.8k | } | 607 | 9.42k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 9.55k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 133 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 814 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 681 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 681 | state, _intermediate_projections[i][j])); | 613 | 681 | } | 614 | 133 | } | 615 | 9.42k | return Status::OK(); | 616 | 9.42k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 9.22k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 9.22k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 9.22k | _projections.resize(_parent->_projections.size()); | 601 | 10.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 812 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 812 | } | 604 | 25.2k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 16.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 16.0k | } | 607 | 9.22k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 9.31k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 87 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 650 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 563 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 563 | state, _intermediate_projections[i][j])); | 613 | 563 | } | 614 | 87 | } | 615 | 9.22k | return Status::OK(); | 616 | 9.22k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 140k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 140k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 140k | _projections.resize(_parent->_projections.size()); | 601 | 144k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 4.09k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 4.09k | } | 604 | 405k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 264k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 264k | } | 607 | 140k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 140k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 259 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 1.96k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 1.70k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 1.70k | state, _intermediate_projections[i][j])); | 613 | 1.70k | } | 614 | 259 | } | 615 | 140k | return Status::OK(); | 616 | 140k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 505 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 505 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 505 | _projections.resize(_parent->_projections.size()); | 601 | 507 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 2 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 2 | } | 604 | 1.95k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 1.45k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 1.45k | } | 607 | 505 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 505 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 505 | return Status::OK(); | 616 | 505 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 157 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 157 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 157 | _projections.resize(_parent->_projections.size()); | 601 | 157 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 361 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 204 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 204 | } | 607 | 157 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 157 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 157 | return Status::OK(); | 616 | 157 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 1.28M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 1.28M | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 1.28M | _projections.resize(_parent->_projections.size()); | 601 | 1.77M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 488k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 488k | } | 604 | 3.33M | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 2.05M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 2.05M | } | 607 | 1.28M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 1.29M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 8.51k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 51.0k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 42.4k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 42.4k | state, _intermediate_projections[i][j])); | 613 | 42.4k | } | 614 | 8.51k | } | 615 | 1.28M | return Status::OK(); | 616 | 1.28M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 55.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 55.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 55.2k | _projections.resize(_parent->_projections.size()); | 601 | 55.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 147k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 92.5k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 92.5k | } | 607 | 55.2k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 55.2k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 55.2k | return Status::OK(); | 616 | 55.2k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 17 | _projections.resize(_parent->_projections.size()); | 601 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 17 | return Status::OK(); | 616 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 9.50k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 9.50k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 9.50k | _projections.resize(_parent->_projections.size()); | 601 | 12.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 3.02k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 3.02k | } | 604 | 9.50k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 9.50k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 9.50k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 9.50k | return Status::OK(); | 616 | 9.50k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 339 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 339 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 339 | _projections.resize(_parent->_projections.size()); | 601 | 339 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 339 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 339 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 339 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 339 | return Status::OK(); | 616 | 339 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 5.12k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 5.12k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 5.12k | _projections.resize(_parent->_projections.size()); | 601 | 5.12k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 5.12k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 5.12k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 5.12k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 5.12k | return Status::OK(); | 616 | 5.12k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 733k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 733k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 733k | _projections.resize(_parent->_projections.size()); | 601 | 733k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 733k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 733k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 733k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 733k | return Status::OK(); | 616 | 733k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 151 | _projections.resize(_parent->_projections.size()); | 601 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 7 | } | 604 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 296 | } | 607 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 152 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 2 | state, _intermediate_projections[i][j])); | 613 | 2 | } | 614 | 1 | } | 615 | 151 | return Status::OK(); | 616 | 151 | } |
|
617 | | |
618 | | template <typename SharedStateArg> |
619 | 9.15k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
620 | 9.15k | if (_terminated) { |
621 | 4 | return Status::OK(); |
622 | 4 | } |
623 | 9.15k | _terminated = true; |
624 | 9.15k | return Status::OK(); |
625 | 9.15k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 1.43k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 1.43k | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 1.43k | _terminated = true; | 624 | 1.43k | return Status::OK(); | 625 | 1.43k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 108 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 108 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 108 | _terminated = true; | 624 | 108 | return Status::OK(); | 625 | 108 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 240 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 240 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 240 | _terminated = true; | 624 | 240 | return Status::OK(); | 625 | 240 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 356 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 356 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 356 | _terminated = true; | 624 | 356 | return Status::OK(); | 625 | 356 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 5.88k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 5.88k | if (_terminated) { | 621 | 2 | return Status::OK(); | 622 | 2 | } | 623 | 5.87k | _terminated = true; | 624 | 5.87k | return Status::OK(); | 625 | 5.88k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 7 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 7 | _terminated = true; | 624 | 7 | return Status::OK(); | 625 | 7 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 37 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 37 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 37 | _terminated = true; | 624 | 37 | return Status::OK(); | 625 | 37 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 190 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 190 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 190 | _terminated = true; | 624 | 190 | return Status::OK(); | 625 | 190 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 882 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 882 | if (_terminated) { | 621 | 2 | return Status::OK(); | 622 | 2 | } | 623 | 880 | _terminated = true; | 624 | 880 | return Status::OK(); | 625 | 882 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 18 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 18 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 18 | _terminated = true; | 624 | 18 | return Status::OK(); | 625 | 18 | } |
|
626 | | |
627 | | template <typename SharedStateArg> |
628 | 2.89M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
629 | 2.89M | if (_closed) { |
630 | 289k | return Status::OK(); |
631 | 289k | } |
632 | 2.60M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
633 | 1.32M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
634 | 1.32M | } |
635 | 2.60M | _closed = true; |
636 | 2.60M | return Status::OK(); |
637 | 2.89M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 102k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 102k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 102k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 102k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 102k | } | 635 | 102k | _closed = true; | 636 | 102k | return Status::OK(); | 637 | 102k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 3 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 3 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 3 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 3 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 3 | } | 635 | 3 | _closed = true; | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 508k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 508k | if (_closed) { | 630 | 254k | return Status::OK(); | 631 | 254k | } | 632 | 254k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 254k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 254k | } | 635 | 254k | _closed = true; | 636 | 254k | return Status::OK(); | 637 | 508k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 22 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 22 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 22 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 22 | } | 635 | 22 | _closed = true; | 636 | 22 | return Status::OK(); | 637 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 9.42k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 9.42k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 9.42k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 9.42k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 9.42k | } | 635 | 9.42k | _closed = true; | 636 | 9.42k | return Status::OK(); | 637 | 9.42k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 18.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 18.5k | if (_closed) { | 630 | 9.30k | return Status::OK(); | 631 | 9.30k | } | 632 | 9.20k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 9.20k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 9.20k | } | 635 | 9.20k | _closed = true; | 636 | 9.20k | return Status::OK(); | 637 | 18.5k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 140k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 140k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 140k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 140k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 140k | } | 635 | 140k | _closed = true; | 636 | 140k | return Status::OK(); | 637 | 140k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 503 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 503 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 503 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 503 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 503 | } | 635 | 503 | _closed = true; | 636 | 503 | return Status::OK(); | 637 | 503 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 152 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 152 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 152 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 152 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 152 | } | 635 | 152 | _closed = true; | 636 | 152 | return Status::OK(); | 637 | 152 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 1.30M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 1.30M | if (_closed) { | 630 | 20.0k | return Status::OK(); | 631 | 20.0k | } | 632 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | | } | 635 | 1.28M | _closed = true; | 636 | 1.28M | return Status::OK(); | 637 | 1.30M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 55.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 55.3k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 55.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 55.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 55.3k | } | 635 | 55.3k | _closed = true; | 636 | 55.3k | return Status::OK(); | 637 | 55.3k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 28 | if (_closed) { | 630 | 14 | return Status::OK(); | 631 | 14 | } | 632 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 14 | } | 635 | 14 | _closed = true; | 636 | 14 | return Status::OK(); | 637 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 9.47k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 9.47k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 9.47k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 9.47k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 9.47k | } | 635 | 9.47k | _closed = true; | 636 | 9.47k | return Status::OK(); | 637 | 9.47k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 474 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 474 | if (_closed) { | 630 | 237 | return Status::OK(); | 631 | 237 | } | 632 | 237 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 237 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 237 | } | 635 | 237 | _closed = true; | 636 | 237 | return Status::OK(); | 637 | 474 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 10.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 10.2k | if (_closed) { | 630 | 5.15k | return Status::OK(); | 631 | 5.15k | } | 632 | 5.11k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 5.11k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 5.11k | } | 635 | 5.11k | _closed = true; | 636 | 5.11k | return Status::OK(); | 637 | 10.2k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 735k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 735k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 735k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 735k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 735k | } | 635 | 735k | _closed = true; | 636 | 735k | return Status::OK(); | 637 | 735k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 316 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 316 | if (_closed) { | 630 | 174 | return Status::OK(); | 631 | 174 | } | 632 | 142 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 142 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 142 | } | 635 | 142 | _closed = true; | 636 | 142 | return Status::OK(); | 637 | 316 | } |
|
638 | | |
639 | | template <typename SharedState> |
640 | 2.05M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
641 | | // create profile |
642 | 2.05M | _operator_profile = |
643 | 2.05M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
644 | 2.05M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
645 | 2.05M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
646 | | |
647 | | // indentation is true |
648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
649 | | // So we should set the indentation to true. |
650 | 2.05M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
651 | 2.05M | _operator_profile->add_child(_common_profile, true); |
652 | 2.05M | _operator_profile->add_child(_custom_profile, true); |
653 | | |
654 | 2.05M | _operator_profile->set_metadata(_parent->node_id()); |
655 | 2.05M | _wait_for_finish_dependency_timer = |
656 | 2.05M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
657 | 2.05M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
658 | 2.05M | if constexpr (!is_fake_shared) { |
659 | 1.37M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
660 | 1.37M | info.shared_state_map.end()) { |
661 | 295k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
662 | 278k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
663 | 278k | } |
664 | 295k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
665 | 295k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
666 | 295k | ? 0 |
667 | 295k | : info.task_idx] |
668 | 295k | .get(); |
669 | 295k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
670 | 1.08M | } else { |
671 | 1.08M | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
672 | 32 | DCHECK(false); |
673 | 32 | } |
674 | 1.08M | _shared_state = info.shared_state->template cast<SharedState>(); |
675 | 1.08M | _dependency = _shared_state->create_sink_dependency( |
676 | 1.08M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
677 | 1.08M | } |
678 | 1.37M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
679 | 1.37M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
680 | 1.37M | } |
681 | | |
682 | 2.05M | if (must_set_shared_state() && _shared_state == nullptr) { |
683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
684 | 0 | } |
685 | | |
686 | 2.05M | _rows_input_counter = |
687 | 2.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
688 | 2.05M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
689 | 2.05M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
690 | 2.05M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
691 | 2.05M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
692 | 2.05M | _memory_used_counter = |
693 | 2.05M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
694 | 2.05M | _common_profile->add_info_string("IsColocate", |
695 | 2.05M | std::to_string(_parent->is_colocated_operator())); |
696 | 2.05M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
697 | 2.05M | _common_profile->add_info_string("FollowedByShuffledOperator", |
698 | 2.05M | std::to_string(_parent->followed_by_shuffled_operator())); |
699 | 2.05M | return Status::OK(); |
700 | 2.05M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 150k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 150k | _operator_profile = | 643 | 150k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 150k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 150k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 150k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 150k | _operator_profile->add_child(_common_profile, true); | 652 | 150k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 150k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 150k | _wait_for_finish_dependency_timer = | 656 | 150k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 150k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 150k | if constexpr (!is_fake_shared) { | 659 | 150k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 150k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 17.1k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 17.1k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 17.1k | ? 0 | 667 | 17.1k | : info.task_idx] | 668 | 17.1k | .get(); | 669 | 17.1k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 133k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 133k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 133k | _dependency = _shared_state->create_sink_dependency( | 676 | 133k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 133k | } | 678 | 150k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 150k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 150k | } | 681 | | | 682 | 150k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 150k | _rows_input_counter = | 687 | 150k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 150k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 150k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 150k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 150k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 150k | _memory_used_counter = | 693 | 150k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 150k | _common_profile->add_info_string("IsColocate", | 695 | 150k | std::to_string(_parent->is_colocated_operator())); | 696 | 150k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 150k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 150k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 150k | return Status::OK(); | 700 | 150k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 2 | _operator_profile = | 643 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 2 | _operator_profile->add_child(_common_profile, true); | 652 | 2 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 2 | _wait_for_finish_dependency_timer = | 656 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 2 | if constexpr (!is_fake_shared) { | 659 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 2 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 2 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 2 | _dependency = _shared_state->create_sink_dependency( | 676 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 2 | } | 678 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 2 | } | 681 | | | 682 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 2 | _rows_input_counter = | 687 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 2 | _memory_used_counter = | 693 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 2 | _common_profile->add_info_string("IsColocate", | 695 | 2 | std::to_string(_parent->is_colocated_operator())); | 696 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 2 | return Status::OK(); | 700 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 255k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 255k | _operator_profile = | 643 | 255k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 255k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 255k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 255k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 255k | _operator_profile->add_child(_common_profile, true); | 652 | 255k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 255k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 255k | _wait_for_finish_dependency_timer = | 656 | 255k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 255k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 255k | if constexpr (!is_fake_shared) { | 659 | 255k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 255k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 255k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 255k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 255k | _dependency = _shared_state->create_sink_dependency( | 676 | 255k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 255k | } | 678 | 255k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 255k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 255k | } | 681 | | | 682 | 255k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 255k | _rows_input_counter = | 687 | 255k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 255k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 255k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 255k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 255k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 255k | _memory_used_counter = | 693 | 255k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 255k | _common_profile->add_info_string("IsColocate", | 695 | 255k | std::to_string(_parent->is_colocated_operator())); | 696 | 255k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 255k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 255k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 255k | return Status::OK(); | 700 | 255k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 28 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 28 | _operator_profile = | 643 | 28 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 28 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 28 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 28 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 28 | _operator_profile->add_child(_common_profile, true); | 652 | 28 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 28 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 28 | _wait_for_finish_dependency_timer = | 656 | 28 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 28 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 28 | if constexpr (!is_fake_shared) { | 659 | 28 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 28 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 28 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 28 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 28 | _dependency = _shared_state->create_sink_dependency( | 676 | 28 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 28 | } | 678 | 28 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 28 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 28 | } | 681 | | | 682 | 28 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 28 | _rows_input_counter = | 687 | 28 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 28 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 28 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 28 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 28 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 28 | _memory_used_counter = | 693 | 28 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 28 | _common_profile->add_info_string("IsColocate", | 695 | 28 | std::to_string(_parent->is_colocated_operator())); | 696 | 28 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 28 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 28 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 28 | return Status::OK(); | 700 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 9.42k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 9.42k | _operator_profile = | 643 | 9.42k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 9.42k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 9.42k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 9.42k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 9.42k | _operator_profile->add_child(_common_profile, true); | 652 | 9.42k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 9.42k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 9.42k | _wait_for_finish_dependency_timer = | 656 | 9.42k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 9.42k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 9.42k | if constexpr (!is_fake_shared) { | 659 | 9.42k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 9.42k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 9.42k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 9.42k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 9.42k | _dependency = _shared_state->create_sink_dependency( | 676 | 9.42k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 9.42k | } | 678 | 9.42k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 9.42k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 9.42k | } | 681 | | | 682 | 9.42k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 9.42k | _rows_input_counter = | 687 | 9.42k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 9.42k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 9.42k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 9.42k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 9.42k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 9.42k | _memory_used_counter = | 693 | 9.42k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 9.42k | _common_profile->add_info_string("IsColocate", | 695 | 9.42k | std::to_string(_parent->is_colocated_operator())); | 696 | 9.42k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 9.42k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 9.42k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 9.42k | return Status::OK(); | 700 | 9.42k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 9.21k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 9.21k | _operator_profile = | 643 | 9.21k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 9.21k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 9.21k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 9.21k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 9.21k | _operator_profile->add_child(_common_profile, true); | 652 | 9.21k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 9.21k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 9.21k | _wait_for_finish_dependency_timer = | 656 | 9.21k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 9.21k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 9.21k | if constexpr (!is_fake_shared) { | 659 | 9.21k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 9.21k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 9.21k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 9.21k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 9.21k | _dependency = _shared_state->create_sink_dependency( | 676 | 9.21k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 9.21k | } | 678 | 9.21k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 9.21k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 9.21k | } | 681 | | | 682 | 9.21k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 9.21k | _rows_input_counter = | 687 | 9.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 9.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 9.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 9.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 9.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 9.21k | _memory_used_counter = | 693 | 9.21k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 9.21k | _common_profile->add_info_string("IsColocate", | 695 | 9.21k | std::to_string(_parent->is_colocated_operator())); | 696 | 9.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 9.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 9.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 9.21k | return Status::OK(); | 700 | 9.21k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 140k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 140k | _operator_profile = | 643 | 140k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 140k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 140k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 140k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 140k | _operator_profile->add_child(_common_profile, true); | 652 | 140k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 140k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 140k | _wait_for_finish_dependency_timer = | 656 | 140k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 140k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 140k | if constexpr (!is_fake_shared) { | 659 | 140k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 140k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 140k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 140k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 140k | _dependency = _shared_state->create_sink_dependency( | 676 | 140k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 140k | } | 678 | 140k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 140k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 140k | } | 681 | | | 682 | 140k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 140k | _rows_input_counter = | 687 | 140k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 140k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 140k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 140k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 140k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 140k | _memory_used_counter = | 693 | 140k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 140k | _common_profile->add_info_string("IsColocate", | 695 | 140k | std::to_string(_parent->is_colocated_operator())); | 696 | 140k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 140k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 140k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 140k | return Status::OK(); | 700 | 140k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 433 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 433 | _operator_profile = | 643 | 433 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 433 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 433 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 433 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 433 | _operator_profile->add_child(_common_profile, true); | 652 | 433 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 433 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 433 | _wait_for_finish_dependency_timer = | 656 | 433 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 433 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 433 | if constexpr (!is_fake_shared) { | 659 | 433 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 433 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 433 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 433 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 433 | ? 0 | 667 | 433 | : info.task_idx] | 668 | 433 | .get(); | 669 | 433 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 433 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 0 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 0 | _dependency = _shared_state->create_sink_dependency( | 676 | 0 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 0 | } | 678 | 433 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 433 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 433 | } | 681 | | | 682 | 433 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 433 | _rows_input_counter = | 687 | 433 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 433 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 433 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 433 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 433 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 433 | _memory_used_counter = | 693 | 433 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 433 | _common_profile->add_info_string("IsColocate", | 695 | 433 | std::to_string(_parent->is_colocated_operator())); | 696 | 433 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 433 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 433 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 433 | return Status::OK(); | 700 | 433 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 163 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 163 | _operator_profile = | 643 | 163 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 163 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 163 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 163 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 163 | _operator_profile->add_child(_common_profile, true); | 652 | 163 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 163 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 163 | _wait_for_finish_dependency_timer = | 656 | 163 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 163 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 163 | if constexpr (!is_fake_shared) { | 659 | 163 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 163 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 163 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 163 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 163 | _dependency = _shared_state->create_sink_dependency( | 676 | 163 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 163 | } | 678 | 163 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 163 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 163 | } | 681 | | | 682 | 163 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 163 | _rows_input_counter = | 687 | 163 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 163 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 163 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 163 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 163 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 163 | _memory_used_counter = | 693 | 163 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 163 | _common_profile->add_info_string("IsColocate", | 695 | 163 | std::to_string(_parent->is_colocated_operator())); | 696 | 163 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 163 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 163 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 163 | return Status::OK(); | 700 | 163 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 677k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 677k | _operator_profile = | 643 | 677k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 677k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 677k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 677k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 677k | _operator_profile->add_child(_common_profile, true); | 652 | 677k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 677k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 677k | _wait_for_finish_dependency_timer = | 656 | 677k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 677k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | | if constexpr (!is_fake_shared) { | 659 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | | ? 0 | 667 | | : info.task_idx] | 668 | | .get(); | 669 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | | _dependency = _shared_state->create_sink_dependency( | 676 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | | } | 678 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | | } | 681 | | | 682 | 677k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 677k | _rows_input_counter = | 687 | 677k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 677k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 677k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 677k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 677k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 677k | _memory_used_counter = | 693 | 677k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 677k | _common_profile->add_info_string("IsColocate", | 695 | 677k | std::to_string(_parent->is_colocated_operator())); | 696 | 677k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 677k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 677k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 677k | return Status::OK(); | 700 | 677k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 7.28k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 7.28k | _operator_profile = | 643 | 7.28k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 7.28k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 7.28k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 7.28k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 7.28k | _operator_profile->add_child(_common_profile, true); | 652 | 7.28k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 7.28k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 7.28k | _wait_for_finish_dependency_timer = | 656 | 7.28k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 7.28k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 7.28k | if constexpr (!is_fake_shared) { | 659 | 7.28k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 7.28k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 7.28k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 7.28k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 7.28k | _dependency = _shared_state->create_sink_dependency( | 676 | 7.28k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 7.28k | } | 678 | 7.28k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 7.28k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 7.28k | } | 681 | | | 682 | 7.28k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 7.28k | _rows_input_counter = | 687 | 7.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 7.28k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 7.28k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 7.28k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 7.28k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 7.28k | _memory_used_counter = | 693 | 7.28k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 7.28k | _common_profile->add_info_string("IsColocate", | 695 | 7.28k | std::to_string(_parent->is_colocated_operator())); | 696 | 7.28k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 7.28k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 7.28k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 7.28k | return Status::OK(); | 700 | 7.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 339 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 339 | _operator_profile = | 643 | 339 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 339 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 339 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 339 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 339 | _operator_profile->add_child(_common_profile, true); | 652 | 339 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 339 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 339 | _wait_for_finish_dependency_timer = | 656 | 339 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 339 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 339 | if constexpr (!is_fake_shared) { | 659 | 339 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 339 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 339 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 339 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 339 | _dependency = _shared_state->create_sink_dependency( | 676 | 339 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 339 | } | 678 | 339 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 339 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 339 | } | 681 | | | 682 | 339 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 339 | _rows_input_counter = | 687 | 339 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 339 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 339 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 339 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 339 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 339 | _memory_used_counter = | 693 | 339 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 339 | _common_profile->add_info_string("IsColocate", | 695 | 339 | std::to_string(_parent->is_colocated_operator())); | 696 | 339 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 339 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 339 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 339 | return Status::OK(); | 700 | 339 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 3.52k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 3.52k | _operator_profile = | 643 | 3.52k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 3.52k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 3.52k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 3.52k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 3.52k | _operator_profile->add_child(_common_profile, true); | 652 | 3.52k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 3.52k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 3.52k | _wait_for_finish_dependency_timer = | 656 | 3.52k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 3.52k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 3.52k | if constexpr (!is_fake_shared) { | 659 | 3.52k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 3.52k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 3.52k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 3.52k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 3.52k | _dependency = _shared_state->create_sink_dependency( | 676 | 3.52k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 3.52k | } | 678 | 3.52k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 3.52k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 3.52k | } | 681 | | | 682 | 3.52k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 3.52k | _rows_input_counter = | 687 | 3.52k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 3.52k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 3.52k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 3.52k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 3.52k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 3.52k | _memory_used_counter = | 693 | 3.52k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 3.52k | _common_profile->add_info_string("IsColocate", | 695 | 3.52k | std::to_string(_parent->is_colocated_operator())); | 696 | 3.52k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 3.52k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 3.52k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 3.52k | return Status::OK(); | 700 | 3.52k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 12.5k | _operator_profile = | 643 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 12.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 12.5k | _operator_profile->add_child(_common_profile, true); | 652 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 12.5k | _wait_for_finish_dependency_timer = | 656 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 12.5k | if constexpr (!is_fake_shared) { | 659 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 12.5k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 12.5k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 676 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 12.5k | } | 678 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 12.5k | } | 681 | | | 682 | 12.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 12.5k | _rows_input_counter = | 687 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 12.5k | _memory_used_counter = | 693 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 12.5k | _common_profile->add_info_string("IsColocate", | 695 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 696 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 12.5k | return Status::OK(); | 700 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 278k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 278k | _operator_profile = | 643 | 278k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 278k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 278k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 278k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 278k | _operator_profile->add_child(_common_profile, true); | 652 | 278k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 278k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 278k | _wait_for_finish_dependency_timer = | 656 | 278k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 278k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 278k | if constexpr (!is_fake_shared) { | 659 | 278k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 278k | info.shared_state_map.end()) { | 661 | 278k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | 278k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | 278k | } | 664 | 278k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 278k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 278k | ? 0 | 667 | 278k | : info.task_idx] | 668 | 278k | .get(); | 669 | 278k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 278k | } else { | 671 | 32 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | 32 | DCHECK(false); | 673 | 32 | } | 674 | 32 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 32 | _dependency = _shared_state->create_sink_dependency( | 676 | 32 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 32 | } | 678 | 278k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 278k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 278k | } | 681 | | | 682 | 278k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 278k | _rows_input_counter = | 687 | 278k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 278k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 278k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 278k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 278k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 278k | _memory_used_counter = | 693 | 278k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 278k | _common_profile->add_info_string("IsColocate", | 695 | 278k | std::to_string(_parent->is_colocated_operator())); | 696 | 278k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 278k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 278k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 278k | return Status::OK(); | 700 | 278k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 509k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 509k | _operator_profile = | 643 | 509k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 509k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 509k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 509k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 509k | _operator_profile->add_child(_common_profile, true); | 652 | 509k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 509k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 509k | _wait_for_finish_dependency_timer = | 656 | 509k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 509k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 509k | if constexpr (!is_fake_shared) { | 659 | 509k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 509k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 509k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 509k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 509k | _dependency = _shared_state->create_sink_dependency( | 676 | 509k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 509k | } | 678 | 509k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 509k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 509k | } | 681 | | | 682 | 509k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 509k | _rows_input_counter = | 687 | 509k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 509k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 509k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 509k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 509k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 509k | _memory_used_counter = | 693 | 509k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 509k | _common_profile->add_info_string("IsColocate", | 695 | 509k | std::to_string(_parent->is_colocated_operator())); | 696 | 509k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 509k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 509k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 509k | return Status::OK(); | 700 | 509k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 17 | _operator_profile = | 643 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 17 | _operator_profile->add_child(_common_profile, true); | 652 | 17 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 17 | _wait_for_finish_dependency_timer = | 656 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 17 | if constexpr (!is_fake_shared) { | 659 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 17 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 17 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 17 | _dependency = _shared_state->create_sink_dependency( | 676 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 17 | } | 678 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 17 | } | 681 | | | 682 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 17 | _rows_input_counter = | 687 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 17 | _memory_used_counter = | 693 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 17 | _common_profile->add_info_string("IsColocate", | 695 | 17 | std::to_string(_parent->is_colocated_operator())); | 696 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 17 | return Status::OK(); | 700 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 302 | _operator_profile = | 643 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 302 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 302 | _operator_profile->add_child(_common_profile, true); | 652 | 302 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 302 | _wait_for_finish_dependency_timer = | 656 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 302 | if constexpr (!is_fake_shared) { | 659 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 302 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 302 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 302 | _dependency = _shared_state->create_sink_dependency( | 676 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 302 | } | 678 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 302 | } | 681 | | | 682 | 302 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 302 | _rows_input_counter = | 687 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 302 | _memory_used_counter = | 693 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 302 | _common_profile->add_info_string("IsColocate", | 695 | 302 | std::to_string(_parent->is_colocated_operator())); | 696 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 302 | return Status::OK(); | 700 | 302 | } |
|
701 | | |
702 | | template <typename SharedState> |
703 | 2.06M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
704 | 2.06M | if (_closed) { |
705 | 2 | return Status::OK(); |
706 | 2 | } |
707 | 2.06M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
708 | 1.38M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
709 | 1.38M | } |
710 | 2.06M | _closed = true; |
711 | 2.06M | return Status::OK(); |
712 | 2.06M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 150k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 150k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 150k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 150k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 150k | } | 710 | 150k | _closed = true; | 711 | 150k | return Status::OK(); | 712 | 150k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 1 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 1 | } | 710 | 1 | _closed = true; | 711 | 1 | return Status::OK(); | 712 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 255k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 255k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 255k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 255k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 255k | } | 710 | 255k | _closed = true; | 711 | 255k | return Status::OK(); | 712 | 255k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 20 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 20 | if (_closed) { | 705 | 2 | return Status::OK(); | 706 | 2 | } | 707 | 18 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 18 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 18 | } | 710 | 18 | _closed = true; | 711 | 18 | return Status::OK(); | 712 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 9.41k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 9.41k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 9.41k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 9.41k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 9.41k | } | 710 | 9.41k | _closed = true; | 711 | 9.41k | return Status::OK(); | 712 | 9.41k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 9.17k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 9.17k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 9.17k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 9.17k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 9.17k | } | 710 | 9.17k | _closed = true; | 711 | 9.17k | return Status::OK(); | 712 | 9.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 140k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 140k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 140k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 140k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 140k | } | 710 | 140k | _closed = true; | 711 | 140k | return Status::OK(); | 712 | 140k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 432 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 432 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 432 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 432 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 432 | } | 710 | 432 | _closed = true; | 711 | 432 | return Status::OK(); | 712 | 432 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 152 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 152 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 152 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 152 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 152 | } | 710 | 152 | _closed = true; | 711 | 152 | return Status::OK(); | 712 | 152 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 678k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 678k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | | } | 710 | 678k | _closed = true; | 711 | 678k | return Status::OK(); | 712 | 678k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 7.29k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 7.29k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 7.29k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 7.29k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 7.29k | } | 710 | 7.29k | _closed = true; | 711 | 7.29k | return Status::OK(); | 712 | 7.29k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 237 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 237 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 237 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 237 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 237 | } | 710 | 237 | _closed = true; | 711 | 237 | return Status::OK(); | 712 | 237 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 3.52k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 3.52k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 3.52k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 3.52k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 3.52k | } | 710 | 3.52k | _closed = true; | 711 | 3.52k | return Status::OK(); | 712 | 3.52k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 12.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 12.4k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 12.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 12.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 12.4k | } | 710 | 12.4k | _closed = true; | 711 | 12.4k | return Status::OK(); | 712 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 279k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 279k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 279k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 279k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 279k | } | 710 | 279k | _closed = true; | 711 | 279k | return Status::OK(); | 712 | 279k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 513k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 513k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 513k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 513k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 513k | } | 710 | 513k | _closed = true; | 711 | 513k | return Status::OK(); | 712 | 513k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 14 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 14 | } | 710 | 14 | _closed = true; | 711 | 14 | return Status::OK(); | 712 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 301 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 301 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 301 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 301 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 301 | } | 710 | 301 | _closed = true; | 711 | 301 | return Status::OK(); | 712 | 301 | } |
|
713 | | |
714 | | template <typename LocalStateType> |
715 | 8.06k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
716 | 8.06k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
717 | 8.05k | return pull(state, block, eos); |
718 | 8.06k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 715 | 431 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 716 | 431 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 717 | 431 | return pull(state, block, eos); | 718 | 431 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 715 | 7.63k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 716 | 7.63k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 717 | 7.62k | return pull(state, block, eos); | 718 | 7.63k | } |
|
719 | | |
720 | | template <typename LocalStateType> |
721 | 803k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
722 | 803k | auto& local_state = get_local_state(state); |
723 | 803k | if (need_more_input_data(state)) { |
724 | 754k | local_state._child_block->clear_column_data( |
725 | 754k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
726 | 754k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
727 | 754k | state, local_state._child_block.get(), &local_state._child_eos)); |
728 | 754k | *eos = local_state._child_eos; |
729 | 754k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
730 | 90.7k | return Status::OK(); |
731 | 90.7k | } |
732 | 663k | { |
733 | 663k | SCOPED_TIMER(local_state.exec_time_counter()); |
734 | 663k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
735 | 663k | } |
736 | 663k | } |
737 | | |
738 | 712k | if (!need_more_input_data(state)) { |
739 | 662k | SCOPED_TIMER(local_state.exec_time_counter()); |
740 | 662k | bool new_eos = false; |
741 | 662k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
742 | 662k | if (new_eos) { |
743 | 586k | *eos = true; |
744 | 586k | } else if (!need_more_input_data(state)) { |
745 | 23.0k | *eos = false; |
746 | 23.0k | } |
747 | 662k | } |
748 | 712k | return Status::OK(); |
749 | 712k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 165k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 165k | auto& local_state = get_local_state(state); | 723 | 165k | if (need_more_input_data(state)) { | 724 | 128k | local_state._child_block->clear_column_data( | 725 | 128k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 128k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 128k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 128k | *eos = local_state._child_eos; | 729 | 128k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 33.5k | return Status::OK(); | 731 | 33.5k | } | 732 | 95.2k | { | 733 | 95.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 95.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 95.2k | } | 736 | 95.2k | } | 737 | | | 738 | 132k | if (!need_more_input_data(state)) { | 739 | 132k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 132k | bool new_eos = false; | 741 | 132k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 132k | if (new_eos) { | 743 | 78.1k | *eos = true; | 744 | 78.1k | } else if (!need_more_input_data(state)) { | 745 | 9.42k | *eos = false; | 746 | 9.42k | } | 747 | 132k | } | 748 | 132k | return Status::OK(); | 749 | 132k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 3.14k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 3.14k | auto& local_state = get_local_state(state); | 723 | 3.14k | if (need_more_input_data(state)) { | 724 | 1.86k | local_state._child_block->clear_column_data( | 725 | 1.86k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 1.86k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 1.86k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 1.86k | *eos = local_state._child_eos; | 729 | 1.86k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 365 | return Status::OK(); | 731 | 365 | } | 732 | 1.49k | { | 733 | 1.49k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 1.49k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 1.49k | } | 736 | 1.49k | } | 737 | | | 738 | 2.79k | if (!need_more_input_data(state)) { | 739 | 2.79k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 2.79k | bool new_eos = false; | 741 | 2.79k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 2.79k | if (new_eos) { | 743 | 1.21k | *eos = true; | 744 | 1.58k | } else if (!need_more_input_data(state)) { | 745 | 1.28k | *eos = false; | 746 | 1.28k | } | 747 | 2.79k | } | 748 | 2.77k | return Status::OK(); | 749 | 2.77k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 4.53k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 4.53k | auto& local_state = get_local_state(state); | 723 | 4.53k | if (need_more_input_data(state)) { | 724 | 4.53k | local_state._child_block->clear_column_data( | 725 | 4.53k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 4.53k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 4.53k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 4.53k | *eos = local_state._child_eos; | 729 | 4.53k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 1.57k | return Status::OK(); | 731 | 1.57k | } | 732 | 2.95k | { | 733 | 2.95k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 2.95k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 2.95k | } | 736 | 2.95k | } | 737 | | | 738 | 2.95k | if (!need_more_input_data(state)) { | 739 | 2.95k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 2.95k | bool new_eos = false; | 741 | 2.95k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 2.95k | if (new_eos) { | 743 | 1.59k | *eos = true; | 744 | 1.59k | } else if (!need_more_input_data(state)) { | 745 | 0 | *eos = false; | 746 | 0 | } | 747 | 2.95k | } | 748 | 2.95k | return Status::OK(); | 749 | 2.95k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 34.4k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 34.4k | auto& local_state = get_local_state(state); | 723 | 34.4k | if (need_more_input_data(state)) { | 724 | 34.4k | local_state._child_block->clear_column_data( | 725 | 34.4k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 34.4k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 34.4k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 34.4k | *eos = local_state._child_eos; | 729 | 34.4k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 6.34k | return Status::OK(); | 731 | 6.34k | } | 732 | 28.1k | { | 733 | 28.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 28.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 28.1k | } | 736 | 28.1k | } | 737 | | | 738 | 28.1k | if (!need_more_input_data(state)) { | 739 | 12.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 12.4k | bool new_eos = false; | 741 | 12.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 12.4k | if (new_eos) { | 743 | 12.3k | *eos = true; | 744 | 12.3k | } else if (!need_more_input_data(state)) { | 745 | 3 | *eos = false; | 746 | 3 | } | 747 | 12.4k | } | 748 | 28.1k | return Status::OK(); | 749 | 28.1k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 559k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 559k | auto& local_state = get_local_state(state); | 723 | 560k | if (need_more_input_data(state)) { | 724 | 560k | local_state._child_block->clear_column_data( | 725 | 560k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 560k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 560k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 560k | *eos = local_state._child_eos; | 729 | 560k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 46.1k | return Status::OK(); | 731 | 46.1k | } | 732 | 514k | { | 733 | 514k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 514k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 514k | } | 736 | 514k | } | 737 | | | 738 | 513k | if (!need_more_input_data(state)) { | 739 | 479k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 479k | bool new_eos = false; | 741 | 479k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 479k | if (new_eos) { | 743 | 478k | *eos = true; | 744 | 478k | } else if (!need_more_input_data(state)) { | 745 | 0 | *eos = false; | 746 | 0 | } | 747 | 479k | } | 748 | 513k | return Status::OK(); | 749 | 513k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 28.0k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 28.0k | auto& local_state = get_local_state(state); | 723 | 28.0k | if (need_more_input_data(state)) { | 724 | 16.1k | local_state._child_block->clear_column_data( | 725 | 16.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 16.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 16.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 16.1k | *eos = local_state._child_eos; | 729 | 16.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 2.16k | return Status::OK(); | 731 | 2.16k | } | 732 | 14.0k | { | 733 | 14.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 14.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 14.0k | } | 736 | 14.0k | } | 737 | | | 738 | 25.9k | if (!need_more_input_data(state)) { | 739 | 25.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 25.4k | bool new_eos = false; | 741 | 25.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 25.4k | if (new_eos) { | 743 | 9.39k | *eos = true; | 744 | 16.0k | } else if (!need_more_input_data(state)) { | 745 | 11.9k | *eos = false; | 746 | 11.9k | } | 747 | 25.4k | } | 748 | 25.9k | return Status::OK(); | 749 | 25.9k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 7.96k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 7.96k | auto& local_state = get_local_state(state); | 723 | 7.96k | if (need_more_input_data(state)) { | 724 | 7.59k | local_state._child_block->clear_column_data( | 725 | 7.59k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 7.59k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 7.59k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 7.59k | *eos = local_state._child_eos; | 729 | 7.59k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 548 | return Status::OK(); | 731 | 548 | } | 732 | 7.04k | { | 733 | 7.04k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 7.04k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 7.04k | } | 736 | 7.04k | } | 737 | | | 738 | 7.41k | if (!need_more_input_data(state)) { | 739 | 7.40k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 7.40k | bool new_eos = false; | 741 | 7.40k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 7.40k | if (new_eos) { | 743 | 5.40k | *eos = true; | 744 | 5.40k | } else if (!need_more_input_data(state)) { | 745 | 366 | *eos = false; | 746 | 366 | } | 747 | 7.40k | } | 748 | 7.41k | return Status::OK(); | 749 | 7.41k | } |
|
750 | | |
751 | | template <typename Writer, typename Parent> |
752 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
753 | 69.8k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
754 | 69.8k | RETURN_IF_ERROR(Base::init(state, info)); |
755 | 69.8k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
756 | 69.8k | "AsyncWriterDependency", true); |
757 | 69.8k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
758 | 69.8k | _finish_dependency)); |
759 | | |
760 | 69.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
761 | 69.8k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
762 | 69.8k | return Status::OK(); |
763 | 69.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 524 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 524 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 524 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 524 | "AsyncWriterDependency", true); | 757 | 524 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 524 | _finish_dependency)); | 759 | | | 760 | 524 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 524 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 524 | return Status::OK(); | 763 | 524 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 88 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 88 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 88 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 88 | "AsyncWriterDependency", true); | 757 | 88 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 88 | _finish_dependency)); | 759 | | | 760 | 88 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 88 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 88 | return Status::OK(); | 763 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 54.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 54.0k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 54.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 54.0k | "AsyncWriterDependency", true); | 757 | 54.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 54.0k | _finish_dependency)); | 759 | | | 760 | 54.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 54.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 54.0k | return Status::OK(); | 763 | 54.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 5.63k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 5.63k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 5.63k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 5.63k | "AsyncWriterDependency", true); | 757 | 5.63k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 5.63k | _finish_dependency)); | 759 | | | 760 | 5.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 5.63k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 5.63k | return Status::OK(); | 763 | 5.63k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 5.15k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 5.15k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 5.15k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 5.15k | "AsyncWriterDependency", true); | 757 | 5.15k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 5.15k | _finish_dependency)); | 759 | | | 760 | 5.15k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 5.15k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 5.15k | return Status::OK(); | 763 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 3.38k | "AsyncWriterDependency", true); | 757 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 3.38k | _finish_dependency)); | 759 | | | 760 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 3.38k | return Status::OK(); | 763 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 160 | "AsyncWriterDependency", true); | 757 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 160 | _finish_dependency)); | 759 | | | 760 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 160 | return Status::OK(); | 763 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 640 | "AsyncWriterDependency", true); | 757 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 640 | _finish_dependency)); | 759 | | | 760 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 640 | return Status::OK(); | 763 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 156 | "AsyncWriterDependency", true); | 757 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 156 | _finish_dependency)); | 759 | | | 760 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 156 | return Status::OK(); | 763 | 156 | } |
|
764 | | |
765 | | template <typename Writer, typename Parent> |
766 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
767 | 70.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
768 | 70.1k | RETURN_IF_ERROR(Base::open(state)); |
769 | 70.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
770 | 615k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
771 | 545k | RETURN_IF_ERROR( |
772 | 545k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
773 | 545k | } |
774 | 70.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
775 | 70.1k | return Status::OK(); |
776 | 70.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 524 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 524 | RETURN_IF_ERROR(Base::open(state)); | 769 | 524 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 2.80k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 2.27k | RETURN_IF_ERROR( | 772 | 2.27k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 2.27k | } | 774 | 524 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 524 | return Status::OK(); | 776 | 524 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 88 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 88 | RETURN_IF_ERROR(Base::open(state)); | 769 | 88 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 412 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 324 | RETURN_IF_ERROR( | 772 | 324 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 324 | } | 774 | 88 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 88 | return Status::OK(); | 776 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 54.4k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 54.4k | RETURN_IF_ERROR(Base::open(state)); | 769 | 54.4k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 390k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 336k | RETURN_IF_ERROR( | 772 | 336k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 336k | } | 774 | 54.4k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 54.4k | return Status::OK(); | 776 | 54.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 5.61k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 5.61k | RETURN_IF_ERROR(Base::open(state)); | 769 | 5.61k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 39.4k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 33.8k | RETURN_IF_ERROR( | 772 | 33.8k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 33.8k | } | 774 | 5.61k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 5.61k | return Status::OK(); | 776 | 5.61k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 5.14k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 5.14k | RETURN_IF_ERROR(Base::open(state)); | 769 | 5.14k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 134k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 128k | RETURN_IF_ERROR( | 772 | 128k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 128k | } | 774 | 5.14k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 5.14k | return Status::OK(); | 776 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 769 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 42.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 38.8k | RETURN_IF_ERROR( | 772 | 38.8k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 38.8k | } | 774 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 3.38k | return Status::OK(); | 776 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 160 | RETURN_IF_ERROR(Base::open(state)); | 769 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 478 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 318 | RETURN_IF_ERROR( | 772 | 318 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 318 | } | 774 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 160 | return Status::OK(); | 776 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 640 | RETURN_IF_ERROR(Base::open(state)); | 769 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 4.39k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 3.75k | RETURN_IF_ERROR( | 772 | 3.75k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 3.75k | } | 774 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 640 | return Status::OK(); | 776 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 156 | RETURN_IF_ERROR(Base::open(state)); | 769 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 630 | RETURN_IF_ERROR( | 772 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 630 | } | 774 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 156 | return Status::OK(); | 776 | 156 | } |
|
777 | | |
778 | | template <typename Writer, typename Parent> |
779 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
780 | 92.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
781 | 92.0k | return _writer->sink(block, eos); |
782 | 92.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 2.65k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 2.65k | return _writer->sink(block, eos); | 782 | 2.65k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 112 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 112 | return _writer->sink(block, eos); | 782 | 112 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 68.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 68.4k | return _writer->sink(block, eos); | 782 | 68.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 6.67k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 6.67k | return _writer->sink(block, eos); | 782 | 6.67k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 7.49k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 7.49k | return _writer->sink(block, eos); | 782 | 7.49k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 5.34k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 5.34k | return _writer->sink(block, eos); | 782 | 5.34k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 180 | return _writer->sink(block, eos); | 782 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 806 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 806 | return _writer->sink(block, eos); | 782 | 806 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 310 | return _writer->sink(block, eos); | 782 | 310 | } |
|
783 | | |
784 | | template <typename Writer, typename Parent> |
785 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
786 | 70.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
787 | 70.2k | if (_closed) { |
788 | 0 | return Status::OK(); |
789 | 0 | } |
790 | 70.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
791 | 70.2k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
792 | | // if the init failed, the _writer may be nullptr. so here need check |
793 | 70.2k | if (_writer) { |
794 | 70.2k | Status st = _writer->get_writer_status(); |
795 | 70.2k | if (exec_status.ok()) { |
796 | 70.1k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
797 | 70.1k | : Status::Cancelled("force close")); |
798 | 70.1k | } else { |
799 | 106 | _writer->force_close(exec_status); |
800 | 106 | } |
801 | | // If there is an error in process_block thread, then we should get the writer |
802 | | // status before call force_close. For example, the thread may failed in commit |
803 | | // transaction. |
804 | 70.2k | RETURN_IF_ERROR(st); |
805 | 70.2k | } |
806 | 70.1k | return Base::close(state, exec_status); |
807 | 70.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 512 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 512 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 512 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 512 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 512 | if (_writer) { | 794 | 512 | Status st = _writer->get_writer_status(); | 795 | 512 | if (exec_status.ok()) { | 796 | 512 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 512 | : Status::Cancelled("force close")); | 798 | 512 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 512 | RETURN_IF_ERROR(st); | 805 | 512 | } | 806 | 512 | return Base::close(state, exec_status); | 807 | 512 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 88 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 88 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 88 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 88 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 88 | if (_writer) { | 794 | 88 | Status st = _writer->get_writer_status(); | 795 | 88 | if (exec_status.ok()) { | 796 | 88 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 88 | : Status::Cancelled("force close")); | 798 | 88 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 88 | RETURN_IF_ERROR(st); | 805 | 88 | } | 806 | 80 | return Base::close(state, exec_status); | 807 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 54.5k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 54.5k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 54.5k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 54.5k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 54.5k | if (_writer) { | 794 | 54.5k | Status st = _writer->get_writer_status(); | 795 | 54.5k | if (exec_status.ok()) { | 796 | 54.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 54.4k | : Status::Cancelled("force close")); | 798 | 54.4k | } else { | 799 | 70 | _writer->force_close(exec_status); | 800 | 70 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 54.5k | RETURN_IF_ERROR(st); | 805 | 54.5k | } | 806 | 54.4k | return Base::close(state, exec_status); | 807 | 54.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 5.62k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 5.62k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 5.62k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 5.62k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 5.63k | if (_writer) { | 794 | 5.63k | Status st = _writer->get_writer_status(); | 795 | 5.63k | if (exec_status.ok()) { | 796 | 5.59k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 5.59k | : Status::Cancelled("force close")); | 798 | 5.59k | } else { | 799 | 36 | _writer->force_close(exec_status); | 800 | 36 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 5.63k | RETURN_IF_ERROR(st); | 805 | 5.63k | } | 806 | 5.62k | return Base::close(state, exec_status); | 807 | 5.62k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 5.14k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 5.14k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 5.14k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 5.15k | if (_writer) { | 794 | 5.15k | Status st = _writer->get_writer_status(); | 795 | 5.15k | if (exec_status.ok()) { | 796 | 5.15k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 5.15k | : Status::Cancelled("force close")); | 798 | 5.15k | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 5.15k | RETURN_IF_ERROR(st); | 805 | 5.15k | } | 806 | 5.14k | return Base::close(state, exec_status); | 807 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 3.38k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 3.38k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 3.38k | if (_writer) { | 794 | 3.38k | Status st = _writer->get_writer_status(); | 795 | 3.38k | if (exec_status.ok()) { | 796 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 3.38k | : Status::Cancelled("force close")); | 798 | 3.38k | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 3.38k | RETURN_IF_ERROR(st); | 805 | 3.38k | } | 806 | 3.38k | return Base::close(state, exec_status); | 807 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 160 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 160 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 160 | if (_writer) { | 794 | 160 | Status st = _writer->get_writer_status(); | 795 | 160 | if (exec_status.ok()) { | 796 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 160 | : Status::Cancelled("force close")); | 798 | 160 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 160 | RETURN_IF_ERROR(st); | 805 | 160 | } | 806 | 160 | return Base::close(state, exec_status); | 807 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 640 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 640 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 640 | if (_writer) { | 794 | 640 | Status st = _writer->get_writer_status(); | 795 | 640 | if (exec_status.ok()) { | 796 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 640 | : Status::Cancelled("force close")); | 798 | 640 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 640 | RETURN_IF_ERROR(st); | 805 | 640 | } | 806 | 640 | return Base::close(state, exec_status); | 807 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 156 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 156 | if (_writer) { | 794 | 156 | Status st = _writer->get_writer_status(); | 795 | 156 | if (exec_status.ok()) { | 796 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 156 | : Status::Cancelled("force close")); | 798 | 156 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 156 | RETURN_IF_ERROR(st); | 805 | 156 | } | 806 | 156 | return Base::close(state, exec_status); | 807 | 156 | } |
|
808 | | |
809 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
810 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
811 | | DECLARE_OPERATOR(ResultSinkLocalState) |
812 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
813 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
814 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
815 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
816 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
817 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
818 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
819 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
820 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
821 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
822 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
823 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
824 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
825 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
826 | | DECLARE_OPERATOR(SortSinkLocalState) |
827 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
828 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
829 | | DECLARE_OPERATOR(AggSinkLocalState) |
830 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
831 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
832 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
833 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
834 | | DECLARE_OPERATOR(UnionSinkLocalState) |
835 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
836 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
837 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
838 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
839 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
840 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
841 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
842 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
843 | | DECLARE_OPERATOR(CacheSinkLocalState) |
844 | | DECLARE_OPERATOR(DictSinkLocalState) |
845 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
846 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
847 | | |
848 | | #undef DECLARE_OPERATOR |
849 | | |
850 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
851 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
852 | | DECLARE_OPERATOR(OlapScanLocalState) |
853 | | DECLARE_OPERATOR(GroupCommitLocalState) |
854 | | DECLARE_OPERATOR(JDBCScanLocalState) |
855 | | DECLARE_OPERATOR(FileScanLocalState) |
856 | | DECLARE_OPERATOR(AnalyticLocalState) |
857 | | DECLARE_OPERATOR(SortLocalState) |
858 | | DECLARE_OPERATOR(SpillSortLocalState) |
859 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
860 | | DECLARE_OPERATOR(AggLocalState) |
861 | | DECLARE_OPERATOR(BucketedAggLocalState) |
862 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
863 | | DECLARE_OPERATOR(TableFunctionLocalState) |
864 | | DECLARE_OPERATOR(ExchangeLocalState) |
865 | | DECLARE_OPERATOR(RepeatLocalState) |
866 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
867 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
868 | | DECLARE_OPERATOR(EmptySetLocalState) |
869 | | DECLARE_OPERATOR(UnionSourceLocalState) |
870 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
871 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
872 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
873 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
874 | | DECLARE_OPERATOR(DataGenLocalState) |
875 | | DECLARE_OPERATOR(SchemaScanLocalState) |
876 | | DECLARE_OPERATOR(MetaScanLocalState) |
877 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
878 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
879 | | DECLARE_OPERATOR(CacheSourceLocalState) |
880 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
881 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
882 | | |
883 | | #ifdef BE_TEST |
884 | | DECLARE_OPERATOR(MockLocalState) |
885 | | DECLARE_OPERATOR(MockScanLocalState) |
886 | | #endif |
887 | | #undef DECLARE_OPERATOR |
888 | | |
889 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
890 | | template class StreamingOperatorX<SelectLocalState>; |
891 | | |
892 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
893 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
894 | | template class StatefulOperatorX<RepeatLocalState>; |
895 | | template class StatefulOperatorX<MaterializationLocalState>; |
896 | | template class StatefulOperatorX<StreamingAggLocalState>; |
897 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
898 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
899 | | template class StatefulOperatorX<TableFunctionLocalState>; |
900 | | |
901 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
902 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
903 | | template class PipelineXSinkLocalState<SortSharedState>; |
904 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
905 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
906 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
907 | | template class PipelineXSinkLocalState<AggSharedState>; |
908 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
909 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
910 | | template class PipelineXSinkLocalState<FakeSharedState>; |
911 | | template class PipelineXSinkLocalState<UnionSharedState>; |
912 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
913 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
914 | | template class PipelineXSinkLocalState<SetSharedState>; |
915 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
916 | | template class PipelineXSinkLocalState<BasicSharedState>; |
917 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
918 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
919 | | |
920 | | template class PipelineXLocalState<HashJoinSharedState>; |
921 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
922 | | template class PipelineXLocalState<SortSharedState>; |
923 | | template class PipelineXLocalState<SpillSortSharedState>; |
924 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
925 | | template class PipelineXLocalState<AnalyticSharedState>; |
926 | | template class PipelineXLocalState<AggSharedState>; |
927 | | template class PipelineXLocalState<BucketedAggSharedState>; |
928 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
929 | | template class PipelineXLocalState<FakeSharedState>; |
930 | | template class PipelineXLocalState<UnionSharedState>; |
931 | | template class PipelineXLocalState<DataQueueSharedState>; |
932 | | template class PipelineXLocalState<MultiCastSharedState>; |
933 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
934 | | template class PipelineXLocalState<SetSharedState>; |
935 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
936 | | template class PipelineXLocalState<BasicSharedState>; |
937 | | template class PipelineXLocalState<RecCTESharedState>; |
938 | | |
939 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
940 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
941 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
942 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
943 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
944 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
945 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
946 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
947 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
948 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
949 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
950 | | |
951 | | #ifdef BE_TEST |
952 | | template class OperatorX<DummyOperatorLocalState>; |
953 | | template class DataSinkOperatorX<DummySinkLocalState>; |
954 | | #endif |
955 | | |
956 | | } // namespace doris |