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.24M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 2.24M | if (_parent->nereids_id() == -1) { |
122 | 1.17M | return fmt::format("(id={})", _parent->node_id()); |
123 | 1.17M | } else { |
124 | 1.07M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 1.07M | } |
126 | 2.24M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 77.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 77.0k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 77.0k | } else { | 124 | 77.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 77.0k | } | 126 | 77.0k | } |
_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 | 273k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 273k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 273k | } else { | 124 | 273k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 273k | } | 126 | 273k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 23 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 23 | } else { | 124 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 23 | } | 126 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 12.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 12.6k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 12.6k | } else { | 124 | 12.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 12.6k | } | 126 | 12.6k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.84k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.84k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.83k | } else { | 124 | 7.83k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.83k | } | 126 | 7.84k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 165k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 165k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 165k | } else { | 124 | 165k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 165k | } | 126 | 165k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 582 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 582 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 582 | } else { | 124 | 582 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 582 | } | 126 | 582 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 76 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 76 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 76 | } else { | 124 | 76 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 76 | } | 126 | 76 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 873k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 873k | if (_parent->nereids_id() == -1) { | 122 | 402k | return fmt::format("(id={})", _parent->node_id()); | 123 | 471k | } else { | 124 | 471k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 471k | } | 126 | 873k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 56.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 56.8k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 56.8k | } else { | 124 | 56.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 56.8k | } | 126 | 56.8k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 11.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 11.4k | if (_parent->nereids_id() == -1) { | 122 | 11.4k | return fmt::format("(id={})", _parent->node_id()); | 123 | 11.4k | } else { | 124 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 1 | } | 126 | 11.4k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 644 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 644 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 542 | } else { | 124 | 542 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 542 | } | 126 | 644 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 5.07k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 5.07k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 5.06k | } else { | 124 | 5.06k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 5.06k | } | 126 | 5.07k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 765k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 765k | if (_parent->nereids_id() == -1) { | 122 | 764k | return fmt::format("(id={})", _parent->node_id()); | 123 | 764k | } else { | 124 | 816 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 816 | } | 126 | 765k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 164 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 164 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 164 | } else { | 124 | 164 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 164 | } | 126 | 164 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 1.39M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.39M | if (_parent->nereids_id() == -1) { |
131 | 795k | return fmt::format("(id={})", _parent->node_id()); |
132 | 795k | } else { |
133 | 594k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 594k | } |
135 | 1.39M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 125k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 125k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 125k | } else { | 133 | 125k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 125k | } | 135 | 125k | } |
_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 | 274k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 274k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 274k | } else { | 133 | 274k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 274k | } | 135 | 274k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 30 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 30 | } else { | 133 | 30 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 30 | } | 135 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.7k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 12.7k | } else { | 133 | 12.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 12.7k | } | 135 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.86k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.86k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.85k | } else { | 133 | 7.85k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.85k | } | 135 | 7.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 165k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 165k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 165k | } else { | 133 | 165k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 165k | } | 135 | 165k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 579 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 579 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 579 | } else { | 133 | 579 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 579 | } | 135 | 579 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 86 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 86 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 86 | } else { | 133 | 86 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 86 | } | 135 | 86 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 104 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 104 | if (_parent->nereids_id() == -1) { | 131 | 104 | return fmt::format("(id={})", _parent->node_id()); | 132 | 104 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 104 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.23k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.23k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.22k | } else { | 133 | 7.22k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.22k | } | 135 | 7.23k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 645 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 645 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 543 | } else { | 133 | 543 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 543 | } | 135 | 645 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.3k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.3k | if (_parent->nereids_id() == -1) { | 131 | 12.3k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 12.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 264k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 264k | if (_parent->nereids_id() == -1) { | 131 | 264k | 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 | 264k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 518k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 518k | if (_parent->nereids_id() == -1) { | 131 | 518k | return fmt::format("(id={})", _parent->node_id()); | 132 | 518k | } else { | 133 | 70 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 70 | } | 135 | 518k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 328 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 328 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 328 | } else { | 133 | 328 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 328 | } | 135 | 328 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 29.8k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 29.8k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 29.8k | _terminated = true; |
143 | 29.8k | return Status::OK(); |
144 | 29.8k | } _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.11k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.11k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.11k | _terminated = true; | 143 | 1.11k | return Status::OK(); | 144 | 1.11k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 5 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 5 | _terminated = true; | 143 | 5 | return Status::OK(); | 144 | 5 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.94k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.94k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.94k | _terminated = true; | 143 | 2.94k | return Status::OK(); | 144 | 2.94k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2 | _terminated = true; | 143 | 2 | return Status::OK(); | 144 | 2 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 603 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 603 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 603 | _terminated = true; | 143 | 603 | return Status::OK(); | 144 | 603 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 43 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 43 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 43 | _terminated = true; | 143 | 43 | return Status::OK(); | 144 | 43 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 770 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 770 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 770 | _terminated = true; | 143 | 770 | return Status::OK(); | 144 | 770 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 4 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 4 | _terminated = true; | 143 | 4 | return Status::OK(); | 144 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 168 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 168 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 168 | _terminated = true; | 143 | 168 | return Status::OK(); | 144 | 168 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 144 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 144 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 144 | _terminated = true; | 143 | 144 | return Status::OK(); | 144 | 144 | } |
|
145 | | |
146 | 416k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 416k | return _child && _child->is_serial_operator() && !is_source() |
148 | 416k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 416k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 416k | } |
151 | | |
152 | 32.6k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 32.6k | if (!_child) { |
154 | 27.7k | return false; |
155 | 27.7k | } |
156 | 4.87k | if (_child->is_serial_operator()) { |
157 | 147 | return true; |
158 | 147 | } |
159 | 4.73k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 4.73k | return child_distribution.need_local_exchange() && |
161 | 4.73k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 4.87k | } |
163 | | |
164 | 82.8k | const RowDescriptor& OperatorBase::row_desc() const { |
165 | 82.8k | return _child->row_desc(); |
166 | 82.8k | } |
167 | | |
168 | | template <typename SharedStateArg> |
169 | 19.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
170 | 19.3k | fmt::memory_buffer debug_string_buffer; |
171 | 19.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
172 | 19.3k | return fmt::to_string(debug_string_buffer); |
173 | 19.3k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 34 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 34 | fmt::memory_buffer debug_string_buffer; | 171 | 34 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 34 | return fmt::to_string(debug_string_buffer); | 173 | 34 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 3 | fmt::memory_buffer debug_string_buffer; | 171 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 3 | return fmt::to_string(debug_string_buffer); | 173 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 16 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 16 | fmt::memory_buffer debug_string_buffer; | 171 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 16 | return fmt::to_string(debug_string_buffer); | 173 | 16 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 16 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 16 | fmt::memory_buffer debug_string_buffer; | 171 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 16 | return fmt::to_string(debug_string_buffer); | 173 | 16 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 15 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 15 | fmt::memory_buffer debug_string_buffer; | 171 | 15 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 15 | return fmt::to_string(debug_string_buffer); | 173 | 15 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 19.2k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 19.2k | fmt::memory_buffer debug_string_buffer; | 171 | 19.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 19.2k | return fmt::to_string(debug_string_buffer); | 173 | 19.2k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 1 | fmt::memory_buffer debug_string_buffer; | 171 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 1 | return fmt::to_string(debug_string_buffer); | 173 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 46 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 46 | fmt::memory_buffer debug_string_buffer; | 171 | 46 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 46 | return fmt::to_string(debug_string_buffer); | 173 | 46 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
174 | | |
175 | | template <typename SharedStateArg> |
176 | 19.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
177 | 19.3k | fmt::memory_buffer debug_string_buffer; |
178 | 19.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
179 | 19.3k | return fmt::to_string(debug_string_buffer); |
180 | 19.3k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 10 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 10 | fmt::memory_buffer debug_string_buffer; | 178 | 10 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 10 | return fmt::to_string(debug_string_buffer); | 180 | 10 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 16 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 16 | fmt::memory_buffer debug_string_buffer; | 178 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 16 | return fmt::to_string(debug_string_buffer); | 180 | 16 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 10 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 10 | fmt::memory_buffer debug_string_buffer; | 178 | 10 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 10 | return fmt::to_string(debug_string_buffer); | 180 | 10 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 15 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 15 | fmt::memory_buffer debug_string_buffer; | 178 | 15 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 15 | return fmt::to_string(debug_string_buffer); | 180 | 15 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 48 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 48 | fmt::memory_buffer debug_string_buffer; | 178 | 48 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 48 | return fmt::to_string(debug_string_buffer); | 180 | 48 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 30 | fmt::memory_buffer debug_string_buffer; | 178 | 30 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 30 | return fmt::to_string(debug_string_buffer); | 180 | 30 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 19.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 19.2k | fmt::memory_buffer debug_string_buffer; | 178 | 19.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 19.2k | return fmt::to_string(debug_string_buffer); | 180 | 19.2k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
181 | | |
182 | 19.4k | std::string OperatorXBase::debug_string(int indentation_level) const { |
183 | 19.4k | fmt::memory_buffer debug_string_buffer; |
184 | 19.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
185 | 19.4k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
186 | 19.4k | _is_serial_operator); |
187 | 19.4k | return fmt::to_string(debug_string_buffer); |
188 | 19.4k | } |
189 | | |
190 | 19.3k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
191 | 19.3k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
192 | 19.3k | } |
193 | | |
194 | 835k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
195 | 835k | std::string node_name = print_plan_node_type(tnode.node_type); |
196 | 835k | _nereids_id = tnode.nereids_id; |
197 | 835k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
198 | 4.15k | if (!tnode.__isset.output_tuple_id) { |
199 | 0 | return Status::InternalError("no final output tuple id"); |
200 | 0 | } |
201 | 4.15k | if (tnode.intermediate_output_tuple_id_list.size() != |
202 | 4.15k | tnode.intermediate_projections_list.size()) { |
203 | 0 | return Status::InternalError( |
204 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
205 | 0 | "intermediate_projections_list size:{}", |
206 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
207 | 0 | tnode.intermediate_projections_list.size()); |
208 | 0 | } |
209 | 4.15k | } |
210 | 835k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
211 | 835k | _op_name = substr + "_OPERATOR"; |
212 | | |
213 | 835k | if (tnode.__isset.vconjunct) { |
214 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
215 | 835k | } else if (tnode.__isset.conjuncts) { |
216 | 485k | for (const auto& conjunct : tnode.conjuncts) { |
217 | 485k | VExprContextSPtr context; |
218 | 485k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
219 | 485k | _conjuncts.emplace_back(context); |
220 | 485k | } |
221 | 156k | } |
222 | | |
223 | | // create the projections expr |
224 | 835k | if (tnode.__isset.projections) { |
225 | 332k | DCHECK(tnode.__isset.output_tuple_id); |
226 | 332k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
227 | 332k | } |
228 | 835k | if (!tnode.intermediate_projections_list.empty()) { |
229 | 4.15k | DCHECK(tnode.__isset.projections) << "no final projections"; |
230 | 4.15k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
231 | 8.48k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
232 | 8.48k | VExprContextSPtrs projections; |
233 | 8.48k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
234 | 8.48k | _intermediate_projections.push_back(projections); |
235 | 8.48k | } |
236 | 4.15k | } |
237 | 835k | return Status::OK(); |
238 | 835k | } |
239 | | |
240 | 867k | Status OperatorXBase::prepare(RuntimeState* state) { |
241 | 867k | for (auto& conjunct : _conjuncts) { |
242 | 484k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
243 | 484k | } |
244 | 867k | if (state->enable_adjust_conjunct_order_by_cost()) { |
245 | 814k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
246 | 645k | return a->execute_cost() < b->execute_cost(); |
247 | 645k | }); |
248 | 814k | }; |
249 | | |
250 | 876k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
251 | 8.48k | RETURN_IF_ERROR( |
252 | 8.48k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
253 | 8.48k | } |
254 | 867k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
255 | | |
256 | 867k | if (has_output_row_desc()) { |
257 | 332k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
258 | 332k | } |
259 | | |
260 | 867k | for (auto& conjunct : _conjuncts) { |
261 | 485k | RETURN_IF_ERROR(conjunct->open(state)); |
262 | 485k | } |
263 | 867k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
264 | 867k | for (auto& projections : _intermediate_projections) { |
265 | 8.48k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
266 | 8.48k | } |
267 | 867k | if (_child && !is_source()) { |
268 | 129k | RETURN_IF_ERROR(_child->prepare(state)); |
269 | 129k | } |
270 | | |
271 | 867k | if (VExpr::contains_blockable_function(_conjuncts) || |
272 | 867k | VExpr::contains_blockable_function(_projections)) { |
273 | 0 | _blockable = true; |
274 | 0 | } |
275 | | |
276 | 867k | return Status::OK(); |
277 | 867k | } |
278 | | |
279 | 7.15k | Status OperatorXBase::terminate(RuntimeState* state) { |
280 | 7.15k | if (_child && !is_source()) { |
281 | 1.30k | RETURN_IF_ERROR(_child->terminate(state)); |
282 | 1.30k | } |
283 | 7.15k | auto result = state->get_local_state_result(operator_id()); |
284 | 7.15k | if (!result) { |
285 | 0 | return result.error(); |
286 | 0 | } |
287 | 7.15k | return result.value()->terminate(state); |
288 | 7.15k | } |
289 | | |
290 | 6.26M | Status OperatorXBase::close(RuntimeState* state) { |
291 | 6.26M | if (_child && !is_source()) { |
292 | 1.10M | RETURN_IF_ERROR(_child->close(state)); |
293 | 1.10M | } |
294 | 6.26M | auto result = state->get_local_state_result(operator_id()); |
295 | 6.26M | if (!result) { |
296 | 0 | return result.error(); |
297 | 0 | } |
298 | 6.26M | return result.value()->close(state); |
299 | 6.26M | } |
300 | | |
301 | 312k | void PipelineXLocalStateBase::clear_origin_block() { |
302 | 312k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
303 | 312k | } |
304 | | |
305 | 595k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
306 | 595k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
307 | | |
308 | 595k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
309 | 595k | return Status::OK(); |
310 | 595k | } |
311 | | |
312 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
313 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
314 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
315 | 0 | } |
316 | | |
317 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
318 | 312k | Block* output_block) const { |
319 | 312k | auto* local_state = state->get_local_state(operator_id()); |
320 | 312k | SCOPED_TIMER(local_state->exec_time_counter()); |
321 | 312k | SCOPED_TIMER(local_state->_projection_timer); |
322 | 312k | const size_t rows = origin_block->rows(); |
323 | 312k | if (rows == 0) { |
324 | 162k | return Status::OK(); |
325 | 162k | } |
326 | 150k | Block input_block = *origin_block; |
327 | | |
328 | 150k | size_t bytes_usage = 0; |
329 | 150k | ColumnsWithTypeAndName new_columns; |
330 | 150k | for (const auto& projections : local_state->_intermediate_projections) { |
331 | 1.86k | if (projections.empty()) { |
332 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
333 | 0 | node_id()); |
334 | 0 | } |
335 | 1.86k | new_columns.resize(projections.size()); |
336 | 14.3k | for (int i = 0; i < projections.size(); i++) { |
337 | 12.5k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
338 | 12.5k | if (new_columns[i].column->size() != rows) { |
339 | 0 | return Status::InternalError( |
340 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
341 | 0 | "expr: {}", |
342 | 0 | new_columns[i].column->size(), rows, |
343 | 0 | projections[i]->root()->debug_string()); |
344 | 0 | } |
345 | 12.5k | } |
346 | 1.86k | Block tmp_block {new_columns}; |
347 | 1.86k | bytes_usage += tmp_block.allocated_bytes(); |
348 | 1.86k | input_block.swap(tmp_block); |
349 | 1.86k | } |
350 | | |
351 | 150k | if (input_block.rows() != rows) { |
352 | 0 | return Status::InternalError( |
353 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
354 | 0 | "input_block: {}", |
355 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
356 | 0 | } |
357 | 686k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
358 | 686k | if (is_column_nullable(*to) && !is_column_nullable(*from)) { |
359 | 0 | if (_keep_origin || !from->is_exclusive()) { |
360 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
361 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
362 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
363 | 0 | bytes_usage += null_column.allocated_bytes(); |
364 | 0 | } else { |
365 | 0 | to = make_nullable(from, false)->assert_mutable(); |
366 | 0 | } |
367 | 686k | } else { |
368 | 686k | if (_keep_origin || !from->is_exclusive()) { |
369 | 686k | to->insert_range_from(*from, 0, rows); |
370 | 686k | bytes_usage += from->allocated_bytes(); |
371 | 18.4E | } else { |
372 | 18.4E | to = from->assert_mutable(); |
373 | 18.4E | } |
374 | 686k | } |
375 | 686k | }; |
376 | | |
377 | 150k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
378 | 150k | output_block, *_output_row_descriptor); |
379 | 150k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
380 | 150k | auto& mutable_columns = mutable_block.mutable_columns(); |
381 | 150k | if (rows != 0) { |
382 | 150k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
383 | 836k | for (int i = 0; i < mutable_columns.size(); ++i) { |
384 | 686k | ColumnPtr column_ptr; |
385 | 686k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
386 | 686k | if (column_ptr->size() != rows) { |
387 | 0 | return Status::InternalError( |
388 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
389 | 0 | column_ptr->size(), rows, |
390 | 0 | local_state->_projections[i]->root()->debug_string()); |
391 | 0 | } |
392 | 686k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
393 | 686k | bytes_usage += column_ptr->allocated_bytes(); |
394 | 686k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
395 | 686k | } |
396 | 150k | DCHECK(mutable_block.rows() == rows); |
397 | 150k | } |
398 | 150k | local_state->_estimate_memory_usage += bytes_usage; |
399 | | |
400 | 150k | return Status::OK(); |
401 | 150k | } |
402 | | |
403 | 4.86M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
404 | 4.86M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
405 | 4.86M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
406 | 4.86M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
407 | 4.86M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
408 | 4.86M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
409 | 4.86M | if (_debug_point_count++ % 2 == 0) { |
410 | 4.86M | return Status::OK(); |
411 | 4.86M | } |
412 | 4.86M | } |
413 | 4.86M | }); |
414 | | |
415 | 4.86M | Status status; |
416 | 4.86M | auto* local_state = state->get_local_state(operator_id()); |
417 | 4.86M | Defer defer([&]() { |
418 | 4.86M | if (status.ok()) { |
419 | 4.86M | local_state->update_output_block_counters(*block); |
420 | 4.86M | } |
421 | 4.86M | }); |
422 | 4.86M | if (_output_row_descriptor) { |
423 | 312k | local_state->clear_origin_block(); |
424 | 312k | status = get_block(state, &local_state->_origin_block, eos); |
425 | 312k | if (UNLIKELY(!status.ok())) { |
426 | 20 | return status; |
427 | 20 | } |
428 | 312k | status = do_projections(state, &local_state->_origin_block, block); |
429 | 312k | return status; |
430 | 312k | } |
431 | 4.54M | status = get_block(state, block, eos); |
432 | 4.54M | RETURN_IF_ERROR(block->check_type_and_column()); |
433 | 4.54M | return status; |
434 | 4.54M | } |
435 | | |
436 | 3.29M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
437 | 3.29M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
438 | 6.66k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
439 | 6.66k | *eos = true; |
440 | 6.66k | } |
441 | | |
442 | 3.29M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
443 | 3.29M | auto op_name = to_lower(_parent->_op_name); |
444 | 3.29M | auto arg_op_name = dp->param<std::string>("op_name"); |
445 | 3.29M | arg_op_name = to_lower(arg_op_name); |
446 | | |
447 | 3.29M | if (op_name == arg_op_name) { |
448 | 3.29M | *eos = true; |
449 | 3.29M | } |
450 | 3.29M | }); |
451 | | |
452 | 3.29M | if (auto rows = block->rows()) { |
453 | 938k | _num_rows_returned += rows; |
454 | 938k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
455 | 938k | } |
456 | 3.29M | } |
457 | | |
458 | 29.8k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
459 | 29.8k | auto result = state->get_sink_local_state_result(); |
460 | 29.8k | if (!result) { |
461 | 0 | return result.error(); |
462 | 0 | } |
463 | 29.8k | return result.value()->terminate(state); |
464 | 29.8k | } |
465 | | |
466 | 19.3k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
467 | 19.3k | fmt::memory_buffer debug_string_buffer; |
468 | | |
469 | 19.3k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
470 | 19.3k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
471 | 19.3k | return fmt::to_string(debug_string_buffer); |
472 | 19.3k | } |
473 | | |
474 | 19.3k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
475 | 19.3k | return state->get_sink_local_state()->debug_string(indentation_level); |
476 | 19.3k | } |
477 | | |
478 | 476k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
479 | 476k | std::string op_name = "UNKNOWN_SINK"; |
480 | 476k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
481 | | |
482 | 476k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
483 | 476k | op_name = it->second; |
484 | 476k | } |
485 | 476k | _name = op_name + "_OPERATOR"; |
486 | 476k | return Status::OK(); |
487 | 476k | } |
488 | | |
489 | 307k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
490 | 307k | std::string op_name = print_plan_node_type(tnode.node_type); |
491 | 307k | _nereids_id = tnode.nereids_id; |
492 | 307k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
493 | 307k | _name = substr + "_SINK_OPERATOR"; |
494 | 307k | return Status::OK(); |
495 | 307k | } |
496 | | |
497 | | template <typename LocalStateType> |
498 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
499 | 2.12M | LocalSinkStateInfo& info) { |
500 | 2.12M | auto local_state = LocalStateType::create_unique(this, state); |
501 | 2.12M | RETURN_IF_ERROR(local_state->init(state, info)); |
502 | 2.12M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
503 | 2.12M | return Status::OK(); |
504 | 2.12M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 125k | LocalSinkStateInfo& info) { | 500 | 125k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 125k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 125k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 125k | return Status::OK(); | 504 | 125k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 449k | LocalSinkStateInfo& info) { | 500 | 449k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 449k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 449k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 449k | return Status::OK(); | 504 | 449k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 86 | LocalSinkStateInfo& info) { | 500 | 86 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 86 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 86 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 86 | return Status::OK(); | 504 | 86 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 3 | LocalSinkStateInfo& info) { | 500 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 3 | return Status::OK(); | 504 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 512 | LocalSinkStateInfo& info) { | 500 | 512 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 512 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 512 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 512 | return Status::OK(); | 504 | 512 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 46.7k | LocalSinkStateInfo& info) { | 500 | 46.7k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 46.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 46.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 46.7k | return Status::OK(); | 504 | 46.7k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 9.55k | LocalSinkStateInfo& info) { | 500 | 9.55k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 9.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 9.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 9.55k | return Status::OK(); | 504 | 9.55k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 5.08k | LocalSinkStateInfo& info) { | 500 | 5.08k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 5.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 5.08k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 5.08k | return Status::OK(); | 504 | 5.08k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 156 | LocalSinkStateInfo& info) { | 500 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 156 | return Status::OK(); | 504 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 4.01k | LocalSinkStateInfo& info) { | 500 | 4.01k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 4.01k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 4.01k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 4.01k | return Status::OK(); | 504 | 4.01k | } |
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 48 | LocalSinkStateInfo& info) { | 500 | 48 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 48 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 48 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 48 | return Status::OK(); | 504 | 48 | } |
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 704 | LocalSinkStateInfo& info) { | 500 | 704 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 704 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 704 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 704 | return Status::OK(); | 504 | 704 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 1.71k | LocalSinkStateInfo& info) { | 500 | 1.71k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 1.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 1.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 1.71k | return Status::OK(); | 504 | 1.71k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 7.86k | LocalSinkStateInfo& info) { | 500 | 7.86k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 7.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 7.86k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 7.86k | return Status::OK(); | 504 | 7.86k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 101 | LocalSinkStateInfo& info) { | 500 | 101 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 101 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 101 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 101 | return Status::OK(); | 504 | 101 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 274k | LocalSinkStateInfo& info) { | 500 | 274k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 274k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 274k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 274k | return Status::OK(); | 504 | 274k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 30 | LocalSinkStateInfo& info) { | 500 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 30 | return Status::OK(); | 504 | 30 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 264k | LocalSinkStateInfo& info) { | 500 | 264k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 264k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 264k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 264k | return Status::OK(); | 504 | 264k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 165k | LocalSinkStateInfo& info) { | 500 | 165k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 165k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 165k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 165k | return Status::OK(); | 504 | 165k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 576 | LocalSinkStateInfo& info) { | 500 | 576 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 576 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 576 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 576 | return Status::OK(); | 504 | 576 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 86 | LocalSinkStateInfo& info) { | 500 | 86 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 86 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 86 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 86 | return Status::OK(); | 504 | 86 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 734k | LocalSinkStateInfo& info) { | 500 | 734k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 734k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 734k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 734k | return Status::OK(); | 504 | 734k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 12.7k | LocalSinkStateInfo& info) { | 500 | 12.7k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 12.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 12.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 12.7k | return Status::OK(); | 504 | 12.7k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 7.21k | LocalSinkStateInfo& info) { | 500 | 7.21k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 7.21k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 7.21k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 7.21k | return Status::OK(); | 504 | 7.21k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 4.14k | LocalSinkStateInfo& info) { | 500 | 4.14k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 4.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 4.14k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 4.14k | return Status::OK(); | 504 | 4.14k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 543 | LocalSinkStateInfo& info) { | 500 | 543 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 543 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 543 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 543 | return Status::OK(); | 504 | 543 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 4.70k | LocalSinkStateInfo& info) { | 500 | 4.70k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 4.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 4.70k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 4.70k | return Status::OK(); | 504 | 4.70k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.52k | LocalSinkStateInfo& info) { | 500 | 2.52k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.52k | return Status::OK(); | 504 | 2.52k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.56k | LocalSinkStateInfo& info) { | 500 | 2.56k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.56k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.56k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.56k | return Status::OK(); | 504 | 2.56k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.47k | LocalSinkStateInfo& info) { | 500 | 2.47k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.47k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.47k | return Status::OK(); | 504 | 2.47k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 1 | LocalSinkStateInfo& info) { | 500 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 569 | LocalSinkStateInfo& info) { | 500 | 569 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 569 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 569 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 569 | return Status::OK(); | 504 | 569 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 14 | LocalSinkStateInfo& info) { | 500 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 14 | return Status::OK(); | 504 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 100 | LocalSinkStateInfo& info) { | 500 | 100 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 100 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 100 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 100 | return Status::OK(); | 504 | 100 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 164 | LocalSinkStateInfo& info) { | 500 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 164 | return Status::OK(); | 504 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 164 | LocalSinkStateInfo& info) { | 500 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 164 | return Status::OK(); | 504 | 164 | } |
|
505 | | |
506 | | template <typename LocalStateType> |
507 | 1.82M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
509 | 0 | LocalExchangeSharedState>) { |
510 | 0 | return nullptr; |
511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
512 | 0 | MultiCastSharedState>) { |
513 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
514 | 1.82M | } else { |
515 | 1.82M | auto ss = LocalStateType::SharedStateType::create_shared(); |
516 | 1.82M | ss->id = operator_id(); |
517 | 1.82M | for (auto& dest : dests_id()) { |
518 | 1.82M | ss->related_op_ids.insert(dest); |
519 | 1.82M | } |
520 | 1.82M | return ss; |
521 | 1.82M | } |
522 | 1.82M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 102k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 102k | } else { | 515 | 102k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 102k | ss->id = operator_id(); | 517 | 102k | for (auto& dest : dests_id()) { | 518 | 102k | ss->related_op_ids.insert(dest); | 519 | 102k | } | 520 | 102k | return ss; | 521 | 102k | } | 522 | 102k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 450k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 450k | } else { | 515 | 450k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 450k | ss->id = operator_id(); | 517 | 450k | for (auto& dest : dests_id()) { | 518 | 450k | ss->related_op_ids.insert(dest); | 519 | 450k | } | 520 | 450k | return ss; | 521 | 450k | } | 522 | 450k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 86 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 86 | } else { | 515 | 86 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 86 | ss->id = operator_id(); | 517 | 86 | for (auto& dest : dests_id()) { | 518 | 86 | ss->related_op_ids.insert(dest); | 519 | 86 | } | 520 | 86 | return ss; | 521 | 86 | } | 522 | 86 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 3 | } else { | 515 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 3 | ss->id = operator_id(); | 517 | 3 | for (auto& dest : dests_id()) { | 518 | 3 | ss->related_op_ids.insert(dest); | 519 | 3 | } | 520 | 3 | return ss; | 521 | 3 | } | 522 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 513 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 513 | } else { | 515 | 513 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 513 | ss->id = operator_id(); | 517 | 513 | for (auto& dest : dests_id()) { | 518 | 513 | ss->related_op_ids.insert(dest); | 519 | 513 | } | 520 | 513 | return ss; | 521 | 513 | } | 522 | 513 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 46.8k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 46.8k | } else { | 515 | 46.8k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 46.8k | ss->id = operator_id(); | 517 | 46.8k | for (auto& dest : dests_id()) { | 518 | 46.7k | ss->related_op_ids.insert(dest); | 519 | 46.7k | } | 520 | 46.8k | return ss; | 521 | 46.8k | } | 522 | 46.8k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 9.55k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 9.55k | } else { | 515 | 9.55k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 9.55k | ss->id = operator_id(); | 517 | 9.55k | for (auto& dest : dests_id()) { | 518 | 9.55k | ss->related_op_ids.insert(dest); | 519 | 9.55k | } | 520 | 9.55k | return ss; | 521 | 9.55k | } | 522 | 9.55k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 5.08k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 5.08k | } else { | 515 | 5.08k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 5.08k | ss->id = operator_id(); | 517 | 5.08k | for (auto& dest : dests_id()) { | 518 | 5.08k | ss->related_op_ids.insert(dest); | 519 | 5.08k | } | 520 | 5.08k | return ss; | 521 | 5.08k | } | 522 | 5.08k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 156 | } else { | 515 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 156 | ss->id = operator_id(); | 517 | 156 | for (auto& dest : dests_id()) { | 518 | 156 | ss->related_op_ids.insert(dest); | 519 | 156 | } | 520 | 156 | return ss; | 521 | 156 | } | 522 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 4.01k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 4.01k | } else { | 515 | 4.01k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 4.01k | ss->id = operator_id(); | 517 | 4.01k | for (auto& dest : dests_id()) { | 518 | 4.01k | ss->related_op_ids.insert(dest); | 519 | 4.01k | } | 520 | 4.01k | return ss; | 521 | 4.01k | } | 522 | 4.01k | } |
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 48 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 48 | } else { | 515 | 48 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 48 | ss->id = operator_id(); | 517 | 48 | for (auto& dest : dests_id()) { | 518 | 48 | ss->related_op_ids.insert(dest); | 519 | 48 | } | 520 | 48 | return ss; | 521 | 48 | } | 522 | 48 | } |
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 704 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 704 | } else { | 515 | 704 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 704 | ss->id = operator_id(); | 517 | 704 | for (auto& dest : dests_id()) { | 518 | 704 | ss->related_op_ids.insert(dest); | 519 | 704 | } | 520 | 704 | return ss; | 521 | 704 | } | 522 | 704 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 1.71k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 1.71k | } else { | 515 | 1.71k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 1.71k | ss->id = operator_id(); | 517 | 1.71k | for (auto& dest : dests_id()) { | 518 | 1.71k | ss->related_op_ids.insert(dest); | 519 | 1.71k | } | 520 | 1.71k | return ss; | 521 | 1.71k | } | 522 | 1.71k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 7.91k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 7.91k | } else { | 515 | 7.91k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 7.91k | ss->id = operator_id(); | 517 | 7.91k | for (auto& dest : dests_id()) { | 518 | 7.91k | ss->related_op_ids.insert(dest); | 519 | 7.91k | } | 520 | 7.91k | return ss; | 521 | 7.91k | } | 522 | 7.91k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 101 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 101 | } else { | 515 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 101 | ss->id = operator_id(); | 517 | 101 | for (auto& dest : dests_id()) { | 518 | 101 | ss->related_op_ids.insert(dest); | 519 | 101 | } | 520 | 101 | return ss; | 521 | 101 | } | 522 | 101 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 275k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 275k | } else { | 515 | 275k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 275k | ss->id = operator_id(); | 517 | 275k | for (auto& dest : dests_id()) { | 518 | 274k | ss->related_op_ids.insert(dest); | 519 | 274k | } | 520 | 275k | return ss; | 521 | 275k | } | 522 | 275k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 32 | } else { | 515 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 32 | ss->id = operator_id(); | 517 | 32 | for (auto& dest : dests_id()) { | 518 | 32 | ss->related_op_ids.insert(dest); | 519 | 32 | } | 520 | 32 | return ss; | 521 | 32 | } | 522 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 165k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 165k | } else { | 515 | 165k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 165k | ss->id = operator_id(); | 517 | 165k | for (auto& dest : dests_id()) { | 518 | 165k | ss->related_op_ids.insert(dest); | 519 | 165k | } | 520 | 165k | return ss; | 521 | 165k | } | 522 | 165k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 85 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 85 | } else { | 515 | 85 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 85 | ss->id = operator_id(); | 517 | 85 | for (auto& dest : dests_id()) { | 518 | 85 | ss->related_op_ids.insert(dest); | 519 | 85 | } | 520 | 85 | return ss; | 521 | 85 | } | 522 | 85 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 734k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 734k | } else { | 515 | 734k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 734k | ss->id = operator_id(); | 517 | 734k | for (auto& dest : dests_id()) { | 518 | 732k | ss->related_op_ids.insert(dest); | 519 | 732k | } | 520 | 734k | return ss; | 521 | 734k | } | 522 | 734k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 12.7k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 12.7k | } else { | 515 | 12.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 12.7k | ss->id = operator_id(); | 517 | 12.7k | for (auto& dest : dests_id()) { | 518 | 12.7k | ss->related_op_ids.insert(dest); | 519 | 12.7k | } | 520 | 12.7k | return ss; | 521 | 12.7k | } | 522 | 12.7k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 646 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 646 | } else { | 515 | 646 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 646 | ss->id = operator_id(); | 517 | 646 | for (auto& dest : dests_id()) { | 518 | 646 | ss->related_op_ids.insert(dest); | 519 | 646 | } | 520 | 646 | return ss; | 521 | 646 | } | 522 | 646 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 507 | 2.55k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 2.55k | } else { | 515 | 2.55k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 2.55k | ss->id = operator_id(); | 517 | 2.55k | for (auto& dest : dests_id()) { | 518 | 2.54k | ss->related_op_ids.insert(dest); | 519 | 2.54k | } | 520 | 2.55k | return ss; | 521 | 2.55k | } | 522 | 2.55k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 507 | 2.45k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 2.45k | } else { | 515 | 2.45k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 2.45k | ss->id = operator_id(); | 517 | 2.45k | for (auto& dest : dests_id()) { | 518 | 2.45k | ss->related_op_ids.insert(dest); | 519 | 2.45k | } | 520 | 2.45k | return ss; | 521 | 2.45k | } | 522 | 2.45k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 566 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 566 | } else { | 515 | 566 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 566 | ss->id = operator_id(); | 517 | 566 | for (auto& dest : dests_id()) { | 518 | 559 | ss->related_op_ids.insert(dest); | 519 | 559 | } | 520 | 566 | return ss; | 521 | 566 | } | 522 | 566 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 100 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 508 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 509 | | LocalExchangeSharedState>) { | 510 | | return nullptr; | 511 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | MultiCastSharedState>) { | 513 | | throw Exception(Status::FatalError("should not reach here!")); | 514 | 100 | } else { | 515 | 100 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 100 | ss->id = operator_id(); | 517 | 100 | for (auto& dest : dests_id()) { | 518 | 100 | ss->related_op_ids.insert(dest); | 519 | 100 | } | 520 | 100 | return ss; | 521 | 100 | } | 522 | 100 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
523 | | |
524 | | template <typename LocalStateType> |
525 | 2.60M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
526 | 2.60M | auto local_state = LocalStateType::create_unique(state, this); |
527 | 2.60M | RETURN_IF_ERROR(local_state->init(state, info)); |
528 | 2.60M | state->emplace_local_state(operator_id(), std::move(local_state)); |
529 | 2.60M | return Status::OK(); |
530 | 2.60M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 77.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 77.0k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 77.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 77.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 77.0k | return Status::OK(); | 530 | 77.0k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 315k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 315k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 315k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 315k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 315k | return Status::OK(); | 530 | 315k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 132 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 132 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 132 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 132 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 132 | return Status::OK(); | 530 | 132 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 37.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 37.9k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 37.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 37.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 37.9k | return Status::OK(); | 530 | 37.9k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 7.82k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 7.82k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 7.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 7.82k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 7.82k | return Status::OK(); | 530 | 7.82k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 8.15k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 8.15k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 8.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 8.15k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 8.15k | return Status::OK(); | 530 | 8.15k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 23 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 23 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 23 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 23 | return Status::OK(); | 530 | 23 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 265k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 265k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 265k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 265k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 265k | return Status::OK(); | 530 | 265k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 165k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 165k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 165k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 165k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 165k | return Status::OK(); | 530 | 165k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 582 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 582 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 582 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 582 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 582 | return Status::OK(); | 530 | 582 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 76 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 76 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 76 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 76 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 76 | return Status::OK(); | 530 | 76 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 3.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 3.42k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 3.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 3.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 3.42k | return Status::OK(); | 530 | 3.42k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 403k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 403k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 403k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 403k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 403k | return Status::OK(); | 530 | 403k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 1.30k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.30k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.30k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.30k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.30k | return Status::OK(); | 530 | 1.30k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 12.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 12.7k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 12.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 12.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 12.7k | return Status::OK(); | 530 | 12.7k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 221 | return Status::OK(); | 530 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 1.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.98k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.98k | return Status::OK(); | 530 | 1.98k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 56.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 56.8k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 56.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 56.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 56.8k | return Status::OK(); | 530 | 56.8k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 11.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 11.4k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 11.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 11.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 11.4k | return Status::OK(); | 530 | 11.4k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 544 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 544 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 544 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 544 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 544 | return Status::OK(); | 530 | 544 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.57k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.57k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.57k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.57k | return Status::OK(); | 530 | 2.57k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.49k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.49k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.49k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.49k | return Status::OK(); | 530 | 2.49k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 522 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 522 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 522 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 522 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 522 | return Status::OK(); | 530 | 522 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.20k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.20k | return Status::OK(); | 530 | 2.20k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 6.50k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 6.50k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 6.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 6.50k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 6.50k | return Status::OK(); | 530 | 6.50k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 765k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 765k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 765k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 765k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 765k | return Status::OK(); | 530 | 765k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 14 | return Status::OK(); | 530 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 164 | return Status::OK(); | 530 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.18k | return Status::OK(); | 530 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 1.74k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.74k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.74k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.74k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.74k | return Status::OK(); | 530 | 1.74k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.73k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.73k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.73k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.73k | return Status::OK(); | 530 | 2.73k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 12.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 12.7k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 12.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 12.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 12.7k | return Status::OK(); | 530 | 12.7k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 438k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 438k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 438k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 438k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 438k | return Status::OK(); | 530 | 438k | } |
|
531 | | |
532 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
533 | | RuntimeState* state) |
534 | 2.13M | : _parent(parent), _state(state) {} |
535 | | |
536 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
537 | 2.60M | : _num_rows_returned(0), |
538 | 2.60M | _rows_returned_counter(nullptr), |
539 | 2.60M | _parent(parent), |
540 | 2.60M | _state(state), |
541 | 2.60M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
542 | | |
543 | | template <typename SharedStateArg> |
544 | 2.61M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
545 | 2.61M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
546 | 2.61M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
547 | 2.61M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
548 | 2.61M | _operator_profile->set_metadata(_parent->node_id()); |
549 | | // indent is false so that source operator will have same |
550 | | // indentation_level with its parent operator. |
551 | 2.61M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
552 | 2.61M | _operator_profile->add_child(_common_profile.get(), true); |
553 | 2.61M | _operator_profile->add_child(_custom_profile.get(), true); |
554 | 2.61M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
555 | 2.61M | if constexpr (!is_fake_shared) { |
556 | 1.38M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
557 | 788k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
558 | 788k | .first.get() |
559 | 788k | ->template cast<SharedStateArg>(); |
560 | | |
561 | 788k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
562 | 788k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
563 | 788k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
564 | 788k | } else if (info.shared_state) { |
565 | 530k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
566 | 0 | DCHECK(false); |
567 | 0 | } |
568 | | // For UnionSourceOperator without children, there is no shared state. |
569 | 530k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
570 | | |
571 | 530k | _dependency = _shared_state->create_source_dependency( |
572 | 530k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
573 | 530k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
574 | 530k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
575 | 530k | } else { |
576 | 65.1k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
577 | 4.89k | DCHECK(false); |
578 | 4.89k | } |
579 | 65.1k | } |
580 | 1.38M | } |
581 | | |
582 | 2.61M | if (must_set_shared_state() && _shared_state == nullptr) { |
583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
584 | 0 | } |
585 | | |
586 | 2.61M | _rows_returned_counter = |
587 | 2.61M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
588 | 2.61M | _blocks_returned_counter = |
589 | 2.61M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
590 | 2.61M | _output_block_bytes_counter = |
591 | 2.61M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
592 | 2.61M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
593 | 2.61M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
594 | 2.61M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
595 | 2.61M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.61M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
597 | 2.61M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
598 | 2.61M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
599 | 2.61M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
600 | 2.61M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
601 | 2.61M | _memory_used_counter = |
602 | 2.61M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
603 | 2.61M | _common_profile->add_info_string("IsColocate", |
604 | 2.61M | std::to_string(_parent->is_colocated_operator())); |
605 | 2.61M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
606 | 2.61M | _common_profile->add_info_string("FollowedByShuffledOperator", |
607 | 2.61M | std::to_string(_parent->followed_by_shuffled_operator())); |
608 | 2.61M | return Status::OK(); |
609 | 2.61M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 77.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 77.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 77.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 77.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 77.2k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 77.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 77.2k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 77.2k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 77.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 77.2k | if constexpr (!is_fake_shared) { | 556 | 77.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 22.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 22.7k | .first.get() | 559 | 22.7k | ->template cast<SharedStateArg>(); | 560 | | | 561 | 22.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 22.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 22.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 54.4k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 53.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 53.9k | _dependency = _shared_state->create_source_dependency( | 572 | 53.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 53.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 53.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 53.9k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 534 | } | 580 | 77.2k | } | 581 | | | 582 | 77.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 77.2k | _rows_returned_counter = | 587 | 77.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 77.2k | _blocks_returned_counter = | 589 | 77.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 77.2k | _output_block_bytes_counter = | 591 | 77.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 77.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 77.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 77.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 77.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 77.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 77.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 77.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 77.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 77.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 77.2k | _memory_used_counter = | 602 | 77.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 77.2k | _common_profile->add_info_string("IsColocate", | 604 | 77.2k | std::to_string(_parent->is_colocated_operator())); | 605 | 77.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 77.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 77.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 77.2k | return Status::OK(); | 609 | 77.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 1 | if constexpr (!is_fake_shared) { | 556 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 1 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 1 | _dependency = _shared_state->create_source_dependency( | 572 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 1 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 1 | } | 581 | | | 582 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 1 | _rows_returned_counter = | 587 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 1 | _blocks_returned_counter = | 589 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 1 | _output_block_bytes_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 1 | _memory_used_counter = | 602 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 1 | _common_profile->add_info_string("IsColocate", | 604 | 1 | std::to_string(_parent->is_colocated_operator())); | 605 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 1 | return Status::OK(); | 609 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 275k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 275k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 275k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 275k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 275k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 275k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 275k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 275k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 275k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 275k | if constexpr (!is_fake_shared) { | 556 | 275k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 275k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 270k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 270k | _dependency = _shared_state->create_source_dependency( | 572 | 270k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 270k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 270k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 270k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 4.63k | } | 580 | 275k | } | 581 | | | 582 | 275k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 275k | _rows_returned_counter = | 587 | 275k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 275k | _blocks_returned_counter = | 589 | 275k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 275k | _output_block_bytes_counter = | 591 | 275k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 275k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 275k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 275k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 275k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 275k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 275k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 275k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 275k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 275k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 275k | _memory_used_counter = | 602 | 275k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 275k | _common_profile->add_info_string("IsColocate", | 604 | 275k | std::to_string(_parent->is_colocated_operator())); | 605 | 275k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 275k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 275k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 275k | return Status::OK(); | 609 | 275k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 23 | if constexpr (!is_fake_shared) { | 556 | 23 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 23 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 23 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 23 | _dependency = _shared_state->create_source_dependency( | 572 | 23 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 23 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 23 | } | 581 | | | 582 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 23 | _rows_returned_counter = | 587 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 23 | _blocks_returned_counter = | 589 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 23 | _output_block_bytes_counter = | 591 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 23 | _memory_used_counter = | 602 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 23 | _common_profile->add_info_string("IsColocate", | 604 | 23 | std::to_string(_parent->is_colocated_operator())); | 605 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 23 | return Status::OK(); | 609 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 12.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 12.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 12.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 12.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 12.7k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 12.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 12.7k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 12.7k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 12.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 12.7k | if constexpr (!is_fake_shared) { | 556 | 12.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 12.7k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 12.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 12.6k | _dependency = _shared_state->create_source_dependency( | 572 | 12.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 12.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 12.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 12.6k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 66 | } | 580 | 12.7k | } | 581 | | | 582 | 12.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 12.7k | _rows_returned_counter = | 587 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 12.7k | _blocks_returned_counter = | 589 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 12.7k | _output_block_bytes_counter = | 591 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 12.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 12.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 12.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 12.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 12.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 12.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 12.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 12.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 12.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 12.7k | _memory_used_counter = | 602 | 12.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 12.7k | _common_profile->add_info_string("IsColocate", | 604 | 12.7k | std::to_string(_parent->is_colocated_operator())); | 605 | 12.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 12.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 12.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 12.7k | return Status::OK(); | 609 | 12.7k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 7.89k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 7.89k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 7.89k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 7.89k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 7.89k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 7.89k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 7.89k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 7.89k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 7.89k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 7.89k | if constexpr (!is_fake_shared) { | 556 | 7.89k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 7.89k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 7.77k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 7.77k | _dependency = _shared_state->create_source_dependency( | 572 | 7.77k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 7.77k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 7.77k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 7.77k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 126 | } | 580 | 7.89k | } | 581 | | | 582 | 7.89k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 7.89k | _rows_returned_counter = | 587 | 7.89k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 7.89k | _blocks_returned_counter = | 589 | 7.89k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 7.89k | _output_block_bytes_counter = | 591 | 7.89k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 7.89k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 7.89k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 7.89k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 7.89k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.89k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 7.89k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 7.89k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 7.89k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 7.89k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 7.89k | _memory_used_counter = | 602 | 7.89k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 7.89k | _common_profile->add_info_string("IsColocate", | 604 | 7.89k | std::to_string(_parent->is_colocated_operator())); | 605 | 7.89k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 7.89k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 7.89k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 7.89k | return Status::OK(); | 609 | 7.89k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 165k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 165k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 165k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 165k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 165k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 165k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 165k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 165k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 165k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 165k | if constexpr (!is_fake_shared) { | 556 | 165k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 165k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 164k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 164k | _dependency = _shared_state->create_source_dependency( | 572 | 164k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 164k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 164k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 164k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 1.38k | } | 580 | 165k | } | 581 | | | 582 | 165k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 165k | _rows_returned_counter = | 587 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 165k | _blocks_returned_counter = | 589 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 165k | _output_block_bytes_counter = | 591 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 165k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 165k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 165k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 165k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 165k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 165k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 165k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 165k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 165k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 165k | _memory_used_counter = | 602 | 165k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 165k | _common_profile->add_info_string("IsColocate", | 604 | 165k | std::to_string(_parent->is_colocated_operator())); | 605 | 165k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 165k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 165k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 165k | return Status::OK(); | 609 | 165k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 586 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 586 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 586 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 586 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 586 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 586 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 586 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 586 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 586 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 586 | if constexpr (!is_fake_shared) { | 556 | 586 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 584 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 584 | .first.get() | 559 | 584 | ->template cast<SharedStateArg>(); | 560 | | | 561 | 584 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 584 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 584 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 584 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | |
| 571 | 0 | _dependency = _shared_state->create_source_dependency( | 572 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 2 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 2 | } | 580 | 586 | } | 581 | | | 582 | 586 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 586 | _rows_returned_counter = | 587 | 586 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 586 | _blocks_returned_counter = | 589 | 586 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 586 | _output_block_bytes_counter = | 591 | 586 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 586 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 586 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 586 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 586 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 586 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 586 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 586 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 586 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 586 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 586 | _memory_used_counter = | 602 | 586 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 586 | _common_profile->add_info_string("IsColocate", | 604 | 586 | std::to_string(_parent->is_colocated_operator())); | 605 | 586 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 586 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 586 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 586 | return Status::OK(); | 609 | 586 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 76 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 76 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 76 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 76 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 76 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 76 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 76 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 76 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 76 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 76 | if constexpr (!is_fake_shared) { | 556 | 76 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 76 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 76 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 76 | _dependency = _shared_state->create_source_dependency( | 572 | 76 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 76 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 76 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 76 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 76 | } | 581 | | | 582 | 76 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 76 | _rows_returned_counter = | 587 | 76 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 76 | _blocks_returned_counter = | 589 | 76 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 76 | _output_block_bytes_counter = | 591 | 76 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 76 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 76 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 76 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 76 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 76 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 76 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 76 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 76 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 76 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 76 | _memory_used_counter = | 602 | 76 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 76 | _common_profile->add_info_string("IsColocate", | 604 | 76 | std::to_string(_parent->is_colocated_operator())); | 605 | 76 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 76 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 76 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 76 | return Status::OK(); | 609 | 76 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 1.22M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 1.22M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 1.22M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 1.22M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 1.22M | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 1.22M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 1.22M | _operator_profile->add_child(_common_profile.get(), true); | 553 | 1.22M | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 1.22M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | | if constexpr (!is_fake_shared) { | 556 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | | .first.get() | 559 | | ->template cast<SharedStateArg>(); | 560 | | | 561 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | | _dependency = _shared_state->create_source_dependency( | 572 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | | } | 580 | | } | 581 | | | 582 | 1.22M | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 1.22M | _rows_returned_counter = | 587 | 1.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 1.22M | _blocks_returned_counter = | 589 | 1.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 1.22M | _output_block_bytes_counter = | 591 | 1.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 1.22M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 1.22M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 1.22M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 1.22M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1.22M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 1.22M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 1.22M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 1.22M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 1.22M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 1.22M | _memory_used_counter = | 602 | 1.22M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 1.22M | _common_profile->add_info_string("IsColocate", | 604 | 1.22M | std::to_string(_parent->is_colocated_operator())); | 605 | 1.22M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 1.22M | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 1.22M | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 1.22M | return Status::OK(); | 609 | 1.22M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 56.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 56.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 56.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 56.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 56.8k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 56.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 56.8k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 56.8k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 56.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 56.8k | if constexpr (!is_fake_shared) { | 556 | 56.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 56.8k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 3.42k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 3.42k | _dependency = _shared_state->create_source_dependency( | 572 | 3.42k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 3.42k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 3.42k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 53.4k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 53.4k | } | 580 | 56.8k | } | 581 | | | 582 | 56.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 56.8k | _rows_returned_counter = | 587 | 56.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 56.8k | _blocks_returned_counter = | 589 | 56.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 56.8k | _output_block_bytes_counter = | 591 | 56.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 56.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 56.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 56.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 56.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 56.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 56.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 56.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 56.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 56.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 56.8k | _memory_used_counter = | 602 | 56.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 56.8k | _common_profile->add_info_string("IsColocate", | 604 | 56.8k | std::to_string(_parent->is_colocated_operator())); | 605 | 56.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 56.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 56.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 56.8k | return Status::OK(); | 609 | 56.8k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 26 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 26 | if constexpr (!is_fake_shared) { | 556 | 26 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 26 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 26 | _dependency = _shared_state->create_source_dependency( | 572 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 26 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 26 | } | 581 | | | 582 | 26 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 26 | _rows_returned_counter = | 587 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 26 | _blocks_returned_counter = | 589 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 26 | _output_block_bytes_counter = | 591 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 26 | _memory_used_counter = | 602 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 26 | _common_profile->add_info_string("IsColocate", | 604 | 26 | std::to_string(_parent->is_colocated_operator())); | 605 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 26 | return Status::OK(); | 609 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 11.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 11.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 11.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 11.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 11.4k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 11.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 11.4k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 11.4k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 11.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 11.4k | if constexpr (!is_fake_shared) { | 556 | 11.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 11.4k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 11.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 11.4k | _dependency = _shared_state->create_source_dependency( | 572 | 11.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 11.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 11.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 11.4k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 18 | } | 580 | 11.4k | } | 581 | | | 582 | 11.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 11.4k | _rows_returned_counter = | 587 | 11.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 11.4k | _blocks_returned_counter = | 589 | 11.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 11.4k | _output_block_bytes_counter = | 591 | 11.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 11.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 11.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 11.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 11.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 11.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 11.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 11.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 11.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 11.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 11.4k | _memory_used_counter = | 602 | 11.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 11.4k | _common_profile->add_info_string("IsColocate", | 604 | 11.4k | std::to_string(_parent->is_colocated_operator())); | 605 | 11.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 11.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 11.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 11.4k | return Status::OK(); | 609 | 11.4k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 645 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 645 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 645 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 645 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 645 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 645 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 645 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 645 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 645 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 645 | if constexpr (!is_fake_shared) { | 556 | 645 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 645 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 644 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 644 | _dependency = _shared_state->create_source_dependency( | 572 | 644 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 644 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 644 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 644 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 1 | } | 580 | 645 | } | 581 | | | 582 | 645 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 645 | _rows_returned_counter = | 587 | 645 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 645 | _blocks_returned_counter = | 589 | 645 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 645 | _output_block_bytes_counter = | 591 | 645 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 645 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 645 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 645 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 645 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 645 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 645 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 645 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 645 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 645 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 645 | _memory_used_counter = | 602 | 645 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 645 | _common_profile->add_info_string("IsColocate", | 604 | 645 | std::to_string(_parent->is_colocated_operator())); | 605 | 645 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 645 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 645 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 645 | return Status::OK(); | 609 | 645 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 5.08k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 5.08k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 5.08k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 5.08k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 5.08k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 5.08k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 5.08k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 5.08k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 5.08k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 5.08k | if constexpr (!is_fake_shared) { | 556 | 5.08k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 5.08k | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 5.05k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 5.05k | _dependency = _shared_state->create_source_dependency( | 572 | 5.05k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 5.05k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 5.05k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 5.05k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 26 | } | 580 | 5.08k | } | 581 | | | 582 | 5.08k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 5.08k | _rows_returned_counter = | 587 | 5.08k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 5.08k | _blocks_returned_counter = | 589 | 5.08k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 5.08k | _output_block_bytes_counter = | 591 | 5.08k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 5.08k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 5.08k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 5.08k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 5.08k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.08k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 5.08k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 5.08k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 5.08k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 5.08k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 5.08k | _memory_used_counter = | 602 | 5.08k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 5.08k | _common_profile->add_info_string("IsColocate", | 604 | 5.08k | std::to_string(_parent->is_colocated_operator())); | 605 | 5.08k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 5.08k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 5.08k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 5.08k | return Status::OK(); | 609 | 5.08k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 769k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 769k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 769k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 769k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 769k | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 769k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 769k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 769k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 769k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 769k | if constexpr (!is_fake_shared) { | 556 | 769k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 764k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 764k | .first.get() | 559 | 764k | ->template cast<SharedStateArg>(); | 560 | | | 561 | 764k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 764k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 764k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 764k | } else if (info.shared_state) { | 565 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | 0 | DCHECK(false); | 567 | 0 | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | |
| 571 | 0 | _dependency = _shared_state->create_source_dependency( | 572 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 4.89k | } else { | 576 | 4.89k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | 4.89k | DCHECK(false); | 578 | 4.89k | } | 579 | 4.89k | } | 580 | 769k | } | 581 | | | 582 | 769k | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 769k | _rows_returned_counter = | 587 | 769k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 769k | _blocks_returned_counter = | 589 | 769k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 769k | _output_block_bytes_counter = | 591 | 769k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 769k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 769k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 769k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 769k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 769k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 769k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 769k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 769k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 769k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 769k | _memory_used_counter = | 602 | 769k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 769k | _common_profile->add_info_string("IsColocate", | 604 | 769k | std::to_string(_parent->is_colocated_operator())); | 605 | 769k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 769k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 769k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 769k | return Status::OK(); | 609 | 769k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 164 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 164 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 164 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 164 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 164 | _operator_profile->set_metadata(_parent->node_id()); | 549 | | // indent is false so that source operator will have same | 550 | | // indentation_level with its parent operator. | 551 | 164 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 164 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 164 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 164 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 164 | if constexpr (!is_fake_shared) { | 556 | 164 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 0 | .first.get() | 559 | 0 | ->template cast<SharedStateArg>(); | 560 | |
| 561 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 164 | } else if (info.shared_state) { | 565 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 566 | | DCHECK(false); | 567 | | } | 568 | | // For UnionSourceOperator without children, there is no shared state. | 569 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 164 | _dependency = _shared_state->create_source_dependency( | 572 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 164 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 164 | } | 581 | | | 582 | 164 | if (must_set_shared_state() && _shared_state == nullptr) { | 583 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 584 | 0 | } | 585 | | | 586 | 164 | _rows_returned_counter = | 587 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 164 | _blocks_returned_counter = | 589 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 164 | _output_block_bytes_counter = | 591 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 164 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 164 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 164 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 164 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 164 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 164 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 164 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 164 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 164 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 164 | _memory_used_counter = | 602 | 164 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 164 | _common_profile->add_info_string("IsColocate", | 604 | 164 | std::to_string(_parent->is_colocated_operator())); | 605 | 164 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 164 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 164 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 164 | return Status::OK(); | 609 | 164 | } |
|
610 | | |
611 | | template <typename SharedStateArg> |
612 | 2.61M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
613 | 2.61M | _conjuncts.resize(_parent->_conjuncts.size()); |
614 | 2.61M | _projections.resize(_parent->_projections.size()); |
615 | 3.15M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
616 | 542k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
617 | 542k | } |
618 | 5.50M | for (size_t i = 0; i < _projections.size(); i++) { |
619 | 2.89M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
620 | 2.89M | } |
621 | 2.61M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
622 | 2.63M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
623 | 13.1k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
624 | 103k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
625 | 89.9k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
626 | 89.9k | state, _intermediate_projections[i][j])); |
627 | 89.9k | } |
628 | 13.1k | } |
629 | 2.61M | return Status::OK(); |
630 | 2.61M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 77.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 77.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 77.1k | _projections.resize(_parent->_projections.size()); | 615 | 78.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 1.35k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 1.35k | } | 618 | 425k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 347k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 347k | } | 621 | 77.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 80.6k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 3.41k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 44.6k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 41.2k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 41.2k | state, _intermediate_projections[i][j])); | 627 | 41.2k | } | 628 | 3.41k | } | 629 | 77.1k | return Status::OK(); | 630 | 77.1k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 3 | _projections.resize(_parent->_projections.size()); | 615 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 3 | return Status::OK(); | 630 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 275k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 275k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 275k | _projections.resize(_parent->_projections.size()); | 615 | 275k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 275k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 365 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 365 | } | 621 | 275k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 275k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 275k | return Status::OK(); | 630 | 275k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 23 | _projections.resize(_parent->_projections.size()); | 615 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 23 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 23 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 23 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 23 | return Status::OK(); | 630 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 12.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 12.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 12.7k | _projections.resize(_parent->_projections.size()); | 615 | 12.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 121 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 121 | } | 618 | 77.4k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 64.6k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 64.6k | } | 621 | 12.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 12.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 171 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 1.07k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 902 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 902 | state, _intermediate_projections[i][j])); | 627 | 902 | } | 628 | 171 | } | 629 | 12.7k | return Status::OK(); | 630 | 12.7k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 7.91k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 7.91k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 7.91k | _projections.resize(_parent->_projections.size()); | 615 | 8.87k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 958 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 958 | } | 618 | 21.2k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 13.2k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 13.2k | } | 621 | 7.91k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 8.00k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 83 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 638 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 555 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 555 | state, _intermediate_projections[i][j])); | 627 | 555 | } | 628 | 83 | } | 629 | 7.91k | return Status::OK(); | 630 | 7.91k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 165k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 165k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 165k | _projections.resize(_parent->_projections.size()); | 615 | 169k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 4.16k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 4.16k | } | 618 | 430k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 264k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 264k | } | 621 | 165k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 165k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 255 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 1.68k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 1.42k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 1.42k | state, _intermediate_projections[i][j])); | 627 | 1.42k | } | 628 | 255 | } | 629 | 165k | return Status::OK(); | 630 | 165k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 586 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 586 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 586 | _projections.resize(_parent->_projections.size()); | 615 | 592 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 6 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 6 | } | 618 | 1.70k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 1.11k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 1.11k | } | 621 | 586 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 586 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 586 | return Status::OK(); | 630 | 586 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 80 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 80 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 80 | _projections.resize(_parent->_projections.size()); | 615 | 80 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 206 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 126 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 126 | } | 621 | 80 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 80 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 80 | return Status::OK(); | 630 | 80 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 1.23M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 1.23M | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 1.23M | _projections.resize(_parent->_projections.size()); | 615 | 1.76M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 531k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 531k | } | 618 | 3.33M | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 2.10M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 2.10M | } | 621 | 1.23M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 1.24M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 9.26k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 55.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 45.8k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 45.8k | state, _intermediate_projections[i][j])); | 627 | 45.8k | } | 628 | 9.26k | } | 629 | 1.23M | return Status::OK(); | 630 | 1.23M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 56.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 56.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 56.9k | _projections.resize(_parent->_projections.size()); | 615 | 56.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 153k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 96.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 96.0k | } | 621 | 56.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 56.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 56.9k | return Status::OK(); | 630 | 56.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 25 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 25 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 25 | _projections.resize(_parent->_projections.size()); | 615 | 25 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 25 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 25 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 25 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 25 | return Status::OK(); | 630 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 11.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 11.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 11.4k | _projections.resize(_parent->_projections.size()); | 615 | 15.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 3.60k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 3.60k | } | 618 | 11.4k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 11.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 11.4k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 11.4k | return Status::OK(); | 630 | 11.4k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 646 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 646 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 646 | _projections.resize(_parent->_projections.size()); | 615 | 646 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 646 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 646 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 646 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 646 | return Status::OK(); | 630 | 646 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 5.07k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 5.07k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 5.07k | _projections.resize(_parent->_projections.size()); | 615 | 5.07k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 5.24k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 167 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 167 | } | 621 | 5.07k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 5.07k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 5.07k | return Status::OK(); | 630 | 5.07k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 769k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 769k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 769k | _projections.resize(_parent->_projections.size()); | 615 | 769k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 769k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 769k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 769k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 0 | state, _intermediate_projections[i][j])); | 627 | 0 | } | 628 | 0 | } | 629 | 769k | return Status::OK(); | 630 | 769k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 164 | _projections.resize(_parent->_projections.size()); | 615 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 7 | } | 618 | 483 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 319 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 319 | } | 621 | 164 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 167 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 3 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 11 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 8 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 8 | state, _intermediate_projections[i][j])); | 627 | 8 | } | 628 | 3 | } | 629 | 164 | return Status::OK(); | 630 | 164 | } |
|
631 | | |
632 | | template <typename SharedStateArg> |
633 | 7.16k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
634 | 7.16k | if (_terminated) { |
635 | 0 | return Status::OK(); |
636 | 0 | } |
637 | 7.16k | _terminated = true; |
638 | 7.16k | return Status::OK(); |
639 | 7.16k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 313 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 313 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 313 | _terminated = true; | 638 | 313 | return Status::OK(); | 639 | 313 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 39 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 39 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 39 | _terminated = true; | 638 | 39 | return Status::OK(); | 639 | 39 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 39 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 39 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 39 | _terminated = true; | 638 | 39 | return Status::OK(); | 639 | 39 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 93 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 93 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 93 | _terminated = true; | 638 | 93 | return Status::OK(); | 639 | 93 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 5.82k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 5.82k | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 5.82k | _terminated = true; | 638 | 5.82k | return Status::OK(); | 639 | 5.82k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 4 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 4 | _terminated = true; | 638 | 4 | return Status::OK(); | 639 | 4 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 28 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 28 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 28 | _terminated = true; | 638 | 28 | return Status::OK(); | 639 | 28 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 3 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 3 | _terminated = true; | 638 | 3 | return Status::OK(); | 639 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 805 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 805 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 805 | _terminated = true; | 638 | 805 | return Status::OK(); | 639 | 805 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 13 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 13 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 13 | _terminated = true; | 638 | 13 | return Status::OK(); | 639 | 13 | } |
|
640 | | |
641 | | template <typename SharedStateArg> |
642 | 2.92M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
643 | 2.92M | if (_closed) { |
644 | 306k | return Status::OK(); |
645 | 306k | } |
646 | 2.61M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
647 | 1.38M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
648 | 1.38M | } |
649 | 2.61M | _closed = true; |
650 | 2.61M | return Status::OK(); |
651 | 2.92M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 77.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 77.0k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 77.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 77.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 77.0k | } | 649 | 77.0k | _closed = true; | 650 | 77.0k | return Status::OK(); | 651 | 77.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 4 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 4 | } | 649 | 4 | _closed = true; | 650 | 4 | return Status::OK(); | 651 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 545k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 545k | if (_closed) { | 644 | 273k | return Status::OK(); | 645 | 273k | } | 646 | 272k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 272k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 272k | } | 649 | 272k | _closed = true; | 650 | 272k | return Status::OK(); | 651 | 545k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 23 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 23 | } | 649 | 23 | _closed = true; | 650 | 23 | return Status::OK(); | 651 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 12.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 12.7k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 12.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 12.7k | } | 649 | 12.7k | _closed = true; | 650 | 12.7k | return Status::OK(); | 651 | 12.7k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 15.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 15.9k | if (_closed) { | 644 | 8.06k | return Status::OK(); | 645 | 8.06k | } | 646 | 7.88k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 7.88k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 7.88k | } | 649 | 7.88k | _closed = true; | 650 | 7.88k | return Status::OK(); | 651 | 15.9k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 165k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 165k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 165k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 165k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 165k | } | 649 | 165k | _closed = true; | 650 | 165k | return Status::OK(); | 651 | 165k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 580 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 580 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 580 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 580 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 580 | } | 649 | 580 | _closed = true; | 650 | 580 | return Status::OK(); | 651 | 580 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 75 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 75 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 75 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 75 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 75 | } | 649 | 75 | _closed = true; | 650 | 75 | return Status::OK(); | 651 | 75 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 1.25M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 1.25M | if (_closed) { | 644 | 18.3k | return Status::OK(); | 645 | 18.3k | } | 646 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | | } | 649 | 1.23M | _closed = true; | 650 | 1.23M | return Status::OK(); | 651 | 1.25M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 57.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 57.0k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 57.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 57.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 57.0k | } | 649 | 57.0k | _closed = true; | 650 | 57.0k | return Status::OK(); | 651 | 57.0k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 28 | if (_closed) { | 644 | 14 | return Status::OK(); | 645 | 14 | } | 646 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 14 | } | 649 | 14 | _closed = true; | 650 | 14 | return Status::OK(); | 651 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 11.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 11.4k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 11.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 11.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 11.4k | } | 649 | 11.4k | _closed = true; | 650 | 11.4k | return Status::OK(); | 651 | 11.4k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 1.08k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 1.08k | if (_closed) { | 644 | 542 | return Status::OK(); | 645 | 542 | } | 646 | 538 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 538 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 538 | } | 649 | 538 | _closed = true; | 650 | 538 | return Status::OK(); | 651 | 1.08k | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 10.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 10.3k | if (_closed) { | 644 | 5.32k | return Status::OK(); | 645 | 5.32k | } | 646 | 5.07k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 5.07k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 5.07k | } | 649 | 5.07k | _closed = true; | 650 | 5.07k | return Status::OK(); | 651 | 10.3k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 772k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 772k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 772k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 772k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 772k | } | 649 | 772k | _closed = true; | 650 | 772k | return Status::OK(); | 651 | 772k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 333 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 333 | if (_closed) { | 644 | 178 | return Status::OK(); | 645 | 178 | } | 646 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 155 | } | 649 | 155 | _closed = true; | 650 | 155 | return Status::OK(); | 651 | 333 | } |
|
652 | | |
653 | | template <typename SharedState> |
654 | 2.13M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
655 | | // create profile |
656 | 2.13M | _operator_profile = |
657 | 2.13M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
658 | 2.13M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
659 | 2.13M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
660 | | |
661 | | // indentation is true |
662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
663 | | // So we should set the indentation to true. |
664 | 2.13M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
665 | 2.13M | _operator_profile->add_child(_common_profile, true); |
666 | 2.13M | _operator_profile->add_child(_custom_profile, true); |
667 | | |
668 | 2.13M | _operator_profile->set_metadata(_parent->node_id()); |
669 | 2.13M | _wait_for_finish_dependency_timer = |
670 | 2.13M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
671 | 2.13M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
672 | 2.13M | if constexpr (!is_fake_shared) { |
673 | 1.39M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
674 | 1.39M | info.shared_state_map.end()) { |
675 | 288k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
676 | 265k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
677 | 265k | } |
678 | 288k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
679 | 288k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
680 | 288k | ? 0 |
681 | 288k | : info.task_idx] |
682 | 288k | .get(); |
683 | 288k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
684 | 1.10M | } else { |
685 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
686 | 18.4E | DCHECK(false); |
687 | 18.4E | } |
688 | 1.10M | _shared_state = info.shared_state->template cast<SharedState>(); |
689 | 1.10M | _dependency = _shared_state->create_sink_dependency( |
690 | 1.10M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
691 | 1.10M | } |
692 | 1.39M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
693 | 1.39M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
694 | 1.39M | } |
695 | | |
696 | 2.13M | if (must_set_shared_state() && _shared_state == nullptr) { |
697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
698 | 0 | } |
699 | | |
700 | 2.13M | _rows_input_counter = |
701 | 2.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
702 | 2.13M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
703 | 2.13M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
704 | 2.13M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
705 | 2.13M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
706 | 2.13M | _memory_used_counter = |
707 | 2.13M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
708 | 2.13M | _common_profile->add_info_string("IsColocate", |
709 | 2.13M | std::to_string(_parent->is_colocated_operator())); |
710 | 2.13M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
711 | 2.13M | _common_profile->add_info_string("FollowedByShuffledOperator", |
712 | 2.13M | std::to_string(_parent->followed_by_shuffled_operator())); |
713 | 2.13M | return Status::OK(); |
714 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 125k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 125k | _operator_profile = | 657 | 125k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 125k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 125k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 125k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 125k | _operator_profile->add_child(_common_profile, true); | 666 | 125k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 125k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 125k | _wait_for_finish_dependency_timer = | 670 | 125k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 125k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 125k | if constexpr (!is_fake_shared) { | 673 | 125k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 125k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 22.8k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 22.8k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 22.8k | ? 0 | 681 | 22.8k | : info.task_idx] | 682 | 22.8k | .get(); | 683 | 22.8k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 102k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 102k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 102k | _dependency = _shared_state->create_sink_dependency( | 690 | 102k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 102k | } | 692 | 125k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 125k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 125k | } | 695 | | | 696 | 125k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 125k | _rows_input_counter = | 701 | 125k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 125k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 125k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 125k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 125k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 125k | _memory_used_counter = | 707 | 125k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 125k | _common_profile->add_info_string("IsColocate", | 709 | 125k | std::to_string(_parent->is_colocated_operator())); | 710 | 125k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 125k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 125k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 125k | return Status::OK(); | 714 | 125k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 2 | _operator_profile = | 657 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 2 | _operator_profile->add_child(_common_profile, true); | 666 | 2 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 2 | _wait_for_finish_dependency_timer = | 670 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 2 | if constexpr (!is_fake_shared) { | 673 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 2 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 2 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 2 | _dependency = _shared_state->create_sink_dependency( | 690 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 2 | } | 692 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 2 | } | 695 | | | 696 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 2 | _rows_input_counter = | 701 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 2 | _memory_used_counter = | 707 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 2 | _common_profile->add_info_string("IsColocate", | 709 | 2 | std::to_string(_parent->is_colocated_operator())); | 710 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 2 | return Status::OK(); | 714 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 274k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 274k | _operator_profile = | 657 | 274k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 274k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 274k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 274k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 274k | _operator_profile->add_child(_common_profile, true); | 666 | 274k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 274k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 274k | _wait_for_finish_dependency_timer = | 670 | 274k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 274k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 274k | if constexpr (!is_fake_shared) { | 673 | 274k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 274k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 274k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 274k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 274k | _dependency = _shared_state->create_sink_dependency( | 690 | 274k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 274k | } | 692 | 274k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 274k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 274k | } | 695 | | | 696 | 274k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 274k | _rows_input_counter = | 701 | 274k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 274k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 274k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 274k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 274k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 274k | _memory_used_counter = | 707 | 274k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 274k | _common_profile->add_info_string("IsColocate", | 709 | 274k | std::to_string(_parent->is_colocated_operator())); | 710 | 274k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 274k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 274k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 274k | return Status::OK(); | 714 | 274k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 30 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 30 | _operator_profile = | 657 | 30 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 30 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 30 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 30 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 30 | _operator_profile->add_child(_common_profile, true); | 666 | 30 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 30 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 30 | _wait_for_finish_dependency_timer = | 670 | 30 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 30 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 30 | if constexpr (!is_fake_shared) { | 673 | 30 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 30 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 30 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 30 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 30 | _dependency = _shared_state->create_sink_dependency( | 690 | 30 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 30 | } | 692 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 30 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 30 | } | 695 | | | 696 | 30 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 30 | _rows_input_counter = | 701 | 30 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 30 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 30 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 30 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 30 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 30 | _memory_used_counter = | 707 | 30 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 30 | _common_profile->add_info_string("IsColocate", | 709 | 30 | std::to_string(_parent->is_colocated_operator())); | 710 | 30 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 30 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 30 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 30 | return Status::OK(); | 714 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 12.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 12.7k | _operator_profile = | 657 | 12.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 12.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 12.7k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 12.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 12.7k | _operator_profile->add_child(_common_profile, true); | 666 | 12.7k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 12.7k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 12.7k | _wait_for_finish_dependency_timer = | 670 | 12.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 12.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 12.7k | if constexpr (!is_fake_shared) { | 673 | 12.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 12.7k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 12.7k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 12.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 12.7k | _dependency = _shared_state->create_sink_dependency( | 690 | 12.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 12.7k | } | 692 | 12.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 12.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 12.7k | } | 695 | | | 696 | 12.7k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 12.7k | _rows_input_counter = | 701 | 12.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 12.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 12.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 12.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 12.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 12.7k | _memory_used_counter = | 707 | 12.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 12.7k | _common_profile->add_info_string("IsColocate", | 709 | 12.7k | std::to_string(_parent->is_colocated_operator())); | 710 | 12.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 12.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 12.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 12.7k | return Status::OK(); | 714 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 7.88k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 7.88k | _operator_profile = | 657 | 7.88k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 7.88k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 7.88k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 7.88k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 7.88k | _operator_profile->add_child(_common_profile, true); | 666 | 7.88k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 7.88k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 7.88k | _wait_for_finish_dependency_timer = | 670 | 7.88k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 7.88k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 7.88k | if constexpr (!is_fake_shared) { | 673 | 7.88k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 7.88k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 7.88k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 7.88k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 7.88k | _dependency = _shared_state->create_sink_dependency( | 690 | 7.88k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 7.88k | } | 692 | 7.88k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 7.88k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 7.88k | } | 695 | | | 696 | 7.88k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 7.88k | _rows_input_counter = | 701 | 7.88k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 7.88k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 7.88k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 7.88k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 7.88k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 7.88k | _memory_used_counter = | 707 | 7.88k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 7.88k | _common_profile->add_info_string("IsColocate", | 709 | 7.88k | std::to_string(_parent->is_colocated_operator())); | 710 | 7.88k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 7.88k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 7.88k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 7.88k | return Status::OK(); | 714 | 7.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 165k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 165k | _operator_profile = | 657 | 165k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 165k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 165k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 165k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 165k | _operator_profile->add_child(_common_profile, true); | 666 | 165k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 165k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 165k | _wait_for_finish_dependency_timer = | 670 | 165k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 165k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 165k | if constexpr (!is_fake_shared) { | 673 | 165k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 165k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 165k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 165k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 165k | _dependency = _shared_state->create_sink_dependency( | 690 | 165k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 165k | } | 692 | 165k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 165k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 165k | } | 695 | | | 696 | 165k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 165k | _rows_input_counter = | 701 | 165k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 165k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 165k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 165k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 165k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 165k | _memory_used_counter = | 707 | 165k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 165k | _common_profile->add_info_string("IsColocate", | 709 | 165k | std::to_string(_parent->is_colocated_operator())); | 710 | 165k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 165k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 165k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 165k | return Status::OK(); | 714 | 165k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 581 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 581 | _operator_profile = | 657 | 581 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 581 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 581 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 581 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 581 | _operator_profile->add_child(_common_profile, true); | 666 | 581 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 581 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 581 | _wait_for_finish_dependency_timer = | 670 | 581 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 581 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 581 | if constexpr (!is_fake_shared) { | 673 | 581 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 581 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 576 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 576 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 576 | ? 0 | 681 | 576 | : info.task_idx] | 682 | 576 | .get(); | 683 | 576 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 576 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 5 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 5 | _dependency = _shared_state->create_sink_dependency( | 690 | 5 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 5 | } | 692 | 581 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 581 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 581 | } | 695 | | | 696 | 581 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 581 | _rows_input_counter = | 701 | 581 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 581 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 581 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 581 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 581 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 581 | _memory_used_counter = | 707 | 581 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 581 | _common_profile->add_info_string("IsColocate", | 709 | 581 | std::to_string(_parent->is_colocated_operator())); | 710 | 581 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 581 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 581 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 581 | return Status::OK(); | 714 | 581 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 86 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 86 | _operator_profile = | 657 | 86 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 86 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 86 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 86 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 86 | _operator_profile->add_child(_common_profile, true); | 666 | 86 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 86 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 86 | _wait_for_finish_dependency_timer = | 670 | 86 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 86 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 86 | if constexpr (!is_fake_shared) { | 673 | 86 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 86 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 86 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 86 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 86 | _dependency = _shared_state->create_sink_dependency( | 690 | 86 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 86 | } | 692 | 86 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 86 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 86 | } | 695 | | | 696 | 86 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 86 | _rows_input_counter = | 701 | 86 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 86 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 86 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 86 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 86 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 86 | _memory_used_counter = | 707 | 86 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 86 | _common_profile->add_info_string("IsColocate", | 709 | 86 | std::to_string(_parent->is_colocated_operator())); | 710 | 86 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 86 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 86 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 86 | return Status::OK(); | 714 | 86 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 737k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 737k | _operator_profile = | 657 | 737k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 737k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 737k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 737k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 737k | _operator_profile->add_child(_common_profile, true); | 666 | 737k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 737k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 737k | _wait_for_finish_dependency_timer = | 670 | 737k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 737k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | | if constexpr (!is_fake_shared) { | 673 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | | ? 0 | 681 | | : info.task_idx] | 682 | | .get(); | 683 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | | _dependency = _shared_state->create_sink_dependency( | 690 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | | } | 692 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | | } | 695 | | | 696 | 737k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 737k | _rows_input_counter = | 701 | 737k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 737k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 737k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 737k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 737k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 737k | _memory_used_counter = | 707 | 737k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 737k | _common_profile->add_info_string("IsColocate", | 709 | 737k | std::to_string(_parent->is_colocated_operator())); | 710 | 737k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 737k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 737k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 737k | return Status::OK(); | 714 | 737k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 7.24k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 7.24k | _operator_profile = | 657 | 7.24k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 7.24k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 7.24k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 7.24k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 7.24k | _operator_profile->add_child(_common_profile, true); | 666 | 7.24k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 7.24k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 7.24k | _wait_for_finish_dependency_timer = | 670 | 7.24k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 7.24k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 7.24k | if constexpr (!is_fake_shared) { | 673 | 7.24k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 7.24k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 7.24k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 7.24k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 7.24k | _dependency = _shared_state->create_sink_dependency( | 690 | 7.24k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 7.24k | } | 692 | 7.24k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 7.24k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 7.24k | } | 695 | | | 696 | 7.24k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 7.24k | _rows_input_counter = | 701 | 7.24k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 7.24k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 7.24k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 7.24k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 7.24k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 7.24k | _memory_used_counter = | 707 | 7.24k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 7.24k | _common_profile->add_info_string("IsColocate", | 709 | 7.24k | std::to_string(_parent->is_colocated_operator())); | 710 | 7.24k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 7.24k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 7.24k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 7.24k | return Status::OK(); | 714 | 7.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 644 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 644 | _operator_profile = | 657 | 644 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 644 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 644 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 644 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 644 | _operator_profile->add_child(_common_profile, true); | 666 | 644 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 644 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 644 | _wait_for_finish_dependency_timer = | 670 | 644 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 644 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 644 | if constexpr (!is_fake_shared) { | 673 | 644 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 644 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 644 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 644 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 644 | _dependency = _shared_state->create_sink_dependency( | 690 | 644 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 644 | } | 692 | 644 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 644 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 644 | } | 695 | | | 696 | 646 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 644 | _rows_input_counter = | 701 | 644 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 644 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 644 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 644 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 644 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 644 | _memory_used_counter = | 707 | 644 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 644 | _common_profile->add_info_string("IsColocate", | 709 | 644 | std::to_string(_parent->is_colocated_operator())); | 710 | 644 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 644 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 644 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 644 | return Status::OK(); | 714 | 644 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 4.14k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 4.14k | _operator_profile = | 657 | 4.14k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 4.14k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 4.14k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 4.14k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 4.14k | _operator_profile->add_child(_common_profile, true); | 666 | 4.14k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 4.14k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 4.14k | _wait_for_finish_dependency_timer = | 670 | 4.14k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 4.14k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 4.14k | if constexpr (!is_fake_shared) { | 673 | 4.14k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 4.14k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 4.14k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 4.14k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 4.14k | _dependency = _shared_state->create_sink_dependency( | 690 | 4.14k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 4.14k | } | 692 | 4.14k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 4.14k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 4.14k | } | 695 | | | 696 | 4.14k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 4.14k | _rows_input_counter = | 701 | 4.14k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 4.14k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 4.14k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 4.14k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 4.14k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 4.14k | _memory_used_counter = | 707 | 4.14k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 4.14k | _common_profile->add_info_string("IsColocate", | 709 | 4.14k | std::to_string(_parent->is_colocated_operator())); | 710 | 4.14k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 4.14k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 4.14k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 4.14k | return Status::OK(); | 714 | 4.14k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 12.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 12.3k | _operator_profile = | 657 | 12.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 12.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 12.3k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 12.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 12.3k | _operator_profile->add_child(_common_profile, true); | 666 | 12.3k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 12.3k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 12.3k | _wait_for_finish_dependency_timer = | 670 | 12.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 12.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 12.3k | if constexpr (!is_fake_shared) { | 673 | 12.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 12.3k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 12.3k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 12.3k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 12.3k | _dependency = _shared_state->create_sink_dependency( | 690 | 12.3k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 12.3k | } | 692 | 12.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 12.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 12.3k | } | 695 | | | 696 | 12.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 12.3k | _rows_input_counter = | 701 | 12.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 12.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 12.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 12.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 12.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 12.3k | _memory_used_counter = | 707 | 12.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 12.3k | _common_profile->add_info_string("IsColocate", | 709 | 12.3k | std::to_string(_parent->is_colocated_operator())); | 710 | 12.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 12.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 12.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 12.3k | return Status::OK(); | 714 | 12.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 264k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 264k | _operator_profile = | 657 | 264k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 264k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 264k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 264k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 264k | _operator_profile->add_child(_common_profile, true); | 666 | 264k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 264k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 264k | _wait_for_finish_dependency_timer = | 670 | 264k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 264k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 264k | if constexpr (!is_fake_shared) { | 673 | 264k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 265k | info.shared_state_map.end()) { | 675 | 265k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | 265k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | 265k | } | 678 | 265k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 265k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 265k | ? 0 | 681 | 265k | : info.task_idx] | 682 | 265k | .get(); | 683 | 265k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 18.4E | } else { | 685 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | 18.4E | DCHECK(false); | 687 | 18.4E | } | 688 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 690 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 18.4E | } | 692 | 264k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 264k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 264k | } | 695 | | | 696 | 264k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 264k | _rows_input_counter = | 701 | 264k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 264k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 264k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 264k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 264k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 264k | _memory_used_counter = | 707 | 264k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 264k | _common_profile->add_info_string("IsColocate", | 709 | 264k | std::to_string(_parent->is_colocated_operator())); | 710 | 264k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 264k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 264k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 264k | return Status::OK(); | 714 | 264k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 519k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 519k | _operator_profile = | 657 | 519k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 519k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 519k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 519k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 519k | _operator_profile->add_child(_common_profile, true); | 666 | 519k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 519k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 519k | _wait_for_finish_dependency_timer = | 670 | 519k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 519k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 519k | if constexpr (!is_fake_shared) { | 673 | 519k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 519k | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 519k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 519k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 519k | _dependency = _shared_state->create_sink_dependency( | 690 | 519k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 519k | } | 692 | 519k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 519k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 519k | } | 695 | | | 696 | 519k | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 519k | _rows_input_counter = | 701 | 519k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 519k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 519k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 519k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 519k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 519k | _memory_used_counter = | 707 | 519k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 519k | _common_profile->add_info_string("IsColocate", | 709 | 519k | std::to_string(_parent->is_colocated_operator())); | 710 | 519k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 519k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 519k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 519k | return Status::OK(); | 714 | 519k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 25 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 25 | _operator_profile = | 657 | 25 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 25 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 25 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 25 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 25 | _operator_profile->add_child(_common_profile, true); | 666 | 25 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 25 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 25 | _wait_for_finish_dependency_timer = | 670 | 25 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 25 | if constexpr (!is_fake_shared) { | 673 | 25 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 25 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 25 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 25 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 25 | _dependency = _shared_state->create_sink_dependency( | 690 | 25 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 25 | } | 692 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 25 | } | 695 | | | 696 | 25 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 25 | _rows_input_counter = | 701 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 25 | _memory_used_counter = | 707 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 25 | _common_profile->add_info_string("IsColocate", | 709 | 25 | std::to_string(_parent->is_colocated_operator())); | 710 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 25 | return Status::OK(); | 714 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 328 | _operator_profile = | 657 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 328 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 660 | | | 661 | | // indentation is true | 662 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 663 | | // So we should set the indentation to true. | 664 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 328 | _operator_profile->add_child(_common_profile, true); | 666 | 328 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 328 | _wait_for_finish_dependency_timer = | 670 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 328 | if constexpr (!is_fake_shared) { | 673 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 328 | info.shared_state_map.end()) { | 675 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 676 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 677 | | } | 678 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 0 | ? 0 | 681 | 0 | : info.task_idx] | 682 | 0 | .get(); | 683 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 328 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 328 | _dependency = _shared_state->create_sink_dependency( | 690 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 328 | } | 692 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 328 | } | 695 | | | 696 | 328 | if (must_set_shared_state() && _shared_state == nullptr) { | 697 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 698 | 0 | } | 699 | | | 700 | 328 | _rows_input_counter = | 701 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 328 | _memory_used_counter = | 707 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 328 | _common_profile->add_info_string("IsColocate", | 709 | 328 | std::to_string(_parent->is_colocated_operator())); | 710 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 328 | return Status::OK(); | 714 | 328 | } |
|
715 | | |
716 | | template <typename SharedState> |
717 | 2.13M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
718 | 2.13M | if (_closed) { |
719 | 2 | return Status::OK(); |
720 | 2 | } |
721 | 2.13M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
722 | 1.39M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
723 | 1.39M | } |
724 | 2.13M | _closed = true; |
725 | 2.13M | return Status::OK(); |
726 | 2.13M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 125k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 125k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 125k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 125k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 125k | } | 724 | 125k | _closed = true; | 725 | 125k | return Status::OK(); | 726 | 125k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 1 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 1 | } | 724 | 1 | _closed = true; | 725 | 1 | return Status::OK(); | 726 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 273k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 273k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 273k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 273k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 273k | } | 724 | 273k | _closed = true; | 725 | 273k | return Status::OK(); | 726 | 273k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 21 | if (_closed) { | 719 | 2 | return Status::OK(); | 720 | 2 | } | 721 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 19 | } | 724 | 19 | _closed = true; | 725 | 19 | return Status::OK(); | 726 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 12.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 12.7k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 12.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 12.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 12.7k | } | 724 | 12.7k | _closed = true; | 725 | 12.7k | return Status::OK(); | 726 | 12.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 7.88k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 7.88k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 7.88k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 7.88k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 7.88k | } | 724 | 7.88k | _closed = true; | 725 | 7.88k | return Status::OK(); | 726 | 7.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 164k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 164k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 164k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 164k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 164k | } | 724 | 164k | _closed = true; | 725 | 164k | return Status::OK(); | 726 | 164k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 577 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 577 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 577 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 577 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 577 | } | 724 | 577 | _closed = true; | 725 | 577 | return Status::OK(); | 726 | 577 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 75 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 75 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 75 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 75 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 75 | } | 724 | 75 | _closed = true; | 725 | 75 | return Status::OK(); | 726 | 75 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 736k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 736k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | | } | 724 | 736k | _closed = true; | 725 | 736k | return Status::OK(); | 726 | 736k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 7.24k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 7.24k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 7.24k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 7.24k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 7.24k | } | 724 | 7.24k | _closed = true; | 725 | 7.24k | return Status::OK(); | 726 | 7.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 541 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 541 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 541 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 541 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 541 | } | 724 | 541 | _closed = true; | 725 | 541 | return Status::OK(); | 726 | 541 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 4.14k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 4.14k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 4.14k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 4.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 4.14k | } | 724 | 4.14k | _closed = true; | 725 | 4.14k | return Status::OK(); | 726 | 4.14k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 12.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 12.4k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 12.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 12.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 12.4k | } | 724 | 12.4k | _closed = true; | 725 | 12.4k | return Status::OK(); | 726 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 265k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 265k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 265k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 265k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 265k | } | 724 | 265k | _closed = true; | 725 | 265k | return Status::OK(); | 726 | 265k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 522k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 522k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 522k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 522k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 522k | } | 724 | 522k | _closed = true; | 725 | 522k | return Status::OK(); | 726 | 522k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 14 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 14 | } | 724 | 14 | _closed = true; | 725 | 14 | return Status::OK(); | 726 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 328 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 328 | } | 724 | 328 | _closed = true; | 725 | 328 | return Status::OK(); | 726 | 328 | } |
|
727 | | |
728 | | template <typename LocalStateType> |
729 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
730 | 13.6k | bool* eos) { |
731 | 13.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
732 | 13.6k | return pull(state, block, eos); |
733 | 13.6k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 730 | 432 | bool* eos) { | 731 | 432 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 732 | 432 | return pull(state, block, eos); | 733 | 432 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 730 | 13.2k | bool* eos) { | 731 | 13.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 732 | 13.1k | return pull(state, block, eos); | 733 | 13.2k | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 731k | bool* eos) { |
738 | 731k | auto& local_state = get_local_state(state); |
739 | 731k | if (need_more_input_data(state)) { |
740 | 699k | local_state._child_block->clear_column_data( |
741 | 699k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
742 | 699k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
743 | 699k | state, local_state._child_block.get(), &local_state._child_eos)); |
744 | 699k | *eos = local_state._child_eos; |
745 | 699k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
746 | 70.2k | return Status::OK(); |
747 | 70.2k | } |
748 | 629k | { |
749 | 629k | SCOPED_TIMER(local_state.exec_time_counter()); |
750 | 629k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
751 | 629k | } |
752 | 629k | } |
753 | | |
754 | 661k | if (!need_more_input_data(state)) { |
755 | 606k | SCOPED_TIMER(local_state.exec_time_counter()); |
756 | 606k | bool new_eos = false; |
757 | 606k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
758 | 606k | if (new_eos) { |
759 | 523k | *eos = true; |
760 | 523k | } else if (!need_more_input_data(state)) { |
761 | 25.3k | *eos = false; |
762 | 25.3k | } |
763 | 606k | } |
764 | 661k | return Status::OK(); |
765 | 661k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 151k | bool* eos) { | 738 | 151k | auto& local_state = get_local_state(state); | 739 | 151k | if (need_more_input_data(state)) { | 740 | 133k | local_state._child_block->clear_column_data( | 741 | 133k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 133k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 133k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 133k | *eos = local_state._child_eos; | 745 | 133k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 40.3k | return Status::OK(); | 747 | 40.3k | } | 748 | 92.9k | { | 749 | 92.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 92.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 92.9k | } | 752 | 92.9k | } | 753 | | | 754 | 111k | if (!need_more_input_data(state)) { | 755 | 111k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 111k | bool new_eos = false; | 757 | 111k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 111k | if (new_eos) { | 759 | 52.7k | *eos = true; | 760 | 58.7k | } else if (!need_more_input_data(state)) { | 761 | 10.5k | *eos = false; | 762 | 10.5k | } | 763 | 111k | } | 764 | 111k | return Status::OK(); | 765 | 111k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 4.23k | bool* eos) { | 738 | 4.23k | auto& local_state = get_local_state(state); | 739 | 4.23k | if (need_more_input_data(state)) { | 740 | 2.33k | local_state._child_block->clear_column_data( | 741 | 2.33k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 2.33k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 2.33k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 2.33k | *eos = local_state._child_eos; | 745 | 2.33k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 504 | return Status::OK(); | 747 | 504 | } | 748 | 1.83k | { | 749 | 1.83k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 1.83k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 1.83k | } | 752 | 1.83k | } | 753 | | | 754 | 3.74k | if (!need_more_input_data(state)) { | 755 | 3.74k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 3.74k | bool new_eos = false; | 757 | 3.74k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 3.74k | if (new_eos) { | 759 | 1.31k | *eos = true; | 760 | 2.42k | } else if (!need_more_input_data(state)) { | 761 | 1.90k | *eos = false; | 762 | 1.90k | } | 763 | 3.74k | } | 764 | 3.72k | return Status::OK(); | 765 | 3.72k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 4.95k | bool* eos) { | 738 | 4.95k | auto& local_state = get_local_state(state); | 739 | 4.95k | if (need_more_input_data(state)) { | 740 | 4.95k | local_state._child_block->clear_column_data( | 741 | 4.95k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 4.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 4.95k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 4.95k | *eos = local_state._child_eos; | 745 | 4.95k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 1.73k | return Status::OK(); | 747 | 1.73k | } | 748 | 3.21k | { | 749 | 3.21k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 3.21k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 3.21k | } | 752 | 3.21k | } | 753 | | | 754 | 3.21k | if (!need_more_input_data(state)) { | 755 | 3.21k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 3.21k | bool new_eos = false; | 757 | 3.21k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 3.21k | if (new_eos) { | 759 | 1.74k | *eos = true; | 760 | 1.74k | } else if (!need_more_input_data(state)) { | 761 | 0 | *eos = false; | 762 | 0 | } | 763 | 3.21k | } | 764 | 3.21k | return Status::OK(); | 765 | 3.21k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 39.7k | bool* eos) { | 738 | 39.7k | auto& local_state = get_local_state(state); | 739 | 39.8k | if (need_more_input_data(state)) { | 740 | 39.8k | local_state._child_block->clear_column_data( | 741 | 39.8k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 39.8k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 39.8k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 39.8k | *eos = local_state._child_eos; | 745 | 39.8k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 4.28k | return Status::OK(); | 747 | 4.28k | } | 748 | 35.5k | { | 749 | 35.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 35.5k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 35.5k | } | 752 | 35.5k | } | 753 | | | 754 | 35.4k | if (!need_more_input_data(state)) { | 755 | 12.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 12.7k | bool new_eos = false; | 757 | 12.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 12.7k | if (new_eos) { | 759 | 12.5k | *eos = true; | 760 | 12.5k | } else if (!need_more_input_data(state)) { | 761 | 11 | *eos = false; | 762 | 11 | } | 763 | 12.7k | } | 764 | 35.4k | return Status::OK(); | 765 | 35.4k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 491k | bool* eos) { | 738 | 491k | auto& local_state = get_local_state(state); | 739 | 492k | if (need_more_input_data(state)) { | 740 | 492k | local_state._child_block->clear_column_data( | 741 | 492k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 492k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 492k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 492k | *eos = local_state._child_eos; | 745 | 492k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 20.2k | return Status::OK(); | 747 | 20.2k | } | 748 | 472k | { | 749 | 472k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 472k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 472k | } | 752 | 472k | } | 753 | | | 754 | 471k | if (!need_more_input_data(state)) { | 755 | 439k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 439k | bool new_eos = false; | 757 | 439k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 439k | if (new_eos) { | 759 | 438k | *eos = true; | 760 | 438k | } else if (!need_more_input_data(state)) { | 761 | 0 | *eos = false; | 762 | 0 | } | 763 | 439k | } | 764 | 471k | return Status::OK(); | 765 | 471k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 33.6k | bool* eos) { | 738 | 33.6k | auto& local_state = get_local_state(state); | 739 | 33.6k | if (need_more_input_data(state)) { | 740 | 21.1k | local_state._child_block->clear_column_data( | 741 | 21.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 21.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 21.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 21.1k | *eos = local_state._child_eos; | 745 | 21.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 2.85k | return Status::OK(); | 747 | 2.85k | } | 748 | 18.2k | { | 749 | 18.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 18.2k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 18.2k | } | 752 | 18.2k | } | 753 | | | 754 | 30.8k | if (!need_more_input_data(state)) { | 755 | 30.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 30.1k | bool new_eos = false; | 757 | 30.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 30.1k | if (new_eos) { | 759 | 12.7k | *eos = true; | 760 | 17.4k | } else if (!need_more_input_data(state)) { | 761 | 12.5k | *eos = false; | 762 | 12.5k | } | 763 | 30.1k | } | 764 | 30.8k | return Status::OK(); | 765 | 30.8k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 5.68k | bool* eos) { | 738 | 5.68k | auto& local_state = get_local_state(state); | 739 | 5.68k | if (need_more_input_data(state)) { | 740 | 5.32k | local_state._child_block->clear_column_data( | 741 | 5.32k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 5.32k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 5.32k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 5.32k | *eos = local_state._child_eos; | 745 | 5.32k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 253 | return Status::OK(); | 747 | 253 | } | 748 | 5.07k | { | 749 | 5.07k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 5.07k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 5.07k | } | 752 | 5.07k | } | 753 | | | 754 | 5.42k | if (!need_more_input_data(state)) { | 755 | 5.42k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 5.42k | bool new_eos = false; | 757 | 5.42k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 5.42k | if (new_eos) { | 759 | 3.40k | *eos = true; | 760 | 3.40k | } else if (!need_more_input_data(state)) { | 761 | 366 | *eos = false; | 762 | 366 | } | 763 | 5.42k | } | 764 | 5.42k | return Status::OK(); | 765 | 5.42k | } |
|
766 | | |
767 | | template <typename Writer, typename Parent> |
768 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
769 | 68.6k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
770 | 68.6k | RETURN_IF_ERROR(Base::init(state, info)); |
771 | 68.6k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
772 | 68.6k | "AsyncWriterDependency", true); |
773 | 68.6k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
774 | 68.6k | _finish_dependency)); |
775 | | |
776 | 68.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
777 | 68.6k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
778 | 68.6k | return Status::OK(); |
779 | 68.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 513 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 513 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 513 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 513 | "AsyncWriterDependency", true); | 773 | 513 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 513 | _finish_dependency)); | 775 | | | 776 | 513 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 513 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 513 | return Status::OK(); | 779 | 513 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 86 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 86 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 86 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 86 | "AsyncWriterDependency", true); | 773 | 86 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 86 | _finish_dependency)); | 775 | | | 776 | 86 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 86 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 86 | return Status::OK(); | 779 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 46.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 46.7k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 46.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 46.7k | "AsyncWriterDependency", true); | 773 | 46.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 46.7k | _finish_dependency)); | 775 | | | 776 | 46.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 46.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 46.7k | return Status::OK(); | 779 | 46.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 9.55k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 9.55k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 9.55k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 9.55k | "AsyncWriterDependency", true); | 773 | 9.55k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 9.55k | _finish_dependency)); | 775 | | | 776 | 9.55k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 9.55k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 9.55k | return Status::OK(); | 779 | 9.55k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 5.08k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 5.08k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 5.08k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 5.08k | "AsyncWriterDependency", true); | 773 | 5.08k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 5.08k | _finish_dependency)); | 775 | | | 776 | 5.08k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 5.08k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 5.08k | return Status::OK(); | 779 | 5.08k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 4.01k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 4.01k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 4.01k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 4.01k | "AsyncWriterDependency", true); | 773 | 4.01k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 4.01k | _finish_dependency)); | 775 | | | 776 | 4.01k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 4.01k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 4.01k | return Status::OK(); | 779 | 4.01k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 48 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 48 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 48 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 48 | "AsyncWriterDependency", true); | 773 | 48 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 48 | _finish_dependency)); | 775 | | | 776 | 48 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 48 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 48 | return Status::OK(); | 779 | 48 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 704 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 704 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 704 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 704 | "AsyncWriterDependency", true); | 773 | 704 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 704 | _finish_dependency)); | 775 | | | 776 | 704 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 704 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 704 | return Status::OK(); | 779 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 1.71k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 1.71k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 1.71k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 1.71k | "AsyncWriterDependency", true); | 773 | 1.71k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 1.71k | _finish_dependency)); | 775 | | | 776 | 1.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 1.71k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 1.71k | return Status::OK(); | 779 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 156 | "AsyncWriterDependency", true); | 773 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 156 | _finish_dependency)); | 775 | | | 776 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 156 | return Status::OK(); | 779 | 156 | } |
|
780 | | |
781 | | template <typename Writer, typename Parent> |
782 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
783 | 68.4k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
784 | 68.4k | RETURN_IF_ERROR(Base::open(state)); |
785 | 68.4k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
786 | 593k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
787 | 525k | RETURN_IF_ERROR( |
788 | 525k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
789 | 525k | } |
790 | 68.4k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
791 | 68.4k | return Status::OK(); |
792 | 68.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 513 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 513 | RETURN_IF_ERROR(Base::open(state)); | 785 | 513 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 2.76k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 2.25k | RETURN_IF_ERROR( | 788 | 2.25k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 2.25k | } | 790 | 513 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 513 | return Status::OK(); | 792 | 513 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 86 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 86 | RETURN_IF_ERROR(Base::open(state)); | 785 | 86 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 402 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 316 | RETURN_IF_ERROR( | 788 | 316 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 316 | } | 790 | 86 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 86 | return Status::OK(); | 792 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 46.8k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 46.8k | RETURN_IF_ERROR(Base::open(state)); | 785 | 46.8k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 337k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 290k | RETURN_IF_ERROR( | 788 | 290k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 290k | } | 790 | 46.8k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 46.8k | return Status::OK(); | 792 | 46.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 9.34k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 9.34k | RETURN_IF_ERROR(Base::open(state)); | 785 | 9.34k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 57.0k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 47.6k | RETURN_IF_ERROR( | 788 | 47.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 47.6k | } | 790 | 9.34k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 9.34k | return Status::OK(); | 792 | 9.34k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 5.07k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 5.07k | RETURN_IF_ERROR(Base::open(state)); | 785 | 5.07k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 135k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 130k | RETURN_IF_ERROR( | 788 | 130k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 130k | } | 790 | 5.07k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 5.07k | return Status::OK(); | 792 | 5.07k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 4.00k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 4.00k | RETURN_IF_ERROR(Base::open(state)); | 785 | 4.00k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 44.4k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 40.4k | RETURN_IF_ERROR( | 788 | 40.4k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 40.4k | } | 790 | 4.00k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 4.00k | return Status::OK(); | 792 | 4.00k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 46 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 46 | RETURN_IF_ERROR(Base::open(state)); | 785 | 46 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 200 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 154 | RETURN_IF_ERROR( | 788 | 154 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 154 | } | 790 | 46 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 46 | return Status::OK(); | 792 | 46 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 704 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 704 | RETURN_IF_ERROR(Base::open(state)); | 785 | 704 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 2.10k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 1.39k | RETURN_IF_ERROR( | 788 | 1.39k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 1.39k | } | 790 | 704 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 704 | return Status::OK(); | 792 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 1.70k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 1.70k | RETURN_IF_ERROR(Base::open(state)); | 785 | 1.70k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 13.3k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 11.6k | RETURN_IF_ERROR( | 788 | 11.6k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 11.6k | } | 790 | 1.70k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 1.70k | return Status::OK(); | 792 | 1.70k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 156 | RETURN_IF_ERROR(Base::open(state)); | 785 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 630 | RETURN_IF_ERROR( | 788 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 630 | } | 790 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 156 | return Status::OK(); | 792 | 156 | } |
|
793 | | |
794 | | template <typename Writer, typename Parent> |
795 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
796 | 94.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
797 | 94.6k | return _writer->sink(block, eos); |
798 | 94.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 2.20k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 2.20k | return _writer->sink(block, eos); | 798 | 2.20k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 110 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 110 | return _writer->sink(block, eos); | 798 | 110 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 64.2k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 64.2k | return _writer->sink(block, eos); | 798 | 64.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 11.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 11.0k | return _writer->sink(block, eos); | 798 | 11.0k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 7.37k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 7.37k | return _writer->sink(block, eos); | 798 | 7.37k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 6.36k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 6.36k | return _writer->sink(block, eos); | 798 | 6.36k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 60 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 60 | return _writer->sink(block, eos); | 798 | 60 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 794 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 794 | return _writer->sink(block, eos); | 798 | 794 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 2.17k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 2.17k | return _writer->sink(block, eos); | 798 | 2.17k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 310 | return _writer->sink(block, eos); | 798 | 310 | } |
|
799 | | |
800 | | template <typename Writer, typename Parent> |
801 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
802 | 68.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
803 | 68.7k | if (_closed) { |
804 | 0 | return Status::OK(); |
805 | 0 | } |
806 | 68.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
807 | 68.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
808 | | // if the init failed, the _writer may be nullptr. so here need check |
809 | 68.8k | if (_writer) { |
810 | 68.8k | Status st = _writer->get_writer_status(); |
811 | 68.8k | if (exec_status.ok()) { |
812 | 68.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
813 | 68.7k | : Status::Cancelled("force close")); |
814 | 68.7k | } else { |
815 | 104 | _writer->force_close(exec_status); |
816 | 104 | } |
817 | | // If there is an error in process_block thread, then we should get the writer |
818 | | // status before call force_close. For example, the thread may failed in commit |
819 | | // transaction. |
820 | 68.8k | RETURN_IF_ERROR(st); |
821 | 68.8k | } |
822 | 68.6k | return Base::close(state, exec_status); |
823 | 68.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 501 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 501 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 501 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 501 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 501 | if (_writer) { | 810 | 501 | Status st = _writer->get_writer_status(); | 811 | 501 | if (exec_status.ok()) { | 812 | 501 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 501 | : Status::Cancelled("force close")); | 814 | 501 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 501 | RETURN_IF_ERROR(st); | 821 | 501 | } | 822 | 501 | return Base::close(state, exec_status); | 823 | 501 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 86 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 86 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 86 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 86 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 86 | if (_writer) { | 810 | 86 | Status st = _writer->get_writer_status(); | 811 | 86 | if (exec_status.ok()) { | 812 | 86 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 86 | : Status::Cancelled("force close")); | 814 | 86 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 86 | RETURN_IF_ERROR(st); | 821 | 86 | } | 822 | 78 | return Base::close(state, exec_status); | 823 | 86 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 46.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 46.9k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 46.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 46.9k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 46.9k | if (_writer) { | 810 | 46.9k | Status st = _writer->get_writer_status(); | 811 | 46.9k | if (exec_status.ok()) { | 812 | 46.9k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 46.9k | : Status::Cancelled("force close")); | 814 | 46.9k | } else { | 815 | 44 | _writer->force_close(exec_status); | 816 | 44 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 46.9k | RETURN_IF_ERROR(st); | 821 | 46.9k | } | 822 | 46.8k | return Base::close(state, exec_status); | 823 | 46.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 9.51k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 9.51k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 9.51k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 9.51k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 9.55k | if (_writer) { | 810 | 9.55k | Status st = _writer->get_writer_status(); | 811 | 9.55k | if (exec_status.ok()) { | 812 | 9.50k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 9.50k | : Status::Cancelled("force close")); | 814 | 9.50k | } else { | 815 | 52 | _writer->force_close(exec_status); | 816 | 52 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 9.55k | RETURN_IF_ERROR(st); | 821 | 9.55k | } | 822 | 9.51k | return Base::close(state, exec_status); | 823 | 9.51k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 5.08k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 5.08k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 5.08k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 5.08k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 5.08k | if (_writer) { | 810 | 5.08k | Status st = _writer->get_writer_status(); | 811 | 5.08k | if (exec_status.ok()) { | 812 | 5.08k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 5.08k | : Status::Cancelled("force close")); | 814 | 5.08k | } else { | 815 | 4 | _writer->force_close(exec_status); | 816 | 4 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 5.08k | RETURN_IF_ERROR(st); | 821 | 5.08k | } | 822 | 5.08k | return Base::close(state, exec_status); | 823 | 5.08k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 4.01k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 4.01k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 4.01k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 4.01k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 4.01k | if (_writer) { | 810 | 4.01k | Status st = _writer->get_writer_status(); | 811 | 4.01k | if (exec_status.ok()) { | 812 | 4.00k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 4.00k | : Status::Cancelled("force close")); | 814 | 4.00k | } else { | 815 | 2 | _writer->force_close(exec_status); | 816 | 2 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 4.01k | RETURN_IF_ERROR(st); | 821 | 4.01k | } | 822 | 4.01k | return Base::close(state, exec_status); | 823 | 4.01k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 44 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 44 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 44 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 44 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 48 | if (_writer) { | 810 | 48 | Status st = _writer->get_writer_status(); | 811 | 48 | if (exec_status.ok()) { | 812 | 48 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 48 | : Status::Cancelled("force close")); | 814 | 48 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 48 | RETURN_IF_ERROR(st); | 821 | 48 | } | 822 | 44 | return Base::close(state, exec_status); | 823 | 44 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 704 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 704 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 704 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 704 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 704 | if (_writer) { | 810 | 704 | Status st = _writer->get_writer_status(); | 811 | 704 | if (exec_status.ok()) { | 812 | 704 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 704 | : Status::Cancelled("force close")); | 814 | 704 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 704 | RETURN_IF_ERROR(st); | 821 | 704 | } | 822 | 704 | return Base::close(state, exec_status); | 823 | 704 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 1.71k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 1.71k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 1.71k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 1.71k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 1.71k | if (_writer) { | 810 | 1.71k | Status st = _writer->get_writer_status(); | 811 | 1.71k | if (exec_status.ok()) { | 812 | 1.71k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 1.71k | : Status::Cancelled("force close")); | 814 | 1.71k | } else { | 815 | 2 | _writer->force_close(exec_status); | 816 | 2 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 1.71k | RETURN_IF_ERROR(st); | 821 | 1.71k | } | 822 | 1.71k | return Base::close(state, exec_status); | 823 | 1.71k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 156 | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 808 | | // if the init failed, the _writer may be nullptr. so here need check | 809 | 156 | if (_writer) { | 810 | 156 | Status st = _writer->get_writer_status(); | 811 | 156 | if (exec_status.ok()) { | 812 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 156 | : Status::Cancelled("force close")); | 814 | 156 | } else { | 815 | 0 | _writer->force_close(exec_status); | 816 | 0 | } | 817 | | // If there is an error in process_block thread, then we should get the writer | 818 | | // status before call force_close. For example, the thread may failed in commit | 819 | | // transaction. | 820 | 156 | RETURN_IF_ERROR(st); | 821 | 156 | } | 822 | 156 | return Base::close(state, exec_status); | 823 | 156 | } |
|
824 | | |
825 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
826 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
827 | | DECLARE_OPERATOR(ResultSinkLocalState) |
828 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
829 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
830 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
831 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
832 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
833 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
834 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
835 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
836 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
837 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
838 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
839 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
840 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
841 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
842 | | DECLARE_OPERATOR(SortSinkLocalState) |
843 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
844 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
845 | | DECLARE_OPERATOR(AggSinkLocalState) |
846 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
847 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
848 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
849 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
850 | | DECLARE_OPERATOR(UnionSinkLocalState) |
851 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
852 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
853 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
854 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
855 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
856 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
857 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
858 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
859 | | DECLARE_OPERATOR(CacheSinkLocalState) |
860 | | DECLARE_OPERATOR(DictSinkLocalState) |
861 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
862 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
863 | | |
864 | | #undef DECLARE_OPERATOR |
865 | | |
866 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
867 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
868 | | DECLARE_OPERATOR(OlapScanLocalState) |
869 | | DECLARE_OPERATOR(GroupCommitLocalState) |
870 | | DECLARE_OPERATOR(JDBCScanLocalState) |
871 | | DECLARE_OPERATOR(FileScanLocalState) |
872 | | DECLARE_OPERATOR(AnalyticLocalState) |
873 | | DECLARE_OPERATOR(SortLocalState) |
874 | | DECLARE_OPERATOR(SpillSortLocalState) |
875 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
876 | | DECLARE_OPERATOR(AggLocalState) |
877 | | DECLARE_OPERATOR(BucketedAggLocalState) |
878 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
879 | | DECLARE_OPERATOR(TableFunctionLocalState) |
880 | | DECLARE_OPERATOR(ExchangeLocalState) |
881 | | DECLARE_OPERATOR(RepeatLocalState) |
882 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
883 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
884 | | DECLARE_OPERATOR(EmptySetLocalState) |
885 | | DECLARE_OPERATOR(UnionSourceLocalState) |
886 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
887 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
888 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
889 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
890 | | DECLARE_OPERATOR(DataGenLocalState) |
891 | | DECLARE_OPERATOR(SchemaScanLocalState) |
892 | | DECLARE_OPERATOR(MetaScanLocalState) |
893 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
894 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
895 | | DECLARE_OPERATOR(CacheSourceLocalState) |
896 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
897 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
898 | | |
899 | | #ifdef BE_TEST |
900 | | DECLARE_OPERATOR(MockLocalState) |
901 | | DECLARE_OPERATOR(MockScanLocalState) |
902 | | #endif |
903 | | #undef DECLARE_OPERATOR |
904 | | |
905 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
906 | | template class StreamingOperatorX<SelectLocalState>; |
907 | | |
908 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
909 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
910 | | template class StatefulOperatorX<RepeatLocalState>; |
911 | | template class StatefulOperatorX<MaterializationLocalState>; |
912 | | template class StatefulOperatorX<StreamingAggLocalState>; |
913 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
914 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
915 | | template class StatefulOperatorX<TableFunctionLocalState>; |
916 | | |
917 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
918 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
919 | | template class PipelineXSinkLocalState<SortSharedState>; |
920 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
921 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
922 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
923 | | template class PipelineXSinkLocalState<AggSharedState>; |
924 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
925 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
926 | | template class PipelineXSinkLocalState<FakeSharedState>; |
927 | | template class PipelineXSinkLocalState<UnionSharedState>; |
928 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
929 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
930 | | template class PipelineXSinkLocalState<SetSharedState>; |
931 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
932 | | template class PipelineXSinkLocalState<BasicSharedState>; |
933 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
934 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
935 | | |
936 | | template class PipelineXLocalState<HashJoinSharedState>; |
937 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
938 | | template class PipelineXLocalState<SortSharedState>; |
939 | | template class PipelineXLocalState<SpillSortSharedState>; |
940 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
941 | | template class PipelineXLocalState<AnalyticSharedState>; |
942 | | template class PipelineXLocalState<AggSharedState>; |
943 | | template class PipelineXLocalState<BucketedAggSharedState>; |
944 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
945 | | template class PipelineXLocalState<FakeSharedState>; |
946 | | template class PipelineXLocalState<UnionSharedState>; |
947 | | template class PipelineXLocalState<DataQueueSharedState>; |
948 | | template class PipelineXLocalState<MultiCastSharedState>; |
949 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
950 | | template class PipelineXLocalState<SetSharedState>; |
951 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
952 | | template class PipelineXLocalState<BasicSharedState>; |
953 | | template class PipelineXLocalState<RecCTESharedState>; |
954 | | |
955 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
956 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
957 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
958 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
959 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
960 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
962 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
963 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
964 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
965 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
966 | | |
967 | | #ifdef BE_TEST |
968 | | template class OperatorX<DummyOperatorLocalState>; |
969 | | template class DataSinkOperatorX<DummySinkLocalState>; |
970 | | #endif |
971 | | |
972 | | } // namespace doris |