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