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