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