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