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