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.83M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.83M | if (_parent->nereids_id() == -1) { |
122 | 986k | return fmt::format("(id={})", _parent->node_id()); |
123 | 986k | } else { |
124 | 845k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 845k | } |
126 | 1.83M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 78.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 78.1k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 78.1k | } else { | 124 | 78.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 78.1k | } | 126 | 78.1k | } |
_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 | 210k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 210k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 210k | } else { | 124 | 210k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 210k | } | 126 | 210k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 25 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 25 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 25 | } else { | 124 | 25 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 25 | } | 126 | 25 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 8.57k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 8.57k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 8.57k | } else { | 124 | 8.57k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 8.57k | } | 126 | 8.57k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 9.44k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 9.44k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 9.43k | } else { | 124 | 9.43k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 9.43k | } | 126 | 9.44k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 97.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 97.9k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 97.8k | } else { | 124 | 97.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 97.8k | } | 126 | 97.9k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 60.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 60.3k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 60.3k | } else { | 124 | 60.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 60.3k | } | 126 | 60.3k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 144 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 144 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 144 | } else { | 124 | 144 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 144 | } | 126 | 144 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 606k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 606k | if (_parent->nereids_id() == -1) { | 122 | 286k | return fmt::format("(id={})", _parent->node_id()); | 123 | 320k | } else { | 124 | 320k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 320k | } | 126 | 606k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 55.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 55.4k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 55.4k | } else { | 124 | 55.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 55.4k | } | 126 | 55.4k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 6.81k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 6.81k | if (_parent->nereids_id() == -1) { | 122 | 6.81k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 6.81k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 426 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 426 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 324 | } else { | 124 | 324 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 324 | } | 126 | 426 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.14k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.14k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.13k | } else { | 124 | 5.13k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.13k | } | 126 | 5.14k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 692k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 693k | if (_parent->nereids_id() == -1) { | 122 | 693k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 692k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 169 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 169 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 169 | } else { | 124 | 169 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 169 | } | 126 | 169 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.24M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.24M | if (_parent->nereids_id() == -1) { |
131 | 716k | return fmt::format("(id={})", _parent->node_id()); |
132 | 716k | } else { |
133 | 532k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 532k | } |
135 | 1.24M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 128k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 128k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 128k | } else { | 133 | 128k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 128k | } | 135 | 128k | } |
_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 | 214k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 214k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 214k | } else { | 133 | 214k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 214k | } | 135 | 214k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 32 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 32 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 32 | } else { | 133 | 32 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 32 | } | 135 | 32 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 8.73k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 8.73k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 8.73k | } else { | 133 | 8.73k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 8.73k | } | 135 | 8.73k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.48k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.48k | if (_parent->nereids_id() == -1) { | 131 | 12 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.46k | } else { | 133 | 9.46k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.46k | } | 135 | 9.48k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 98.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 98.6k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 98.6k | } else { | 133 | 98.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 98.6k | } | 135 | 98.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 60.2k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 60.2k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 60.2k | } else { | 133 | 60.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 60.2k | } | 135 | 60.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 154 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 154 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 154 | } else { | 133 | 154 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 154 | } | 135 | 154 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_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_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 11.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 11.8k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 11.8k | } else { | 133 | 11.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 11.8k | } | 135 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 429 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 429 | if (_parent->nereids_id() == -1) { | 131 | 102 | 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 | 429 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.5k | if (_parent->nereids_id() == -1) { | 131 | 12.5k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 296k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 296k | if (_parent->nereids_id() == -1) { | 131 | 296k | 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 | 296k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 407k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 407k | if (_parent->nereids_id() == -1) { | 131 | 407k | return fmt::format("(id={})", _parent->node_id()); | 132 | 407k | } else { | 133 | 215 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 215 | } | 135 | 407k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 338 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 338 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 338 | } else { | 133 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 338 | } | 135 | 338 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 30.7k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 30.7k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 30.7k | _terminated = true; |
143 | 30.7k | return Status::OK(); |
144 | 30.7k | } _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 | 2.74k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.74k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.74k | _terminated = true; | 143 | 2.74k | return Status::OK(); | 144 | 2.74k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_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 | 1.97k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.97k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.97k | _terminated = true; | 143 | 1.97k | return Status::OK(); | 144 | 1.97k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 638 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 638 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 638 | _terminated = true; | 143 | 638 | return Status::OK(); | 144 | 638 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_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_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 395 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 395 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 395 | _terminated = true; | 143 | 395 | return Status::OK(); | 144 | 395 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 321 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 321 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 321 | _terminated = true; | 143 | 321 | return Status::OK(); | 144 | 321 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_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 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 230 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 230 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 230 | _terminated = true; | 143 | 230 | return Status::OK(); | 144 | 230 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 12 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 12 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 12 | _terminated = true; | 143 | 12 | return Status::OK(); | 144 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 270 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 270 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 270 | _terminated = true; | 143 | 270 | return Status::OK(); | 144 | 270 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 131 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 131 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 131 | _terminated = true; | 143 | 131 | return Status::OK(); | 144 | 131 | } |
|
145 | | |
146 | 317k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 317k | return _child && _child->is_serial_operator() && !is_source() |
148 | 317k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 317k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 317k | } |
151 | | |
152 | 25.7k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 25.7k | if (!_child) { |
154 | 24.4k | return false; |
155 | 24.4k | } |
156 | 1.33k | if (_child->is_serial_operator()) { |
157 | 150 | return true; |
158 | 150 | } |
159 | 1.18k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 1.18k | return child_distribution.need_local_exchange() && |
161 | 1.18k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.33k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 17.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 17.0k | fmt::memory_buffer debug_string_buffer; |
167 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 17.0k | return fmt::to_string(debug_string_buffer); |
169 | 17.0k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 3 | fmt::memory_buffer debug_string_buffer; | 167 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 3 | return fmt::to_string(debug_string_buffer); | 169 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 17.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 17.0k | fmt::memory_buffer debug_string_buffer; | 167 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 17.0k | return fmt::to_string(debug_string_buffer); | 169 | 17.0k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 1 | fmt::memory_buffer debug_string_buffer; | 167 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 1 | return fmt::to_string(debug_string_buffer); | 169 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 17.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 17.0k | fmt::memory_buffer debug_string_buffer; |
174 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 17.0k | return fmt::to_string(debug_string_buffer); |
176 | 17.0k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 17.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 17.0k | fmt::memory_buffer debug_string_buffer; | 174 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 17.0k | return fmt::to_string(debug_string_buffer); | 176 | 17.0k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 17.0k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 17.0k | fmt::memory_buffer debug_string_buffer; |
180 | 17.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 17.0k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 17.0k | _is_serial_operator); |
183 | 17.0k | return fmt::to_string(debug_string_buffer); |
184 | 17.0k | } |
185 | | |
186 | 17.0k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 17.0k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 17.0k | } |
189 | | |
190 | 668k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 668k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 668k | _nereids_id = tnode.nereids_id; |
193 | 668k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.87k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.87k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.87k | tnode.intermediate_projections_list.size()) { |
199 | 0 | return Status::InternalError( |
200 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
201 | 0 | "intermediate_projections_list size:{}", |
202 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
203 | 0 | tnode.intermediate_projections_list.size()); |
204 | 0 | } |
205 | 3.87k | } |
206 | 668k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 668k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 668k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 668k | } else if (tnode.__isset.conjuncts) { |
212 | 273k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 273k | VExprContextSPtr context; |
214 | 273k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 273k | _conjuncts.emplace_back(context); |
216 | 273k | } |
217 | 99.1k | } |
218 | | |
219 | | // create the projections expr |
220 | 668k | if (tnode.__isset.projections) { |
221 | 260k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 260k | } |
223 | 668k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.87k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.87k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 6.57k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 6.57k | VExprContextSPtrs projections; |
228 | 6.57k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 6.57k | _projection->intermediate_projections.push_back(projections); |
230 | 6.57k | } |
231 | 3.87k | } |
232 | 668k | return Status::OK(); |
233 | 668k | } |
234 | | |
235 | 695k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 695k | for (auto& conjunct : _conjuncts) { |
237 | 273k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 273k | } |
239 | 695k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 644k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 340k | return a->execute_cost() < b->execute_cost(); |
242 | 340k | }); |
243 | 644k | }; |
244 | | |
245 | 695k | if (has_projection()) { |
246 | 260k | auto& projection = *_projection; |
247 | 267k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 6.57k | const auto& input_row_desc = |
249 | 6.57k | i == 0 ? operator_row_desc_before_projection() |
250 | 6.57k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 6.57k | RETURN_IF_ERROR( |
252 | 6.57k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 6.57k | } |
254 | 260k | const auto& final_projection_input_row_desc = |
255 | 260k | projection.intermediate_output_row_descriptors.empty() |
256 | 260k | ? operator_row_desc_before_projection() |
257 | 260k | : projection.intermediate_output_row_descriptors.back(); |
258 | 260k | RETURN_IF_ERROR( |
259 | 260k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 260k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 260k | projection.output_row_descriptor)); |
262 | 260k | } |
263 | | |
264 | 695k | for (auto& conjunct : _conjuncts) { |
265 | 273k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 273k | } |
267 | 695k | if (has_projection()) { |
268 | 260k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 260k | for (auto& projections : _projection->intermediate_projections) { |
270 | 6.57k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 6.57k | } |
272 | 260k | } |
273 | 695k | if (_child && !is_source()) { |
274 | 98.9k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 98.9k | } |
276 | | |
277 | 695k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 695k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 695k | return Status::OK(); |
283 | 695k | } |
284 | | |
285 | 7.59k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 7.59k | if (_child && !is_source()) { |
287 | 828 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 828 | } |
289 | 7.59k | auto result = state->get_local_state_result(operator_id()); |
290 | 7.59k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 7.59k | return result.value()->terminate(state); |
294 | 7.59k | } |
295 | | |
296 | 4.96M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 4.96M | if (_child && !is_source()) { |
298 | 803k | RETURN_IF_ERROR(_child->close(state)); |
299 | 803k | } |
300 | 4.96M | auto result = state->get_local_state_result(operator_id()); |
301 | 4.96M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 4.96M | return result.value()->close(state); |
305 | 4.96M | } |
306 | | |
307 | 313k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 313k | _origin_block.clear_column_data( |
309 | 313k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 313k | } |
311 | | |
312 | 682k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 682k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 682k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 682k | return Status::OK(); |
317 | 682k | } |
318 | | |
319 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
320 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
321 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
322 | 0 | } |
323 | | |
324 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
325 | 313k | Block* output_block) const { |
326 | 313k | auto* local_state = state->get_local_state(operator_id()); |
327 | 313k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 313k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 313k | const size_t rows = origin_block->rows(); |
330 | 313k | if (rows == 0) { |
331 | 166k | return Status::OK(); |
332 | 166k | } |
333 | 146k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 146k | { |
336 | 146k | Block input_block = *origin_block; |
337 | | |
338 | 146k | ColumnsWithTypeAndName new_columns; |
339 | 146k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 3.75k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 3.75k | new_columns.resize(projections.size()); |
345 | 70.7k | for (int i = 0; i < projections.size(); i++) { |
346 | 67.0k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 67.0k | if (new_columns[i].column->size() != rows) { |
348 | 0 | return Status::InternalError( |
349 | 0 | "intermediate projection result column size {} not equal input rows " |
350 | 0 | "{}, expr: {}", |
351 | 0 | new_columns[i].column->size(), rows, |
352 | 0 | projections[i]->root()->debug_string()); |
353 | 0 | } |
354 | 67.0k | } |
355 | 3.74k | Block tmp_block {new_columns}; |
356 | 3.74k | input_block.swap(tmp_block); |
357 | 3.74k | } |
358 | | |
359 | 146k | if (input_block.rows() != rows) { |
360 | 0 | return Status::InternalError( |
361 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
362 | 0 | "input_block: {}", |
363 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
364 | 0 | } |
365 | | |
366 | 146k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 146k | output_block, _projection->output_row_descriptor); |
368 | 146k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 146k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 146k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 840k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 694k | ColumnPtr column_ptr; |
374 | 694k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 694k | if (column_ptr->size() != rows) { |
376 | 0 | return Status::InternalError( |
377 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
378 | 0 | column_ptr->size(), rows, |
379 | 0 | local_state->_projections[i]->root()->debug_string()); |
380 | 0 | } |
381 | 694k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 694k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 694k | if (column_ptr->is_exclusive()) { |
386 | 241k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 453k | } else { |
388 | 453k | shared_columns[i] = std::move(column_ptr); |
389 | 453k | } |
390 | 694k | } |
391 | | |
392 | 146k | scoped_mutable_block.restore(); |
393 | 841k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 694k | if (shared_columns[i]) { |
395 | 453k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 453k | } |
397 | 694k | } |
398 | 146k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 146k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 146k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 146k | return Status::OK(); |
405 | 146k | } |
406 | | |
407 | 4.13M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 4.13M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 4.13M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 4.13M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 4.13M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 4.13M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 4.13M | if (_debug_point_count++ % 2 == 0) { |
414 | 4.13M | return Status::OK(); |
415 | 4.13M | } |
416 | 4.13M | } |
417 | 4.13M | }); |
418 | | |
419 | 4.13M | Status status; |
420 | 4.13M | auto* local_state = state->get_local_state(operator_id()); |
421 | 4.13M | Defer defer([&]() { |
422 | 4.13M | if (status.ok()) { |
423 | 4.13M | local_state->update_output_block_counters(*block); |
424 | 4.13M | } |
425 | 4.12M | }); |
426 | 4.13M | if (has_projection()) { |
427 | 313k | local_state->clear_origin_block(); |
428 | 313k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 313k | if (UNLIKELY(!status.ok())) { |
430 | 25 | return status; |
431 | 25 | } |
432 | 313k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 313k | return status; |
434 | 313k | } |
435 | 3.81M | status = get_block(state, block, eos); |
436 | 3.81M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.81M | return status; |
438 | 3.81M | } |
439 | | |
440 | 2.73M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.73M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 9.49k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 9.49k | *eos = true; |
444 | 9.49k | } |
445 | | |
446 | 2.73M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.73M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.73M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.73M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.73M | if (op_name == arg_op_name) { |
452 | 2.73M | *eos = true; |
453 | 2.73M | } |
454 | 2.73M | }); |
455 | | |
456 | 2.73M | if (auto rows = block->rows()) { |
457 | 772k | _num_rows_returned += rows; |
458 | 772k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 772k | } |
460 | 2.73M | } |
461 | | |
462 | 30.7k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 30.7k | auto result = state->get_sink_local_state_result(); |
464 | 30.7k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 30.7k | return result.value()->terminate(state); |
468 | 30.7k | } |
469 | | |
470 | 17.0k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 17.0k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 17.0k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 17.0k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 17.0k | return fmt::to_string(debug_string_buffer); |
476 | 17.0k | } |
477 | | |
478 | 17.0k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 17.0k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 17.0k | } |
481 | | |
482 | 342k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 342k | std::string op_name = "UNKNOWN_SINK"; |
484 | 342k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 343k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 343k | op_name = it->second; |
488 | 343k | } |
489 | 342k | _name = op_name + "_OPERATOR"; |
490 | 342k | return Status::OK(); |
491 | 342k | } |
492 | | |
493 | 300k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 300k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 300k | _nereids_id = tnode.nereids_id; |
496 | 300k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 300k | _name = substr + "_SINK_OPERATOR"; |
498 | 300k | return Status::OK(); |
499 | 300k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.77M | LocalSinkStateInfo& info) { |
504 | 1.77M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.77M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.77M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.77M | return Status::OK(); |
508 | 1.77M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 128k | LocalSinkStateInfo& info) { | 504 | 128k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 128k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 128k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 128k | return Status::OK(); | 508 | 128k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 360k | LocalSinkStateInfo& info) { | 504 | 360k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 360k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 360k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 360k | return Status::OK(); | 508 | 360k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3 | LocalSinkStateInfo& info) { | 504 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3 | return Status::OK(); | 508 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 350 | LocalSinkStateInfo& info) { | 504 | 350 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 350 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 350 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 350 | return Status::OK(); | 508 | 350 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 45.9k | LocalSinkStateInfo& info) { | 504 | 45.9k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 45.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 45.9k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 45.9k | return Status::OK(); | 508 | 45.9k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 32 | LocalSinkStateInfo& info) { | 504 | 32 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 32 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 32 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 32 | return Status::OK(); | 508 | 32 | } |
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 | 503 | 9.47k | LocalSinkStateInfo& info) { | 504 | 9.47k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 9.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 9.47k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 9.47k | return Status::OK(); | 508 | 9.47k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 12 | LocalSinkStateInfo& info) { | 504 | 12 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 12 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 12 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 12 | return Status::OK(); | 508 | 12 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 214k | LocalSinkStateInfo& info) { | 504 | 214k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 214k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 214k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 214k | return Status::OK(); | 508 | 214k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 32 | LocalSinkStateInfo& info) { | 504 | 32 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 32 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 32 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 32 | return Status::OK(); | 508 | 32 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 296k | LocalSinkStateInfo& info) { | 504 | 296k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 296k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 296k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 296k | return Status::OK(); | 508 | 296k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 98.6k | LocalSinkStateInfo& info) { | 504 | 98.6k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 98.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 98.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 98.6k | return Status::OK(); | 508 | 98.6k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 60.2k | LocalSinkStateInfo& info) { | 504 | 60.2k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 60.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 60.2k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 60.2k | return Status::OK(); | 508 | 60.2k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 154 | LocalSinkStateInfo& info) { | 504 | 154 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 154 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 154 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 154 | return Status::OK(); | 508 | 154 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 520k | LocalSinkStateInfo& info) { | 504 | 520k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 520k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 520k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 520k | return Status::OK(); | 508 | 520k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 8.76k | LocalSinkStateInfo& info) { | 504 | 8.76k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 8.76k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 8.76k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 8.76k | return Status::OK(); | 508 | 8.76k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 11.8k | LocalSinkStateInfo& info) { | 504 | 11.8k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 11.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 11.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 11.8k | return Status::OK(); | 508 | 11.8k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.65k | LocalSinkStateInfo& info) { | 504 | 2.65k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.65k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.65k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.65k | return Status::OK(); | 508 | 2.65k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 326 | LocalSinkStateInfo& info) { | 504 | 326 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 326 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 326 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 326 | return Status::OK(); | 508 | 326 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.79k | LocalSinkStateInfo& info) { | 504 | 4.79k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.79k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.79k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.79k | return Status::OK(); | 508 | 4.79k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.53k | LocalSinkStateInfo& info) { | 504 | 2.53k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.53k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.53k | return Status::OK(); | 508 | 2.53k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.61k | LocalSinkStateInfo& info) { | 504 | 2.61k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.61k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.61k | return Status::OK(); | 508 | 2.61k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 2.49k | LocalSinkStateInfo& info) { | 504 | 2.49k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 2.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 2.49k | return Status::OK(); | 508 | 2.49k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1 | LocalSinkStateInfo& info) { | 504 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1 | return Status::OK(); | 508 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 568 | LocalSinkStateInfo& info) { | 504 | 568 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 568 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 568 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 568 | return Status::OK(); | 508 | 568 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 14 | LocalSinkStateInfo& info) { | 504 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 14 | return Status::OK(); | 508 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 107 | LocalSinkStateInfo& info) { | 504 | 107 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 107 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 107 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 107 | return Status::OK(); | 508 | 107 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 169 | LocalSinkStateInfo& info) { | 504 | 169 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 169 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 169 | return Status::OK(); | 508 | 169 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.37M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
513 | 0 | LocalExchangeSharedState>) { |
514 | 0 | return nullptr; |
515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
516 | 0 | MultiCastSharedState>) { |
517 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
518 | 1.37M | } else { |
519 | 1.37M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.37M | ss->id = operator_id(); |
521 | 1.37M | for (auto& dest : dests_id()) { |
522 | 1.36M | ss->related_op_ids.insert(dest); |
523 | 1.36M | } |
524 | 1.37M | return ss; |
525 | 1.37M | } |
526 | 1.37M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 105k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 105k | } else { | 519 | 105k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 105k | ss->id = operator_id(); | 521 | 105k | for (auto& dest : dests_id()) { | 522 | 104k | ss->related_op_ids.insert(dest); | 523 | 104k | } | 524 | 105k | return ss; | 525 | 105k | } | 526 | 105k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 361k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 361k | } else { | 519 | 361k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 361k | ss->id = operator_id(); | 521 | 361k | for (auto& dest : dests_id()) { | 522 | 360k | ss->related_op_ids.insert(dest); | 523 | 360k | } | 524 | 361k | return ss; | 525 | 361k | } | 526 | 361k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 3 | } else { | 519 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 3 | ss->id = operator_id(); | 521 | 3 | for (auto& dest : dests_id()) { | 522 | 3 | ss->related_op_ids.insert(dest); | 523 | 3 | } | 524 | 3 | return ss; | 525 | 3 | } | 526 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 350 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 350 | } else { | 519 | 350 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 350 | ss->id = operator_id(); | 521 | 350 | for (auto& dest : dests_id()) { | 522 | 349 | ss->related_op_ids.insert(dest); | 523 | 349 | } | 524 | 350 | return ss; | 525 | 350 | } | 526 | 350 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 46.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 46.1k | } else { | 519 | 46.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 46.1k | ss->id = operator_id(); | 521 | 46.1k | for (auto& dest : dests_id()) { | 522 | 45.8k | ss->related_op_ids.insert(dest); | 523 | 45.8k | } | 524 | 46.1k | return ss; | 525 | 46.1k | } | 526 | 46.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 32 | } else { | 519 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 32 | ss->id = operator_id(); | 521 | 32 | for (auto& dest : dests_id()) { | 522 | 32 | ss->related_op_ids.insert(dest); | 523 | 32 | } | 524 | 32 | return ss; | 525 | 32 | } | 526 | 32 | } |
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 | 511 | 9.50k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 9.50k | } else { | 519 | 9.50k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 9.50k | ss->id = operator_id(); | 521 | 9.50k | for (auto& dest : dests_id()) { | 522 | 9.50k | ss->related_op_ids.insert(dest); | 523 | 9.50k | } | 524 | 9.50k | return ss; | 525 | 9.50k | } | 526 | 9.50k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 11 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 11 | } else { | 519 | 11 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 11 | ss->id = operator_id(); | 521 | 11 | for (auto& dest : dests_id()) { | 522 | 9 | ss->related_op_ids.insert(dest); | 523 | 9 | } | 524 | 11 | return ss; | 525 | 11 | } | 526 | 11 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 215k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 215k | } else { | 519 | 215k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 215k | ss->id = operator_id(); | 521 | 215k | for (auto& dest : dests_id()) { | 522 | 215k | ss->related_op_ids.insert(dest); | 523 | 215k | } | 524 | 215k | return ss; | 525 | 215k | } | 526 | 215k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 34 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 34 | } else { | 519 | 34 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 34 | ss->id = operator_id(); | 521 | 34 | for (auto& dest : dests_id()) { | 522 | 34 | ss->related_op_ids.insert(dest); | 523 | 34 | } | 524 | 34 | return ss; | 525 | 34 | } | 526 | 34 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 99.2k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 99.2k | } else { | 519 | 99.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 99.2k | ss->id = operator_id(); | 521 | 99.2k | for (auto& dest : dests_id()) { | 522 | 99.2k | ss->related_op_ids.insert(dest); | 523 | 99.2k | } | 524 | 99.2k | return ss; | 525 | 99.2k | } | 526 | 99.2k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 153 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 153 | } else { | 519 | 153 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 153 | ss->id = operator_id(); | 521 | 153 | for (auto& dest : dests_id()) { | 522 | 153 | ss->related_op_ids.insert(dest); | 523 | 153 | } | 524 | 153 | return ss; | 525 | 153 | } | 526 | 153 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 523k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 523k | } else { | 519 | 523k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 523k | ss->id = operator_id(); | 521 | 523k | for (auto& dest : dests_id()) { | 522 | 517k | ss->related_op_ids.insert(dest); | 523 | 517k | } | 524 | 523k | return ss; | 525 | 523k | } | 526 | 523k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 8.84k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 8.84k | } else { | 519 | 8.84k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 8.84k | ss->id = operator_id(); | 521 | 8.85k | for (auto& dest : dests_id()) { | 522 | 8.85k | ss->related_op_ids.insert(dest); | 523 | 8.85k | } | 524 | 8.84k | return ss; | 525 | 8.84k | } | 526 | 8.84k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 426 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 426 | } else { | 519 | 426 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 426 | ss->id = operator_id(); | 521 | 428 | for (auto& dest : dests_id()) { | 522 | 428 | ss->related_op_ids.insert(dest); | 523 | 428 | } | 524 | 426 | return ss; | 525 | 426 | } | 526 | 426 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.61k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.61k | } else { | 519 | 2.61k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.61k | ss->id = operator_id(); | 521 | 2.61k | for (auto& dest : dests_id()) { | 522 | 2.61k | ss->related_op_ids.insert(dest); | 523 | 2.61k | } | 524 | 2.61k | return ss; | 525 | 2.61k | } | 526 | 2.61k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 2.50k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 2.50k | } else { | 519 | 2.50k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 2.50k | ss->id = operator_id(); | 521 | 2.50k | for (auto& dest : dests_id()) { | 522 | 2.49k | ss->related_op_ids.insert(dest); | 523 | 2.49k | } | 524 | 2.50k | return ss; | 525 | 2.50k | } | 526 | 2.50k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 567 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 567 | } else { | 519 | 567 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 567 | ss->id = operator_id(); | 521 | 567 | for (auto& dest : dests_id()) { | 522 | 555 | ss->related_op_ids.insert(dest); | 523 | 555 | } | 524 | 567 | return ss; | 525 | 567 | } | 526 | 567 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 107 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 512 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 513 | | LocalExchangeSharedState>) { | 514 | | return nullptr; | 515 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 516 | | MultiCastSharedState>) { | 517 | | throw Exception(Status::FatalError("should not reach here!")); | 518 | 107 | } else { | 519 | 107 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 107 | ss->id = operator_id(); | 521 | 107 | for (auto& dest : dests_id()) { | 522 | 105 | ss->related_op_ids.insert(dest); | 523 | 105 | } | 524 | 107 | return ss; | 525 | 107 | } | 526 | 107 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 2.09M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.09M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 2.09M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 2.09M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 2.09M | return Status::OK(); |
534 | 2.09M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 79.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 79.5k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 79.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 79.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 79.5k | return Status::OK(); | 534 | 79.5k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 243k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 243k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 243k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 243k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 243k | return Status::OK(); | 534 | 243k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 129 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 129 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 129 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 129 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 129 | return Status::OK(); | 534 | 129 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.09k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.09k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.09k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.09k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.09k | return Status::OK(); | 534 | 3.09k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 9.44k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 9.44k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 9.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 9.44k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 9.44k | return Status::OK(); | 534 | 9.44k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 9.35k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 9.35k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 9.35k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 9.35k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 9.35k | return Status::OK(); | 534 | 9.35k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 25 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 25 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 25 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 25 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 25 | return Status::OK(); | 534 | 25 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 205k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 205k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 205k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 205k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 205k | return Status::OK(); | 534 | 205k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 98.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 98.6k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 98.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 98.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 98.6k | return Status::OK(); | 534 | 98.6k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 60.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 60.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 60.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 60.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 60.4k | return Status::OK(); | 534 | 60.4k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 144 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 144 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 144 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 144 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 144 | return Status::OK(); | 534 | 144 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.71k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.71k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.71k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.71k | return Status::OK(); | 534 | 3.71k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 288k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 288k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 288k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 288k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 288k | return Status::OK(); | 534 | 288k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.31k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.31k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.31k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.31k | return Status::OK(); | 534 | 1.31k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.59k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.59k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 8.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 8.59k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 8.59k | return Status::OK(); | 534 | 8.59k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 27 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 27 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 27 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 27 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 27 | return Status::OK(); | 534 | 27 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 55.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 55.4k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 55.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 55.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 55.4k | return Status::OK(); | 534 | 55.4k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.85k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.85k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.85k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.85k | return Status::OK(); | 534 | 6.85k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 325 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 325 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 325 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 325 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 325 | return Status::OK(); | 534 | 325 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.63k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.63k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.63k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.63k | return Status::OK(); | 534 | 2.63k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.50k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.50k | return Status::OK(); | 534 | 2.50k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 326 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 326 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 326 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 326 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 326 | return Status::OK(); | 534 | 326 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.60k | return Status::OK(); | 534 | 1.60k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 10.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 10.3k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 10.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 10.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 10.3k | return Status::OK(); | 534 | 10.3k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 699k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 699k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 699k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 699k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 699k | return Status::OK(); | 534 | 699k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 14 | return Status::OK(); | 534 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 169 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 169 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 169 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 169 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 169 | return Status::OK(); | 534 | 169 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.20k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.20k | return Status::OK(); | 534 | 2.20k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 785 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 785 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 785 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 785 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 785 | return Status::OK(); | 534 | 785 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.08k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.08k | return Status::OK(); | 534 | 1.08k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.82k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.82k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.82k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.82k | return Status::OK(); | 534 | 6.82k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 294k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 294k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 294k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 294k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 294k | return Status::OK(); | 534 | 294k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.76M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 2.08M | : _num_rows_returned(0), |
542 | 2.08M | _rows_returned_counter(nullptr), |
543 | 2.08M | _parent(parent), |
544 | 2.08M | _state(state), |
545 | 2.08M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 2.10M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 2.10M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 2.10M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 2.10M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 2.10M | _operator_profile->set_metadata(_parent->node_id()); |
553 | | // indent is false so that source operator will have same |
554 | | // indentation_level with its parent operator. |
555 | 2.10M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 2.10M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 2.10M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 2.10M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 2.10M | if constexpr (!is_fake_shared) { |
560 | 1.24M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 777k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 777k | .first.get() |
563 | 777k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 777k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 777k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 777k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 777k | } else if (info.shared_state) { |
569 | 391k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
570 | 0 | DCHECK(false); |
571 | 0 | } |
572 | | // For UnionSourceOperator without children, there is no shared state. |
573 | 391k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 391k | _dependency = _shared_state->create_source_dependency( |
576 | 391k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 391k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 391k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 391k | } else { |
580 | 76.3k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 9.03k | DCHECK(false); |
582 | 9.03k | } |
583 | 76.3k | } |
584 | 1.24M | } |
585 | | |
586 | 2.10M | if (must_set_shared_state() && _shared_state == nullptr) { |
587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
588 | 0 | } |
589 | | |
590 | 2.10M | _rows_returned_counter = |
591 | 2.10M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 2.10M | _blocks_returned_counter = |
593 | 2.10M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 2.10M | _output_block_bytes_counter = |
595 | 2.10M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.10M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 2.10M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 2.10M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 2.10M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 2.10M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 2.10M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 2.10M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 2.10M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 2.10M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 2.10M | _memory_used_counter = |
606 | 2.10M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 2.10M | _common_profile->add_info_string("IsColocate", |
608 | 2.10M | std::to_string(_parent->is_colocated_operator())); |
609 | 2.10M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 2.10M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 2.10M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 2.10M | return Status::OK(); |
613 | 2.10M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 79.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 79.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 79.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 79.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 79.7k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 79.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 79.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 79.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 79.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 79.7k | if constexpr (!is_fake_shared) { | 560 | 79.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 21.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 21.7k | .first.get() | 563 | 21.7k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 21.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 21.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 21.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 58.0k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 55.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 55.7k | _dependency = _shared_state->create_source_dependency( | 576 | 55.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 55.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 55.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 55.7k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.28k | } | 584 | 79.7k | } | 585 | | | 586 | 79.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 79.7k | _rows_returned_counter = | 591 | 79.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 79.7k | _blocks_returned_counter = | 593 | 79.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 79.7k | _output_block_bytes_counter = | 595 | 79.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 79.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 79.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 79.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 79.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 79.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 79.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 79.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 79.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 79.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 79.7k | _memory_used_counter = | 606 | 79.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 79.7k | _common_profile->add_info_string("IsColocate", | 608 | 79.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 79.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 79.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 79.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 79.7k | return Status::OK(); | 613 | 79.7k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 1 | if constexpr (!is_fake_shared) { | 560 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 1 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 1 | _dependency = _shared_state->create_source_dependency( | 576 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 1 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 1 | } | 585 | | | 586 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 1 | _rows_returned_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 1 | _blocks_returned_counter = | 593 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 1 | _output_block_bytes_counter = | 595 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 1 | _memory_used_counter = | 606 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 1 | _common_profile->add_info_string("IsColocate", | 608 | 1 | std::to_string(_parent->is_colocated_operator())); | 609 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 1 | return Status::OK(); | 613 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 215k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 215k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 215k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 215k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 215k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 215k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 215k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 215k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 215k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 215k | if constexpr (!is_fake_shared) { | 560 | 215k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 215k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 203k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 203k | _dependency = _shared_state->create_source_dependency( | 576 | 203k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 203k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 203k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 203k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 11.3k | } | 584 | 215k | } | 585 | | | 586 | 215k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 215k | _rows_returned_counter = | 591 | 215k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 215k | _blocks_returned_counter = | 593 | 215k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 215k | _output_block_bytes_counter = | 595 | 215k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 215k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 215k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 215k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 215k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 215k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 215k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 215k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 215k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 215k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 215k | _memory_used_counter = | 606 | 215k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 215k | _common_profile->add_info_string("IsColocate", | 608 | 215k | std::to_string(_parent->is_colocated_operator())); | 609 | 215k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 215k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 215k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 215k | return Status::OK(); | 613 | 215k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 25 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 25 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 25 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 25 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 25 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 25 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 25 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 25 | if constexpr (!is_fake_shared) { | 560 | 25 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 25 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 25 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 25 | _dependency = _shared_state->create_source_dependency( | 576 | 25 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 25 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 25 | } | 585 | | | 586 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 25 | _rows_returned_counter = | 591 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 25 | _blocks_returned_counter = | 593 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 25 | _output_block_bytes_counter = | 595 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 25 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 25 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 25 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 25 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 25 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 25 | _memory_used_counter = | 606 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 25 | _common_profile->add_info_string("IsColocate", | 608 | 25 | std::to_string(_parent->is_colocated_operator())); | 609 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 25 | return Status::OK(); | 613 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 8.66k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 8.66k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 8.66k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 8.66k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 8.66k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 8.66k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 8.66k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 8.66k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 8.66k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 8.66k | if constexpr (!is_fake_shared) { | 560 | 8.66k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 8.66k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 8.48k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 8.48k | _dependency = _shared_state->create_source_dependency( | 576 | 8.48k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 8.48k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 8.48k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 8.48k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 188 | } | 584 | 8.66k | } | 585 | | | 586 | 8.66k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 8.66k | _rows_returned_counter = | 591 | 8.66k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 8.66k | _blocks_returned_counter = | 593 | 8.66k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 8.66k | _output_block_bytes_counter = | 595 | 8.66k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 8.66k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 8.66k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 8.66k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 8.66k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 8.66k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 8.66k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 8.66k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 8.66k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 8.66k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 8.66k | _memory_used_counter = | 606 | 8.66k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 8.66k | _common_profile->add_info_string("IsColocate", | 608 | 8.66k | std::to_string(_parent->is_colocated_operator())); | 609 | 8.66k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 8.66k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 8.66k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 8.66k | return Status::OK(); | 613 | 8.66k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 9.49k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 9.49k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 9.49k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 9.49k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 9.49k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 9.49k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 9.49k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 9.49k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 9.49k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 9.49k | if constexpr (!is_fake_shared) { | 560 | 9.49k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 9.49k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 9.43k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 9.43k | _dependency = _shared_state->create_source_dependency( | 576 | 9.43k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 9.43k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 9.43k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 9.43k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 57 | } | 584 | 9.49k | } | 585 | | | 586 | 9.49k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 9.49k | _rows_returned_counter = | 591 | 9.49k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 9.49k | _blocks_returned_counter = | 593 | 9.49k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 9.49k | _output_block_bytes_counter = | 595 | 9.49k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 9.49k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 9.49k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 9.49k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 9.49k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 9.49k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 9.49k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 9.49k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 9.49k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 9.49k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 9.49k | _memory_used_counter = | 606 | 9.49k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 9.49k | _common_profile->add_info_string("IsColocate", | 608 | 9.49k | std::to_string(_parent->is_colocated_operator())); | 609 | 9.49k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 9.49k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 9.49k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 9.49k | return Status::OK(); | 613 | 9.49k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 99.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 99.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 99.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 99.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 99.1k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 99.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 99.1k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 99.1k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 99.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 99.1k | if constexpr (!is_fake_shared) { | 560 | 99.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 99.1k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 96.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 96.4k | _dependency = _shared_state->create_source_dependency( | 576 | 96.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 96.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 96.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 96.4k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2.62k | } | 584 | 99.1k | } | 585 | | | 586 | 99.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 99.1k | _rows_returned_counter = | 591 | 99.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 99.1k | _blocks_returned_counter = | 593 | 99.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 99.1k | _output_block_bytes_counter = | 595 | 99.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 99.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 99.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 99.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 99.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 99.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 99.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 99.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 99.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 99.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 99.1k | _memory_used_counter = | 606 | 99.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 99.1k | _common_profile->add_info_string("IsColocate", | 608 | 99.1k | std::to_string(_parent->is_colocated_operator())); | 609 | 99.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 99.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 99.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 99.1k | return Status::OK(); | 613 | 99.1k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 60.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 60.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 60.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 60.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 60.4k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 60.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 60.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 60.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 60.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 60.4k | if constexpr (!is_fake_shared) { | 560 | 60.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 60.4k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 60.4k | .first.get() | 563 | 60.4k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 60.4k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 60.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 60.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 18.4E | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 18.4E | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 18.4E | } | 584 | 60.4k | } | 585 | | | 586 | 60.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 60.4k | _rows_returned_counter = | 591 | 60.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 60.4k | _blocks_returned_counter = | 593 | 60.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 60.4k | _output_block_bytes_counter = | 595 | 60.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 60.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 60.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 60.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 60.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 60.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 60.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 60.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 60.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 60.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 60.4k | _memory_used_counter = | 606 | 60.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 60.4k | _common_profile->add_info_string("IsColocate", | 608 | 60.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 60.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 60.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 60.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 60.4k | return Status::OK(); | 613 | 60.4k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 144 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 144 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 144 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 144 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 144 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 144 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 144 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 144 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 144 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 144 | if constexpr (!is_fake_shared) { | 560 | 144 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 144 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 144 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 144 | _dependency = _shared_state->create_source_dependency( | 576 | 144 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 144 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 144 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 144 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 144 | } | 585 | | | 586 | 144 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 144 | _rows_returned_counter = | 591 | 144 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 144 | _blocks_returned_counter = | 593 | 144 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 144 | _output_block_bytes_counter = | 595 | 144 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 144 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 144 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 144 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 144 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 144 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 144 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 144 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 144 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 144 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 144 | _memory_used_counter = | 606 | 144 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 144 | _common_profile->add_info_string("IsColocate", | 608 | 144 | std::to_string(_parent->is_colocated_operator())); | 609 | 144 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 144 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 144 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 144 | return Status::OK(); | 613 | 144 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 858k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 858k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 858k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 858k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 858k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 858k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 858k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 858k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 858k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | | if constexpr (!is_fake_shared) { | 560 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | | .first.get() | 563 | | ->template cast<SharedStateArg>(); | 564 | | | 565 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | | _dependency = _shared_state->create_source_dependency( | 576 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | | } | 584 | | } | 585 | | | 586 | 858k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 858k | _rows_returned_counter = | 591 | 858k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 858k | _blocks_returned_counter = | 593 | 858k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 858k | _output_block_bytes_counter = | 595 | 858k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 858k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 858k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 858k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 858k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 858k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 858k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 858k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 858k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 858k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 858k | _memory_used_counter = | 606 | 858k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 858k | _common_profile->add_info_string("IsColocate", | 608 | 858k | std::to_string(_parent->is_colocated_operator())); | 609 | 858k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 858k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 858k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 858k | return Status::OK(); | 613 | 858k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 55.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 55.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 55.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 55.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 55.4k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 55.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 55.4k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 55.4k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 55.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 55.4k | if constexpr (!is_fake_shared) { | 560 | 55.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 55.4k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 4.77k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.77k | _dependency = _shared_state->create_source_dependency( | 576 | 4.77k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.77k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.77k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 50.7k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 50.7k | } | 584 | 55.4k | } | 585 | | | 586 | 55.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 55.4k | _rows_returned_counter = | 591 | 55.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 55.4k | _blocks_returned_counter = | 593 | 55.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 55.4k | _output_block_bytes_counter = | 595 | 55.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 55.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 55.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 55.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 55.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 55.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 55.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 55.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 55.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 55.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 55.4k | _memory_used_counter = | 606 | 55.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 55.4k | _common_profile->add_info_string("IsColocate", | 608 | 55.4k | std::to_string(_parent->is_colocated_operator())); | 609 | 55.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 55.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 55.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 55.4k | return Status::OK(); | 613 | 55.4k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 26 | if constexpr (!is_fake_shared) { | 560 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 26 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 26 | _dependency = _shared_state->create_source_dependency( | 576 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 26 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 26 | } | 585 | | | 586 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 26 | _rows_returned_counter = | 591 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 26 | _blocks_returned_counter = | 593 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 26 | _output_block_bytes_counter = | 595 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 26 | _memory_used_counter = | 606 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 26 | _common_profile->add_info_string("IsColocate", | 608 | 26 | std::to_string(_parent->is_colocated_operator())); | 609 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 26 | return Status::OK(); | 613 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 6.86k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 6.86k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 6.86k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 6.86k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 6.86k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 6.86k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 6.86k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 6.86k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 6.86k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 6.86k | if constexpr (!is_fake_shared) { | 560 | 6.86k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 6.86k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 6.76k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 6.76k | _dependency = _shared_state->create_source_dependency( | 576 | 6.76k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 6.76k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 6.76k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 6.76k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 92 | } | 584 | 6.86k | } | 585 | | | 586 | 6.86k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 6.86k | _rows_returned_counter = | 591 | 6.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 6.86k | _blocks_returned_counter = | 593 | 6.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 6.86k | _output_block_bytes_counter = | 595 | 6.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 6.86k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 6.86k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 6.86k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 6.86k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 6.86k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 6.86k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 6.86k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 6.86k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 6.86k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 6.86k | _memory_used_counter = | 606 | 6.86k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 6.86k | _common_profile->add_info_string("IsColocate", | 608 | 6.86k | std::to_string(_parent->is_colocated_operator())); | 609 | 6.86k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 6.86k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 6.86k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 6.86k | return Status::OK(); | 613 | 6.86k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 428 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 428 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 428 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 428 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 428 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 428 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 428 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 428 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 428 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 428 | if constexpr (!is_fake_shared) { | 560 | 428 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 428 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 418 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 418 | _dependency = _shared_state->create_source_dependency( | 576 | 418 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 418 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 418 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 418 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 10 | } | 584 | 428 | } | 585 | | | 586 | 428 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 428 | _rows_returned_counter = | 591 | 428 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 428 | _blocks_returned_counter = | 593 | 428 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 428 | _output_block_bytes_counter = | 595 | 428 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 428 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 428 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 428 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 428 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 428 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 428 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 428 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 428 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 428 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 428 | _memory_used_counter = | 606 | 428 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 428 | _common_profile->add_info_string("IsColocate", | 608 | 428 | std::to_string(_parent->is_colocated_operator())); | 609 | 428 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 428 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 428 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 428 | return Status::OK(); | 613 | 428 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 5.16k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 5.16k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 5.16k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 5.16k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 5.16k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 5.16k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 5.16k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 5.16k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 5.16k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 5.16k | if constexpr (!is_fake_shared) { | 560 | 5.16k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 5.16k | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 5.12k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 5.12k | _dependency = _shared_state->create_source_dependency( | 576 | 5.12k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 5.12k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 5.12k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 5.12k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 41 | } | 584 | 5.16k | } | 585 | | | 586 | 5.16k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 5.16k | _rows_returned_counter = | 591 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 5.16k | _blocks_returned_counter = | 593 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 5.16k | _output_block_bytes_counter = | 595 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.16k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 5.16k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 5.16k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 5.16k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 5.16k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 5.16k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 5.16k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 5.16k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 5.16k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 5.16k | _memory_used_counter = | 606 | 5.16k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 5.16k | _common_profile->add_info_string("IsColocate", | 608 | 5.16k | std::to_string(_parent->is_colocated_operator())); | 609 | 5.16k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 5.16k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 5.16k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 5.16k | return Status::OK(); | 613 | 5.16k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 704k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 704k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 704k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 704k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 704k | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 704k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 704k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 704k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 704k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 704k | if constexpr (!is_fake_shared) { | 560 | 704k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 695k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 695k | .first.get() | 563 | 695k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 695k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 695k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 695k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 695k | } else if (info.shared_state) { | 569 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | 0 | DCHECK(false); | 571 | 0 | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | |
| 575 | 0 | _dependency = _shared_state->create_source_dependency( | 576 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 9.03k | } else { | 580 | 9.03k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 9.03k | DCHECK(false); | 582 | 9.03k | } | 583 | 9.03k | } | 584 | 704k | } | 585 | | | 586 | 704k | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 704k | _rows_returned_counter = | 591 | 704k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 704k | _blocks_returned_counter = | 593 | 704k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 704k | _output_block_bytes_counter = | 595 | 704k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 704k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 704k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 704k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 704k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 704k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 704k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 704k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 704k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 704k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 704k | _memory_used_counter = | 606 | 704k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 704k | _common_profile->add_info_string("IsColocate", | 608 | 704k | std::to_string(_parent->is_colocated_operator())); | 609 | 704k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 704k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 704k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 704k | return Status::OK(); | 613 | 704k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 169 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 169 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 169 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 169 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 169 | _operator_profile->set_metadata(_parent->node_id()); | 553 | | // indent is false so that source operator will have same | 554 | | // indentation_level with its parent operator. | 555 | 169 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 169 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 169 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 169 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 169 | if constexpr (!is_fake_shared) { | 560 | 169 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 0 | .first.get() | 563 | 0 | ->template cast<SharedStateArg>(); | 564 | |
| 565 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 169 | } else if (info.shared_state) { | 569 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 570 | | DCHECK(false); | 571 | | } | 572 | | // For UnionSourceOperator without children, there is no shared state. | 573 | 169 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 169 | _dependency = _shared_state->create_source_dependency( | 576 | 169 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 169 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 169 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 169 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 169 | } | 585 | | | 586 | 169 | if (must_set_shared_state() && _shared_state == nullptr) { | 587 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 588 | 0 | } | 589 | | | 590 | 169 | _rows_returned_counter = | 591 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 169 | _blocks_returned_counter = | 593 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 169 | _output_block_bytes_counter = | 595 | 169 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 169 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 169 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 169 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 169 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 169 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 169 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 169 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 169 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 169 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 169 | _memory_used_counter = | 606 | 169 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 169 | _common_profile->add_info_string("IsColocate", | 608 | 169 | std::to_string(_parent->is_colocated_operator())); | 609 | 169 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 169 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 169 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 169 | return Status::OK(); | 613 | 169 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 2.11M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 2.11M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 2.42M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 303k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 303k | } |
621 | 2.11M | if (_parent->has_projection()) { |
622 | 398k | const auto& projection = *_parent->_projection; |
623 | 398k | _projections.resize(projection.projections.size()); |
624 | 2.48M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 2.08M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 2.08M | } |
627 | 398k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 415k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 16.8k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 218k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 201k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 201k | state, _intermediate_projections[i][j])); |
633 | 201k | } |
634 | 16.8k | } |
635 | 398k | } |
636 | 2.11M | return Status::OK(); |
637 | 2.11M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 81.3k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 81.3k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 83.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.91k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.91k | } | 621 | 81.3k | if (_parent->has_projection()) { | 622 | 81.3k | const auto& projection = *_parent->_projection; | 623 | 81.3k | _projections.resize(projection.projections.size()); | 624 | 470k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 389k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 389k | } | 627 | 81.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 88.1k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.74k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 155k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 148k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 148k | state, _intermediate_projections[i][j])); | 633 | 148k | } | 634 | 6.74k | } | 635 | 81.3k | } | 636 | 81.3k | return Status::OK(); | 637 | 81.3k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 217k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 217k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 217k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 217k | if (_parent->has_projection()) { | 622 | 80 | const auto& projection = *_parent->_projection; | 623 | 80 | _projections.resize(projection.projections.size()); | 624 | 405 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 80 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 80 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 80 | } | 636 | 217k | return Status::OK(); | 637 | 217k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 8.92k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 8.92k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 9.00k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 76 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 76 | } | 621 | 8.93k | if (_parent->has_projection()) { | 622 | 8.93k | const auto& projection = *_parent->_projection; | 623 | 8.93k | _projections.resize(projection.projections.size()); | 624 | 40.4k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 31.5k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 31.5k | } | 627 | 8.93k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 8.96k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 23 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 200 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 177 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 177 | state, _intermediate_projections[i][j])); | 633 | 177 | } | 634 | 23 | } | 635 | 8.93k | } | 636 | 8.92k | return Status::OK(); | 637 | 8.92k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 9.50k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 9.50k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 10.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.03k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.03k | } | 621 | 9.50k | if (_parent->has_projection()) { | 622 | 4.99k | const auto& projection = *_parent->_projection; | 623 | 4.99k | _projections.resize(projection.projections.size()); | 624 | 21.2k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 16.2k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 16.2k | } | 627 | 4.99k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 5.08k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 90 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 683 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 593 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 593 | state, _intermediate_projections[i][j])); | 633 | 593 | } | 634 | 90 | } | 635 | 4.99k | } | 636 | 9.50k | return Status::OK(); | 637 | 9.50k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 99.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 99.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 101k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.71k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.71k | } | 621 | 99.6k | if (_parent->has_projection()) { | 622 | 32.7k | const auto& projection = *_parent->_projection; | 623 | 32.7k | _projections.resize(projection.projections.size()); | 624 | 286k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 254k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 254k | } | 627 | 32.7k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 32.9k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 223 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.69k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.47k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.47k | state, _intermediate_projections[i][j])); | 633 | 1.47k | } | 634 | 223 | } | 635 | 32.7k | } | 636 | 99.6k | return Status::OK(); | 637 | 99.6k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 60.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 60.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 60.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 13 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 13 | } | 621 | 60.4k | if (_parent->has_projection()) { | 622 | 108 | const auto& projection = *_parent->_projection; | 623 | 108 | _projections.resize(projection.projections.size()); | 624 | 436 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 328 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 328 | } | 627 | 108 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 108 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 108 | } | 636 | 60.4k | return Status::OK(); | 637 | 60.4k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 148 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 148 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 148 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 148 | if (_parent->has_projection()) { | 622 | 126 | const auto& projection = *_parent->_projection; | 623 | 126 | _projections.resize(projection.projections.size()); | 624 | 378 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 252 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 252 | } | 627 | 126 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 126 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 126 | } | 636 | 148 | return Status::OK(); | 637 | 148 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 863k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 863k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.16M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 297k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 297k | } | 621 | 863k | if (_parent->has_projection()) { | 622 | 258k | const auto& projection = *_parent->_projection; | 623 | 258k | _projections.resize(projection.projections.size()); | 624 | 1.55M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.29M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.29M | } | 627 | 258k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 268k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 9.60k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 58.4k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 48.8k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 48.8k | state, _intermediate_projections[i][j])); | 633 | 48.8k | } | 634 | 9.60k | } | 635 | 258k | } | 636 | 863k | return Status::OK(); | 637 | 863k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 55.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 55.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 55.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 55.6k | if (_parent->has_projection()) { | 622 | 11.3k | const auto& projection = *_parent->_projection; | 623 | 11.3k | _projections.resize(projection.projections.size()); | 624 | 110k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 98.9k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 98.9k | } | 627 | 11.3k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 11.4k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 117 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 2.60k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 2.48k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 2.48k | state, _intermediate_projections[i][j])); | 633 | 2.48k | } | 634 | 117 | } | 635 | 11.3k | } | 636 | 55.6k | return Status::OK(); | 637 | 55.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 25 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 25 | return Status::OK(); | 637 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 6.85k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 6.85k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.02k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.16k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.16k | } | 621 | 6.85k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 6.85k | return Status::OK(); | 637 | 6.85k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 429 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 429 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 429 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 429 | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 429 | return Status::OK(); | 637 | 429 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 5.16k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 5.16k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 5.16k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 5.16k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 228 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 168 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 168 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 60 | } | 636 | 5.16k | return Status::OK(); | 637 | 5.16k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 709k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 709k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 709k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 709k | if (_parent->has_projection()) { | 622 | 0 | const auto& projection = *_parent->_projection; | 623 | 0 | _projections.resize(projection.projections.size()); | 624 | 0 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 0 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 0 | } | 627 | 0 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 0 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 0 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 0 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 0 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 0 | state, _intermediate_projections[i][j])); | 633 | 0 | } | 634 | 0 | } | 635 | 0 | } | 636 | 709k | return Status::OK(); | 637 | 709k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 169 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 169 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 176 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 169 | if (_parent->has_projection()) { | 622 | 166 | const auto& projection = *_parent->_projection; | 623 | 166 | _projections.resize(projection.projections.size()); | 624 | 491 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 325 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 325 | } | 627 | 166 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 169 | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 3 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 11 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 8 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 8 | state, _intermediate_projections[i][j])); | 633 | 8 | } | 634 | 3 | } | 635 | 166 | } | 636 | 169 | return Status::OK(); | 637 | 169 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 7.60k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 7.60k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 7.60k | _terminated = true; |
645 | 7.60k | return Status::OK(); |
646 | 7.60k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 391 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 391 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 391 | _terminated = true; | 645 | 391 | return Status::OK(); | 646 | 391 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 21 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 21 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 21 | _terminated = true; | 645 | 21 | return Status::OK(); | 646 | 21 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 73 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 73 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 73 | _terminated = true; | 645 | 73 | return Status::OK(); | 646 | 73 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1 | _terminated = true; | 645 | 1 | return Status::OK(); | 646 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 61 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 61 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 61 | _terminated = true; | 645 | 61 | return Status::OK(); | 646 | 61 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 5.80k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 5.80k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 5.80k | _terminated = true; | 645 | 5.80k | return Status::OK(); | 646 | 5.80k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 47 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 47 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 47 | _terminated = true; | 645 | 47 | return Status::OK(); | 646 | 47 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 11 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 11 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 11 | _terminated = true; | 645 | 11 | return Status::OK(); | 646 | 11 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 64 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 64 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 64 | _terminated = true; | 645 | 64 | return Status::OK(); | 646 | 64 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 1.09k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 1.09k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 1.09k | _terminated = true; | 645 | 1.09k | return Status::OK(); | 646 | 1.09k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 35 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 35 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 35 | _terminated = true; | 645 | 35 | return Status::OK(); | 646 | 35 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 2.36M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 2.36M | if (_closed) { |
651 | 246k | return Status::OK(); |
652 | 246k | } |
653 | 2.11M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 1.25M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 1.25M | } |
656 | 2.11M | _closed = true; |
657 | 2.11M | return Status::OK(); |
658 | 2.36M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 81.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 81.2k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 81.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 81.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 81.2k | } | 656 | 81.2k | _closed = true; | 657 | 81.2k | return Status::OK(); | 658 | 81.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 429k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 429k | if (_closed) { | 651 | 215k | return Status::OK(); | 652 | 215k | } | 653 | 214k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 214k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 214k | } | 656 | 214k | _closed = true; | 657 | 214k | return Status::OK(); | 658 | 429k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 25 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 25 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 25 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 25 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 25 | } | 656 | 25 | _closed = true; | 657 | 25 | return Status::OK(); | 658 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 8.91k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 8.91k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 8.91k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 8.91k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 8.91k | } | 656 | 8.91k | _closed = true; | 657 | 8.91k | return Status::OK(); | 658 | 8.91k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 19.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 19.1k | if (_closed) { | 651 | 9.67k | return Status::OK(); | 652 | 9.67k | } | 653 | 9.48k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 9.48k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 9.48k | } | 656 | 9.48k | _closed = true; | 657 | 9.48k | return Status::OK(); | 658 | 19.1k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 99.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 99.3k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 99.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 99.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 99.3k | } | 656 | 99.3k | _closed = true; | 657 | 99.3k | return Status::OK(); | 658 | 99.3k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 60.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 60.1k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 60.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 60.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 60.1k | } | 656 | 60.1k | _closed = true; | 657 | 60.1k | return Status::OK(); | 658 | 60.1k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 143 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 143 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 143 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 143 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 143 | } | 656 | 143 | _closed = true; | 657 | 143 | return Status::OK(); | 658 | 143 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 878k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 878k | if (_closed) { | 651 | 14.9k | return Status::OK(); | 652 | 14.9k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 863k | _closed = true; | 657 | 863k | return Status::OK(); | 658 | 878k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 55.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 55.6k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 55.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 55.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 55.6k | } | 656 | 55.6k | _closed = true; | 657 | 55.6k | return Status::OK(); | 658 | 55.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 28 | if (_closed) { | 651 | 14 | return Status::OK(); | 652 | 14 | } | 653 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 14 | } | 656 | 14 | _closed = true; | 657 | 14 | return Status::OK(); | 658 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 6.85k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 6.85k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 6.85k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 6.85k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 6.85k | } | 656 | 6.85k | _closed = true; | 657 | 6.85k | return Status::OK(); | 658 | 6.85k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 651 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 651 | if (_closed) { | 651 | 324 | return Status::OK(); | 652 | 324 | } | 653 | 327 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 327 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 327 | } | 656 | 327 | _closed = true; | 657 | 327 | return Status::OK(); | 658 | 651 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 10.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 10.5k | if (_closed) { | 651 | 5.36k | return Status::OK(); | 652 | 5.36k | } | 653 | 5.15k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 5.15k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 5.15k | } | 656 | 5.15k | _closed = true; | 657 | 5.15k | return Status::OK(); | 658 | 10.5k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 711k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 711k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 711k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 711k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 711k | } | 656 | 711k | _closed = true; | 657 | 711k | return Status::OK(); | 658 | 711k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 339 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 339 | if (_closed) { | 651 | 179 | return Status::OK(); | 652 | 179 | } | 653 | 160 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 160 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 160 | } | 656 | 160 | _closed = true; | 657 | 160 | return Status::OK(); | 658 | 339 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.77M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.77M | _operator_profile = |
664 | 1.77M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.77M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.77M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
667 | | |
668 | | // indentation is true |
669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
670 | | // So we should set the indentation to true. |
671 | 1.77M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.77M | _operator_profile->add_child(_common_profile, true); |
673 | 1.77M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.77M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.77M | _wait_for_finish_dependency_timer = |
677 | 1.77M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.77M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.77M | if constexpr (!is_fake_shared) { |
680 | 1.25M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 1.25M | info.shared_state_map.end()) { |
682 | 381k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 297k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 297k | } |
685 | 381k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 381k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 381k | ? 0 |
688 | 381k | : info.task_idx] |
689 | 381k | .get(); |
690 | 381k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 873k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 873k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 873k | _dependency = _shared_state->create_sink_dependency( |
697 | 873k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 873k | } |
699 | 1.25M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 1.25M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 1.25M | } |
702 | | |
703 | 1.77M | if (must_set_shared_state() && _shared_state == nullptr) { |
704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
705 | 0 | } |
706 | | |
707 | 1.77M | _rows_input_counter = |
708 | 1.77M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.77M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.77M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.77M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.77M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.77M | _memory_used_counter = |
714 | 1.77M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.77M | _common_profile->add_info_string("IsColocate", |
716 | 1.77M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.77M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.77M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.77M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.77M | return Status::OK(); |
721 | 1.77M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 128k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 128k | _operator_profile = | 664 | 128k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 128k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 128k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 128k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 128k | _operator_profile->add_child(_common_profile, true); | 673 | 128k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 128k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 128k | _wait_for_finish_dependency_timer = | 677 | 128k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 128k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 128k | if constexpr (!is_fake_shared) { | 680 | 128k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 128k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 23.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 23.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 23.6k | ? 0 | 688 | 23.6k | : info.task_idx] | 689 | 23.6k | .get(); | 690 | 23.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 105k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 105k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 105k | _dependency = _shared_state->create_sink_dependency( | 697 | 105k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 105k | } | 699 | 128k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 128k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 128k | } | 702 | | | 703 | 128k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 128k | _rows_input_counter = | 708 | 128k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 128k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 128k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 128k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 128k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 128k | _memory_used_counter = | 714 | 128k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 128k | _common_profile->add_info_string("IsColocate", | 716 | 128k | std::to_string(_parent->is_colocated_operator())); | 717 | 128k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 128k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 128k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 128k | return Status::OK(); | 721 | 128k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 215k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 215k | _operator_profile = | 664 | 215k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 215k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 215k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 215k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 215k | _operator_profile->add_child(_common_profile, true); | 673 | 215k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 215k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 215k | _wait_for_finish_dependency_timer = | 677 | 215k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 215k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 215k | if constexpr (!is_fake_shared) { | 680 | 215k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 215k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 215k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 215k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 215k | _dependency = _shared_state->create_sink_dependency( | 697 | 215k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 215k | } | 699 | 215k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 215k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 215k | } | 702 | | | 703 | 215k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 215k | _rows_input_counter = | 708 | 215k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 215k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 215k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 215k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 215k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 215k | _memory_used_counter = | 714 | 215k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 215k | _common_profile->add_info_string("IsColocate", | 716 | 215k | std::to_string(_parent->is_colocated_operator())); | 717 | 215k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 215k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 215k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 215k | return Status::OK(); | 721 | 215k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 32 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 32 | _operator_profile = | 664 | 32 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 32 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 32 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 32 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 32 | _operator_profile->add_child(_common_profile, true); | 673 | 32 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 32 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 32 | _wait_for_finish_dependency_timer = | 677 | 32 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 32 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 32 | if constexpr (!is_fake_shared) { | 680 | 32 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 32 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 32 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 32 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 32 | _dependency = _shared_state->create_sink_dependency( | 697 | 32 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 32 | } | 699 | 32 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 32 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 32 | } | 702 | | | 703 | 32 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 32 | _rows_input_counter = | 708 | 32 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 32 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 32 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 32 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 32 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 32 | _memory_used_counter = | 714 | 32 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 32 | _common_profile->add_info_string("IsColocate", | 716 | 32 | std::to_string(_parent->is_colocated_operator())); | 717 | 32 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 32 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 32 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 32 | return Status::OK(); | 721 | 32 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 8.83k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 8.83k | _operator_profile = | 664 | 8.83k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 8.83k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 8.83k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 8.83k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 8.83k | _operator_profile->add_child(_common_profile, true); | 673 | 8.83k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 8.83k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 8.83k | _wait_for_finish_dependency_timer = | 677 | 8.83k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 8.83k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 8.83k | if constexpr (!is_fake_shared) { | 680 | 8.83k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 8.83k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 8.83k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 8.83k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 8.83k | _dependency = _shared_state->create_sink_dependency( | 697 | 8.83k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 8.83k | } | 699 | 8.83k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 8.83k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 8.83k | } | 702 | | | 703 | 8.83k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 8.83k | _rows_input_counter = | 708 | 8.83k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 8.83k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 8.83k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 8.83k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 8.83k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 8.83k | _memory_used_counter = | 714 | 8.83k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 8.83k | _common_profile->add_info_string("IsColocate", | 716 | 8.83k | std::to_string(_parent->is_colocated_operator())); | 717 | 8.83k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 8.83k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 8.83k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 8.83k | return Status::OK(); | 721 | 8.83k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 9.49k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 9.49k | _operator_profile = | 664 | 9.49k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 9.49k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 9.49k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 9.49k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 9.49k | _operator_profile->add_child(_common_profile, true); | 673 | 9.49k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 9.49k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 9.49k | _wait_for_finish_dependency_timer = | 677 | 9.49k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 9.49k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 9.49k | if constexpr (!is_fake_shared) { | 680 | 9.49k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 9.49k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 9.49k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 9.49k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 9.49k | _dependency = _shared_state->create_sink_dependency( | 697 | 9.49k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 9.49k | } | 699 | 9.49k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 9.49k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 9.49k | } | 702 | | | 703 | 9.49k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 9.49k | _rows_input_counter = | 708 | 9.49k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 9.49k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 9.49k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 9.49k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 9.49k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 9.49k | _memory_used_counter = | 714 | 9.49k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 9.49k | _common_profile->add_info_string("IsColocate", | 716 | 9.49k | std::to_string(_parent->is_colocated_operator())); | 717 | 9.49k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 9.49k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 9.49k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 9.49k | return Status::OK(); | 721 | 9.49k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 99.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 99.1k | _operator_profile = | 664 | 99.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 99.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 99.1k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 99.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 99.1k | _operator_profile->add_child(_common_profile, true); | 673 | 99.1k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 99.1k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 99.1k | _wait_for_finish_dependency_timer = | 677 | 99.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 99.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 99.1k | if constexpr (!is_fake_shared) { | 680 | 99.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 99.1k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 99.1k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 99.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 99.1k | _dependency = _shared_state->create_sink_dependency( | 697 | 99.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 99.1k | } | 699 | 99.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 99.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 99.1k | } | 702 | | | 703 | 99.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 99.1k | _rows_input_counter = | 708 | 99.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 99.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 99.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 99.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 99.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 99.1k | _memory_used_counter = | 714 | 99.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 99.1k | _common_profile->add_info_string("IsColocate", | 716 | 99.1k | std::to_string(_parent->is_colocated_operator())); | 717 | 99.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 99.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 99.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 99.1k | return Status::OK(); | 721 | 99.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 60.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 60.3k | _operator_profile = | 664 | 60.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 60.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 60.3k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 60.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 60.3k | _operator_profile->add_child(_common_profile, true); | 673 | 60.3k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 60.3k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 60.3k | _wait_for_finish_dependency_timer = | 677 | 60.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 60.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 60.3k | if constexpr (!is_fake_shared) { | 680 | 60.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 60.4k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 60.4k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 60.4k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 60.4k | ? 0 | 688 | 60.4k | : info.task_idx] | 689 | 60.4k | .get(); | 690 | 60.4k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 60.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 60.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 60.3k | } | 702 | | | 703 | 60.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 60.3k | _rows_input_counter = | 708 | 60.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 60.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 60.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 60.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 60.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 60.3k | _memory_used_counter = | 714 | 60.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 60.3k | _common_profile->add_info_string("IsColocate", | 716 | 60.3k | std::to_string(_parent->is_colocated_operator())); | 717 | 60.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 60.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 60.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 60.3k | return Status::OK(); | 721 | 60.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 154 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 154 | _operator_profile = | 664 | 154 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 154 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 154 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 154 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 154 | _operator_profile->add_child(_common_profile, true); | 673 | 154 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 154 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 154 | _wait_for_finish_dependency_timer = | 677 | 154 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 154 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 154 | if constexpr (!is_fake_shared) { | 680 | 154 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 154 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 154 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 154 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 154 | _dependency = _shared_state->create_sink_dependency( | 697 | 154 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 154 | } | 699 | 154 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 154 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 154 | } | 702 | | | 703 | 154 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 154 | _rows_input_counter = | 708 | 154 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 154 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 154 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 154 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 154 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 154 | _memory_used_counter = | 714 | 154 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 154 | _common_profile->add_info_string("IsColocate", | 716 | 154 | std::to_string(_parent->is_colocated_operator())); | 717 | 154 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 154 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 154 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 154 | return Status::OK(); | 721 | 154 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 523k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 523k | _operator_profile = | 664 | 523k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 523k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 523k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 523k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 523k | _operator_profile->add_child(_common_profile, true); | 673 | 523k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 523k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 523k | _wait_for_finish_dependency_timer = | 677 | 523k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 523k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | | if constexpr (!is_fake_shared) { | 680 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | | ? 0 | 688 | | : info.task_idx] | 689 | | .get(); | 690 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | | _dependency = _shared_state->create_sink_dependency( | 697 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | | } | 699 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | | } | 702 | | | 703 | 523k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 523k | _rows_input_counter = | 708 | 523k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 523k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 523k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 523k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 523k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 523k | _memory_used_counter = | 714 | 523k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 523k | _common_profile->add_info_string("IsColocate", | 716 | 523k | std::to_string(_parent->is_colocated_operator())); | 717 | 523k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 523k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 523k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 523k | return Status::OK(); | 721 | 523k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 11.8k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 11.8k | _operator_profile = | 664 | 11.8k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 11.8k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 11.8k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 11.8k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 11.8k | _operator_profile->add_child(_common_profile, true); | 673 | 11.8k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 11.8k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 11.8k | _wait_for_finish_dependency_timer = | 677 | 11.8k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 11.8k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 11.8k | if constexpr (!is_fake_shared) { | 680 | 11.8k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 11.8k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 11.8k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 11.8k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 11.8k | _dependency = _shared_state->create_sink_dependency( | 697 | 11.8k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 11.8k | } | 699 | 11.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 11.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 11.8k | } | 702 | | | 703 | 11.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 11.8k | _rows_input_counter = | 708 | 11.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 11.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 11.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 11.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 11.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 11.8k | _memory_used_counter = | 714 | 11.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 11.8k | _common_profile->add_info_string("IsColocate", | 716 | 11.8k | std::to_string(_parent->is_colocated_operator())); | 717 | 11.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 11.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 11.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 11.8k | return Status::OK(); | 721 | 11.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 429 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 429 | _operator_profile = | 664 | 429 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 429 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 429 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 429 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 429 | _operator_profile->add_child(_common_profile, true); | 673 | 429 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 429 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 429 | _wait_for_finish_dependency_timer = | 677 | 429 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 429 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 429 | if constexpr (!is_fake_shared) { | 680 | 429 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 429 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 429 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 429 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 429 | _dependency = _shared_state->create_sink_dependency( | 697 | 429 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 429 | } | 699 | 429 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 429 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 429 | } | 702 | | | 703 | 429 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 429 | _rows_input_counter = | 708 | 429 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 429 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 429 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 429 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 429 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 429 | _memory_used_counter = | 714 | 429 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 429 | _common_profile->add_info_string("IsColocate", | 716 | 429 | std::to_string(_parent->is_colocated_operator())); | 717 | 429 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 429 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 429 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 429 | return Status::OK(); | 721 | 429 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.64k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.64k | _operator_profile = | 664 | 2.64k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.64k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.64k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 2.64k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.64k | _operator_profile->add_child(_common_profile, true); | 673 | 2.64k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.64k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.64k | _wait_for_finish_dependency_timer = | 677 | 2.64k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.64k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.64k | if constexpr (!is_fake_shared) { | 680 | 2.64k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.64k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 2.64k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.64k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.64k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.64k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.64k | } | 699 | 2.64k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.64k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.64k | } | 702 | | | 703 | 2.64k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 2.64k | _rows_input_counter = | 708 | 2.64k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.64k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.64k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.64k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.64k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.64k | _memory_used_counter = | 714 | 2.64k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.64k | _common_profile->add_info_string("IsColocate", | 716 | 2.64k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.64k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.64k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.64k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.64k | return Status::OK(); | 721 | 2.64k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 12.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 12.5k | _operator_profile = | 664 | 12.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 12.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 12.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 12.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 12.5k | _operator_profile->add_child(_common_profile, true); | 673 | 12.5k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 12.5k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 12.5k | _wait_for_finish_dependency_timer = | 677 | 12.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 12.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 12.5k | if constexpr (!is_fake_shared) { | 680 | 12.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 12.5k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 12.5k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 12.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 12.5k | _dependency = _shared_state->create_sink_dependency( | 697 | 12.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 12.5k | } | 699 | 12.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 12.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 12.5k | } | 702 | | | 703 | 12.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 12.5k | _rows_input_counter = | 708 | 12.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 12.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 12.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 12.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 12.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 12.5k | _memory_used_counter = | 714 | 12.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 12.5k | _common_profile->add_info_string("IsColocate", | 716 | 12.5k | std::to_string(_parent->is_colocated_operator())); | 717 | 12.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 12.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 12.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 12.5k | return Status::OK(); | 721 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 297k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 297k | _operator_profile = | 664 | 297k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 297k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 297k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 297k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 297k | _operator_profile->add_child(_common_profile, true); | 673 | 297k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 297k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 297k | _wait_for_finish_dependency_timer = | 677 | 297k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 297k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 297k | if constexpr (!is_fake_shared) { | 680 | 297k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 297k | info.shared_state_map.end()) { | 682 | 297k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 297k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 297k | } | 685 | 297k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 297k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 297k | ? 0 | 688 | 297k | : info.task_idx] | 689 | 297k | .get(); | 690 | 297k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 18.4E | } else { | 692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | 18.4E | DCHECK(false); | 694 | 18.4E | } | 695 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 697 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 18.4E | } | 699 | 297k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 297k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 297k | } | 702 | | | 703 | 297k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 297k | _rows_input_counter = | 708 | 297k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 297k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 297k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 297k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 297k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 297k | _memory_used_counter = | 714 | 297k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 297k | _common_profile->add_info_string("IsColocate", | 716 | 297k | std::to_string(_parent->is_colocated_operator())); | 717 | 297k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 297k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 297k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 297k | return Status::OK(); | 721 | 297k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 407k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 407k | _operator_profile = | 664 | 407k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 407k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 407k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 407k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 407k | _operator_profile->add_child(_common_profile, true); | 673 | 407k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 407k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 407k | _wait_for_finish_dependency_timer = | 677 | 407k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 407k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 407k | if constexpr (!is_fake_shared) { | 680 | 407k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 407k | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 407k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 407k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 407k | _dependency = _shared_state->create_sink_dependency( | 697 | 407k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 407k | } | 699 | 407k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 407k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 407k | } | 702 | | | 703 | 407k | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 407k | _rows_input_counter = | 708 | 407k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 407k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 407k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 407k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 407k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 407k | _memory_used_counter = | 714 | 407k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 407k | _common_profile->add_info_string("IsColocate", | 716 | 407k | std::to_string(_parent->is_colocated_operator())); | 717 | 407k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 407k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 407k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 407k | return Status::OK(); | 721 | 407k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 25 | _operator_profile = | 664 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 25 | _operator_profile->add_child(_common_profile, true); | 673 | 25 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 25 | _wait_for_finish_dependency_timer = | 677 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 25 | if constexpr (!is_fake_shared) { | 680 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 25 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 25 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 25 | _dependency = _shared_state->create_sink_dependency( | 697 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 25 | } | 699 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 25 | } | 702 | | | 703 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 25 | _rows_input_counter = | 708 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 25 | _memory_used_counter = | 714 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 25 | _common_profile->add_info_string("IsColocate", | 716 | 25 | std::to_string(_parent->is_colocated_operator())); | 717 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 25 | return Status::OK(); | 721 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 337 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 337 | _operator_profile = | 664 | 337 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 337 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 337 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 667 | | | 668 | | // indentation is true | 669 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 670 | | // So we should set the indentation to true. | 671 | 337 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 337 | _operator_profile->add_child(_common_profile, true); | 673 | 337 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 337 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 337 | _wait_for_finish_dependency_timer = | 677 | 337 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 337 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 337 | if constexpr (!is_fake_shared) { | 680 | 337 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 337 | info.shared_state_map.end()) { | 682 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | | } | 685 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 0 | ? 0 | 688 | 0 | : info.task_idx] | 689 | 0 | .get(); | 690 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 337 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 337 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 337 | _dependency = _shared_state->create_sink_dependency( | 697 | 337 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 337 | } | 699 | 337 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 337 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 337 | } | 702 | | | 703 | 337 | if (must_set_shared_state() && _shared_state == nullptr) { | 704 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 705 | 0 | } | 706 | | | 707 | 337 | _rows_input_counter = | 708 | 337 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 337 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 337 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 337 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 337 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 337 | _memory_used_counter = | 714 | 337 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 337 | _common_profile->add_info_string("IsColocate", | 716 | 337 | std::to_string(_parent->is_colocated_operator())); | 717 | 337 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 337 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 337 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 337 | return Status::OK(); | 721 | 337 | } |
|
722 | | |
723 | | template <typename SharedState> |
724 | 1.78M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.78M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.78M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 1.25M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 1.25M | } |
731 | 1.78M | _closed = true; |
732 | 1.78M | return Status::OK(); |
733 | 1.78M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 129k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 129k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 129k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 129k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 129k | } | 731 | 129k | _closed = true; | 732 | 129k | return Status::OK(); | 733 | 129k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 215k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 215k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 215k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 215k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 215k | } | 731 | 215k | _closed = true; | 732 | 215k | return Status::OK(); | 733 | 215k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 23 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 23 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 21 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 21 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 21 | } | 731 | 21 | _closed = true; | 732 | 21 | return Status::OK(); | 733 | 23 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 8.79k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 8.79k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 8.79k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 8.79k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 8.79k | } | 731 | 8.79k | _closed = true; | 732 | 8.79k | return Status::OK(); | 733 | 8.79k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 9.47k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 9.47k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 9.47k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 9.47k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 9.47k | } | 731 | 9.47k | _closed = true; | 732 | 9.47k | return Status::OK(); | 733 | 9.47k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 99.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 99.1k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 99.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 99.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 99.1k | } | 731 | 99.1k | _closed = true; | 732 | 99.1k | return Status::OK(); | 733 | 99.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 60.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 60.1k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 60.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 60.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 60.1k | } | 731 | 60.1k | _closed = true; | 732 | 60.1k | return Status::OK(); | 733 | 60.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 143 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 143 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 143 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 143 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 143 | } | 731 | 143 | _closed = true; | 732 | 143 | return Status::OK(); | 733 | 143 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 528k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 528k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | | } | 731 | 528k | _closed = true; | 732 | 528k | return Status::OK(); | 733 | 528k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 11.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 11.9k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 11.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 11.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 11.9k | } | 731 | 11.9k | _closed = true; | 732 | 11.9k | return Status::OK(); | 733 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 326 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 326 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 326 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 326 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 326 | } | 731 | 326 | _closed = true; | 732 | 326 | return Status::OK(); | 733 | 326 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.69k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.69k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.69k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.69k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.69k | } | 731 | 2.69k | _closed = true; | 732 | 2.69k | return Status::OK(); | 733 | 2.69k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 12.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 12.5k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 12.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 12.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 12.5k | } | 731 | 12.5k | _closed = true; | 732 | 12.5k | return Status::OK(); | 733 | 12.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 298k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 298k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 298k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 298k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 298k | } | 731 | 298k | _closed = true; | 732 | 298k | return Status::OK(); | 733 | 298k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 409k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 409k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 409k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 409k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 409k | } | 731 | 409k | _closed = true; | 732 | 409k | return Status::OK(); | 733 | 409k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 14 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 14 | } | 731 | 14 | _closed = true; | 732 | 14 | return Status::OK(); | 733 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 338 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 338 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 338 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 338 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 338 | } | 731 | 338 | _closed = true; | 732 | 338 | return Status::OK(); | 733 | 338 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 8.75k | bool* eos) { |
738 | 8.75k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 8.75k | return pull(state, block, eos); |
740 | 8.75k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 37 | bool* eos) { | 738 | 37 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 37 | return pull(state, block, eos); | 740 | 37 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 8.72k | bool* eos) { | 738 | 8.72k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 8.71k | return pull(state, block, eos); | 740 | 8.72k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 549k | bool* eos) { |
745 | 549k | auto& local_state = get_local_state(state); |
746 | 549k | if (need_more_input_data(state)) { |
747 | 518k | local_state._child_block->clear_column_data( |
748 | 518k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 518k | .num_materialized_slots()); |
750 | 518k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 518k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 518k | *eos = local_state._child_eos; |
753 | 518k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 55.1k | return Status::OK(); |
755 | 55.1k | } |
756 | 462k | { |
757 | 462k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 462k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 462k | } |
760 | 462k | } |
761 | | |
762 | 494k | if (!need_more_input_data(state)) { |
763 | 460k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 460k | bool new_eos = false; |
765 | 460k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 460k | if (new_eos) { |
767 | 373k | *eos = true; |
768 | 373k | } else if (!need_more_input_data(state)) { |
769 | 23.1k | *eos = false; |
770 | 23.1k | } |
771 | 460k | } |
772 | 494k | return Status::OK(); |
773 | 494k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 160k | bool* eos) { | 745 | 160k | auto& local_state = get_local_state(state); | 746 | 160k | if (need_more_input_data(state)) { | 747 | 141k | local_state._child_block->clear_column_data( | 748 | 141k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 141k | .num_materialized_slots()); | 750 | 141k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 141k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 141k | *eos = local_state._child_eos; | 753 | 141k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 36.5k | return Status::OK(); | 755 | 36.5k | } | 756 | 104k | { | 757 | 104k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 104k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 104k | } | 760 | 104k | } | 761 | | | 762 | 124k | if (!need_more_input_data(state)) { | 763 | 124k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 124k | bool new_eos = false; | 765 | 124k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 124k | if (new_eos) { | 767 | 56.8k | *eos = true; | 768 | 67.4k | } else if (!need_more_input_data(state)) { | 769 | 10.1k | *eos = false; | 770 | 10.1k | } | 771 | 124k | } | 772 | 124k | return Status::OK(); | 773 | 124k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.03k | bool* eos) { | 745 | 4.03k | auto& local_state = get_local_state(state); | 746 | 4.03k | if (need_more_input_data(state)) { | 747 | 2.12k | local_state._child_block->clear_column_data( | 748 | 2.12k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.12k | .num_materialized_slots()); | 750 | 2.12k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.12k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.12k | *eos = local_state._child_eos; | 753 | 2.12k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 296 | return Status::OK(); | 755 | 296 | } | 756 | 1.83k | { | 757 | 1.83k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.83k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.83k | } | 760 | 1.83k | } | 761 | | | 762 | 3.77k | if (!need_more_input_data(state)) { | 763 | 3.77k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.77k | bool new_eos = false; | 765 | 3.77k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.77k | if (new_eos) { | 767 | 1.31k | *eos = true; | 768 | 2.46k | } else if (!need_more_input_data(state)) { | 769 | 1.91k | *eos = false; | 770 | 1.91k | } | 771 | 3.77k | } | 772 | 3.74k | return Status::OK(); | 773 | 3.74k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.90k | bool* eos) { | 745 | 1.90k | auto& local_state = get_local_state(state); | 746 | 1.90k | if (need_more_input_data(state)) { | 747 | 1.90k | local_state._child_block->clear_column_data( | 748 | 1.90k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.90k | .num_materialized_slots()); | 750 | 1.90k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.90k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.90k | *eos = local_state._child_eos; | 753 | 1.90k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 775 | return Status::OK(); | 755 | 775 | } | 756 | 1.13k | { | 757 | 1.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.13k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.13k | } | 760 | 1.13k | } | 761 | | | 762 | 1.13k | if (!need_more_input_data(state)) { | 763 | 1.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.13k | bool new_eos = false; | 765 | 1.13k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.13k | if (new_eos) { | 767 | 785 | *eos = true; | 768 | 785 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.13k | } | 772 | 1.13k | return Status::OK(); | 773 | 1.13k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 24.0k | bool* eos) { | 745 | 24.0k | auto& local_state = get_local_state(state); | 746 | 24.0k | if (need_more_input_data(state)) { | 747 | 24.0k | local_state._child_block->clear_column_data( | 748 | 24.0k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 24.0k | .num_materialized_slots()); | 750 | 24.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 24.0k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 24.0k | *eos = local_state._child_eos; | 753 | 24.0k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 3.75k | return Status::OK(); | 755 | 3.75k | } | 756 | 20.3k | { | 757 | 20.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 20.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 20.3k | } | 760 | 20.3k | } | 761 | | | 762 | 20.3k | if (!need_more_input_data(state)) { | 763 | 6.85k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.85k | bool new_eos = false; | 765 | 6.85k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.85k | if (new_eos) { | 767 | 6.80k | *eos = true; | 768 | 6.80k | } else if (!need_more_input_data(state)) { | 769 | 4 | *eos = false; | 770 | 4 | } | 771 | 6.85k | } | 772 | 20.3k | return Status::OK(); | 773 | 20.3k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 327k | bool* eos) { | 745 | 327k | auto& local_state = get_local_state(state); | 746 | 328k | if (need_more_input_data(state)) { | 747 | 328k | local_state._child_block->clear_column_data( | 748 | 328k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 328k | .num_materialized_slots()); | 750 | 328k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 328k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 328k | *eos = local_state._child_eos; | 753 | 328k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 11.8k | return Status::OK(); | 755 | 11.8k | } | 756 | 316k | { | 757 | 316k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 316k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 316k | } | 760 | 316k | } | 761 | | | 762 | 315k | if (!need_more_input_data(state)) { | 763 | 295k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 295k | bool new_eos = false; | 765 | 295k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 295k | if (new_eos) { | 767 | 294k | *eos = true; | 768 | 294k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 295k | } | 772 | 315k | return Status::OK(); | 773 | 315k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 24.6k | bool* eos) { | 745 | 24.6k | auto& local_state = get_local_state(state); | 746 | 24.6k | if (need_more_input_data(state)) { | 747 | 13.9k | local_state._child_block->clear_column_data( | 748 | 13.9k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 13.9k | .num_materialized_slots()); | 750 | 13.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 13.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 13.9k | *eos = local_state._child_eos; | 753 | 13.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 1.05k | return Status::OK(); | 755 | 1.05k | } | 756 | 12.9k | { | 757 | 12.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 12.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 12.9k | } | 760 | 12.9k | } | 761 | | | 762 | 23.6k | if (!need_more_input_data(state)) { | 763 | 23.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 23.0k | bool new_eos = false; | 765 | 23.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 23.0k | if (new_eos) { | 767 | 8.89k | *eos = true; | 768 | 14.1k | } else if (!need_more_input_data(state)) { | 769 | 10.6k | *eos = false; | 770 | 10.6k | } | 771 | 23.0k | } | 772 | 23.6k | return Status::OK(); | 773 | 23.6k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 6.67k | bool* eos) { | 745 | 6.67k | auto& local_state = get_local_state(state); | 746 | 6.67k | if (need_more_input_data(state)) { | 747 | 6.30k | local_state._child_block->clear_column_data( | 748 | 6.30k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 6.30k | .num_materialized_slots()); | 750 | 6.30k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 6.30k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 6.30k | *eos = local_state._child_eos; | 753 | 6.30k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 898 | return Status::OK(); | 755 | 898 | } | 756 | 5.40k | { | 757 | 5.40k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 5.40k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 5.40k | } | 760 | 5.40k | } | 761 | | | 762 | 5.76k | if (!need_more_input_data(state)) { | 763 | 5.76k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 5.76k | bool new_eos = false; | 765 | 5.76k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 5.76k | if (new_eos) { | 767 | 3.67k | *eos = true; | 768 | 3.67k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 5.76k | } | 772 | 5.76k | return Status::OK(); | 773 | 5.76k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 46.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 46.0k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 46.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 46.0k | "AsyncWriterDependency", true); |
781 | 46.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 46.0k | _finish_dependency)); |
783 | | |
784 | 46.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 46.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 46.0k | return Status::OK(); |
787 | 46.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 350 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 350 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 350 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 350 | "AsyncWriterDependency", true); | 781 | 350 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 350 | _finish_dependency)); | 783 | | | 784 | 350 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 350 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 350 | return Status::OK(); | 787 | 350 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 45.6k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 45.6k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 45.6k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 45.6k | "AsyncWriterDependency", true); | 781 | 45.6k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 45.6k | _finish_dependency)); | 783 | | | 784 | 45.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 45.6k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 45.6k | return Status::OK(); | 787 | 45.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 32 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 32 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 32 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 32 | "AsyncWriterDependency", true); | 781 | 32 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 32 | _finish_dependency)); | 783 | | | 784 | 32 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 32 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 32 | return Status::OK(); | 787 | 32 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
788 | | |
789 | | template <typename Writer, typename Parent> |
790 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
791 | 46.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 46.6k | RETURN_IF_ERROR(Base::open(state)); |
793 | 46.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 365k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 318k | RETURN_IF_ERROR( |
796 | 318k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 318k | } |
798 | 46.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 46.6k | return Status::OK(); |
800 | 46.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 350 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 350 | RETURN_IF_ERROR(Base::open(state)); | 793 | 350 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 1.83k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 1.48k | RETURN_IF_ERROR( | 796 | 1.48k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.48k | } | 798 | 350 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 350 | return Status::OK(); | 800 | 350 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 46.2k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 46.2k | RETURN_IF_ERROR(Base::open(state)); | 793 | 46.2k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 363k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 316k | RETURN_IF_ERROR( | 796 | 316k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 316k | } | 798 | 46.2k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 46.2k | return Status::OK(); | 800 | 46.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 32 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 32 | RETURN_IF_ERROR(Base::open(state)); | 793 | 32 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 576 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 544 | RETURN_IF_ERROR( | 796 | 544 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 544 | } | 798 | 32 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 32 | return Status::OK(); | 800 | 32 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 61.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 61.9k | return _writer->sink(block, eos); |
806 | 61.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.15k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.15k | return _writer->sink(block, eos); | 806 | 1.15k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 60.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 60.8k | return _writer->sink(block, eos); | 806 | 60.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 32 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 32 | return _writer->sink(block, eos); | 806 | 32 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
807 | | |
808 | | template <typename Writer, typename Parent> |
809 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
810 | 46.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 46.7k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 46.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 46.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
816 | | // if the init failed, the _writer may be nullptr. so here need check |
817 | 46.7k | if (_writer) { |
818 | 46.7k | Status st = _writer->get_writer_status(); |
819 | 46.7k | if (exec_status.ok()) { |
820 | 46.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 46.6k | : Status::Cancelled("force close")); |
822 | 46.6k | } else { |
823 | 53 | _writer->force_close(exec_status); |
824 | 53 | } |
825 | | // If there is an error in process_block thread, then we should get the writer |
826 | | // status before call force_close. For example, the thread may failed in commit |
827 | | // transaction. |
828 | 46.7k | RETURN_IF_ERROR(st); |
829 | 46.7k | } |
830 | 46.6k | return Base::close(state, exec_status); |
831 | 46.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 338 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 338 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 338 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 338 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 338 | if (_writer) { | 818 | 338 | Status st = _writer->get_writer_status(); | 819 | 338 | if (exec_status.ok()) { | 820 | 338 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 338 | : Status::Cancelled("force close")); | 822 | 338 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 338 | RETURN_IF_ERROR(st); | 829 | 338 | } | 830 | 338 | return Base::close(state, exec_status); | 831 | 338 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 46.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 46.3k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 46.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 46.3k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 46.3k | if (_writer) { | 818 | 46.3k | Status st = _writer->get_writer_status(); | 819 | 46.3k | if (exec_status.ok()) { | 820 | 46.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 46.3k | : Status::Cancelled("force close")); | 822 | 46.3k | } else { | 823 | 53 | _writer->force_close(exec_status); | 824 | 53 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 46.3k | RETURN_IF_ERROR(st); | 829 | 46.3k | } | 830 | 46.2k | return Base::close(state, exec_status); | 831 | 46.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 32 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 32 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 32 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 32 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 816 | | // if the init failed, the _writer may be nullptr. so here need check | 817 | 32 | if (_writer) { | 818 | 32 | Status st = _writer->get_writer_status(); | 819 | 32 | if (exec_status.ok()) { | 820 | 32 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 32 | : Status::Cancelled("force close")); | 822 | 32 | } else { | 823 | 0 | _writer->force_close(exec_status); | 824 | 0 | } | 825 | | // If there is an error in process_block thread, then we should get the writer | 826 | | // status before call force_close. For example, the thread may failed in commit | 827 | | // transaction. | 828 | 32 | RETURN_IF_ERROR(st); | 829 | 32 | } | 830 | 32 | return Base::close(state, exec_status); | 831 | 32 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
832 | | |
833 | | // An instantiation added outside the macros below needs the matching |
834 | | // 'extern template' declaration in the operator's header (enforced by |
835 | | // build-support/check-extern-template-pairing.py). Instantiations expanded |
836 | | // through DECLARE_OPERATOR are invisible to that check -- macro bodies are |
837 | | // skipped -- so their extern pairing has to be kept in sync by hand. |
838 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
839 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
840 | | DECLARE_OPERATOR(ResultSinkLocalState) |
841 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
842 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
843 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
844 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
845 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
846 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
847 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
848 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
849 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
850 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
852 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
853 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
854 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
855 | | DECLARE_OPERATOR(SortSinkLocalState) |
856 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
857 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
858 | | DECLARE_OPERATOR(AggSinkLocalState) |
859 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
860 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
862 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
863 | | DECLARE_OPERATOR(UnionSinkLocalState) |
864 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
865 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
866 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
868 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
870 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
871 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
872 | | DECLARE_OPERATOR(CacheSinkLocalState) |
873 | | DECLARE_OPERATOR(DictSinkLocalState) |
874 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
876 | | |
877 | | #undef DECLARE_OPERATOR |
878 | | |
879 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
880 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
881 | | DECLARE_OPERATOR(OlapScanLocalState) |
882 | | DECLARE_OPERATOR(GroupCommitLocalState) |
883 | | DECLARE_OPERATOR(JDBCScanLocalState) |
884 | | DECLARE_OPERATOR(FileScanLocalState) |
885 | | DECLARE_OPERATOR(AnalyticLocalState) |
886 | | DECLARE_OPERATOR(SortLocalState) |
887 | | DECLARE_OPERATOR(SpillSortLocalState) |
888 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
889 | | DECLARE_OPERATOR(AggLocalState) |
890 | | DECLARE_OPERATOR(BucketedAggLocalState) |
891 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
892 | | DECLARE_OPERATOR(TableFunctionLocalState) |
893 | | DECLARE_OPERATOR(ExchangeLocalState) |
894 | | DECLARE_OPERATOR(RepeatLocalState) |
895 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
896 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
897 | | DECLARE_OPERATOR(EmptySetLocalState) |
898 | | DECLARE_OPERATOR(UnionSourceLocalState) |
899 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
900 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
901 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
903 | | DECLARE_OPERATOR(DataGenLocalState) |
904 | | DECLARE_OPERATOR(SchemaScanLocalState) |
905 | | DECLARE_OPERATOR(MetaScanLocalState) |
906 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
907 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
908 | | DECLARE_OPERATOR(CacheSourceLocalState) |
909 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
911 | | |
912 | | #ifdef BE_TEST |
913 | | DECLARE_OPERATOR(MockLocalState) |
914 | | DECLARE_OPERATOR(MockScanLocalState) |
915 | | #endif |
916 | | #undef DECLARE_OPERATOR |
917 | | |
918 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
919 | | template class StreamingOperatorX<SelectLocalState>; |
920 | | |
921 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
922 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<RepeatLocalState>; |
924 | | template class StatefulOperatorX<MaterializationLocalState>; |
925 | | template class StatefulOperatorX<StreamingAggLocalState>; |
926 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
927 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
928 | | template class StatefulOperatorX<TableFunctionLocalState>; |
929 | | |
930 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
931 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<SortSharedState>; |
933 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
934 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
935 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
936 | | template class PipelineXSinkLocalState<AggSharedState>; |
937 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
938 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<FakeSharedState>; |
940 | | template class PipelineXSinkLocalState<UnionSharedState>; |
941 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
942 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
943 | | template class PipelineXSinkLocalState<SetSharedState>; |
944 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
945 | | template class PipelineXSinkLocalState<BasicSharedState>; |
946 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
947 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
948 | | |
949 | | template class PipelineXLocalState<HashJoinSharedState>; |
950 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
951 | | template class PipelineXLocalState<SortSharedState>; |
952 | | template class PipelineXLocalState<SpillSortSharedState>; |
953 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
954 | | template class PipelineXLocalState<AnalyticSharedState>; |
955 | | template class PipelineXLocalState<AggSharedState>; |
956 | | template class PipelineXLocalState<BucketedAggSharedState>; |
957 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
958 | | template class PipelineXLocalState<FakeSharedState>; |
959 | | template class PipelineXLocalState<UnionSharedState>; |
960 | | template class PipelineXLocalState<DataQueueSharedState>; |
961 | | template class PipelineXLocalState<MultiCastSharedState>; |
962 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
963 | | template class PipelineXLocalState<SetSharedState>; |
964 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
965 | | template class PipelineXLocalState<BasicSharedState>; |
966 | | template class PipelineXLocalState<RecCTESharedState>; |
967 | | |
968 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
969 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
972 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
973 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
979 | | |
980 | | #ifdef BE_TEST |
981 | | template class OperatorX<DummyOperatorLocalState>; |
982 | | template class DataSinkOperatorX<DummySinkLocalState>; |
983 | | #endif |
984 | | |
985 | | } // namespace doris |