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