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