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