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