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