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