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/partition_sort_sink_operator.h" |
68 | | #include "exec/operator/partition_sort_source_operator.h" |
69 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
70 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
71 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
72 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
73 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_scan_operator.h" |
75 | | #include "exec/operator/rec_cte_sink_operator.h" |
76 | | #include "exec/operator/rec_cte_source_operator.h" |
77 | | #include "exec/operator/repeat_operator.h" |
78 | | #include "exec/operator/result_file_sink_operator.h" |
79 | | #include "exec/operator/result_sink_operator.h" |
80 | | #include "exec/operator/schema_scan_operator.h" |
81 | | #include "exec/operator/select_operator.h" |
82 | | #include "exec/operator/set_probe_sink_operator.h" |
83 | | #include "exec/operator/set_sink_operator.h" |
84 | | #include "exec/operator/set_source_operator.h" |
85 | | #include "exec/operator/sort_sink_operator.h" |
86 | | #include "exec/operator/sort_source_operator.h" |
87 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
88 | | #include "exec/operator/spill_sort_sink_operator.h" |
89 | | #include "exec/operator/spill_sort_source_operator.h" |
90 | | #include "exec/operator/streaming_aggregation_operator.h" |
91 | | #include "exec/operator/table_function_operator.h" |
92 | | #include "exec/operator/tvf_table_sink_operator.h" |
93 | | #include "exec/operator/union_sink_operator.h" |
94 | | #include "exec/operator/union_source_operator.h" |
95 | | #include "exec/pipeline/dependency.h" |
96 | | #include "exec/pipeline/pipeline.h" |
97 | | #include "exprs/vexpr.h" |
98 | | #include "exprs/vexpr_context.h" |
99 | | #include "runtime/runtime_profile.h" |
100 | | #include "runtime/runtime_profile_counter_names.h" |
101 | | #include "util/debug_util.h" |
102 | | #include "util/string_util.h" |
103 | | |
104 | | namespace doris { |
105 | | class RowDescriptor; |
106 | | class RuntimeState; |
107 | | } // namespace doris |
108 | | |
109 | | namespace doris { |
110 | | |
111 | 0 | Status OperatorBase::close(RuntimeState* state) { |
112 | 0 | if (_is_closed) { |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | 0 | _is_closed = true; |
116 | 0 | return Status::OK(); |
117 | 0 | } |
118 | | |
119 | | template <typename SharedStateArg> |
120 | 1.34M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 1.34M | if (_parent->nereids_id() == -1) { |
122 | 672k | return fmt::format("(id={})", _parent->node_id()); |
123 | 674k | } else { |
124 | 674k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 674k | } |
126 | 1.34M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 59.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 59.7k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 59.7k | } else { | 124 | 59.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 59.7k | } | 126 | 59.7k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 1 | if (_parent->nereids_id() == -1) { | 122 | 1 | return fmt::format("(id={})", _parent->node_id()); | 123 | 1 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 155k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 155k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 155k | } else { | 124 | 155k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 155k | } | 126 | 155k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 25 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 25 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 25 | } else { | 124 | 25 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 25 | } | 126 | 25 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.82k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.82k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.82k | } else { | 124 | 4.82k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.82k | } | 126 | 4.82k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 7.47k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 7.47k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 7.46k | } else { | 124 | 7.46k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 7.46k | } | 126 | 7.47k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 81.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 81.8k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 81.7k | } else { | 124 | 81.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 81.7k | } | 126 | 81.8k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 52.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 52.6k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 52.6k | } else { | 124 | 52.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 52.6k | } | 126 | 52.6k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 104 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 104 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 104 | } else { | 124 | 104 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 104 | } | 126 | 104 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 493k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 493k | if (_parent->nereids_id() == -1) { | 122 | 233k | return fmt::format("(id={})", _parent->node_id()); | 123 | 260k | } else { | 124 | 260k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 260k | } | 126 | 493k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 50.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 50.6k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 50.6k | } else { | 124 | 50.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 50.6k | } | 126 | 50.6k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 26 | if (_parent->nereids_id() == -1) { | 122 | 26 | return fmt::format("(id={})", _parent->node_id()); | 123 | 26 | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.19k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.19k | if (_parent->nereids_id() == -1) { | 122 | 4.19k | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.19k | } else { | 124 | 3 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 3 | } | 126 | 4.19k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 489 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 489 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 387 | } else { | 124 | 387 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 387 | } | 126 | 489 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 1.05k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 1.05k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 1.04k | } else { | 124 | 1.04k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 1.04k | } | 126 | 1.05k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 435k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 435k | if (_parent->nereids_id() == -1) { | 122 | 435k | return fmt::format("(id={})", _parent->node_id()); | 123 | 18.4E | } else { | 124 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 18.4E | } | 126 | 435k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 164 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 164 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 164 | } else { | 124 | 164 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 164 | } | 126 | 164 | } |
|
127 | | |
128 | | template <typename SharedStateArg> |
129 | 968k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 968k | if (_parent->nereids_id() == -1) { |
131 | 549k | return fmt::format("(id={})", _parent->node_id()); |
132 | 549k | } else { |
133 | 418k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 418k | } |
135 | 968k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 107k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 107k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 107k | } else { | 133 | 107k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 107k | } | 135 | 107k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2 | if (_parent->nereids_id() == -1) { | 131 | 1 | return fmt::format("(id={})", _parent->node_id()); | 132 | 1 | } else { | 133 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 1 | } | 135 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 158k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 158k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 158k | } else { | 133 | 158k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 158k | } | 135 | 158k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 32 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 32 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 32 | } else { | 133 | 32 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 32 | } | 135 | 32 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 4.83k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 4.83k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 4.83k | } else { | 133 | 4.83k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 4.83k | } | 135 | 4.83k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.49k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.49k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.48k | } else { | 133 | 7.48k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.48k | } | 135 | 7.49k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 82.2k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 82.2k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 82.1k | } else { | 133 | 82.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 82.1k | } | 135 | 82.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 52.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 52.4k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 52.4k | } else { | 133 | 52.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 52.4k | } | 135 | 52.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 114 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 114 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 114 | } else { | 133 | 114 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 114 | } | 135 | 114 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 18 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 18 | if (_parent->nereids_id() == -1) { | 131 | 18 | return fmt::format("(id={})", _parent->node_id()); | 132 | 18 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 18 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 4.58k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 4.58k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 4.58k | } else { | 133 | 4.58k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 4.58k | } | 135 | 4.58k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 494 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 494 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 392 | } else { | 133 | 392 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 392 | } | 135 | 494 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 2.27k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 2.28k | if (_parent->nereids_id() == -1) { | 131 | 2.28k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 2.27k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 179k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 179k | if (_parent->nereids_id() == -1) { | 131 | 179k | return fmt::format("(id={})", _parent->node_id()); | 132 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 179k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 367k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 367k | if (_parent->nereids_id() == -1) { | 131 | 367k | return fmt::format("(id={})", _parent->node_id()); | 132 | 367k | } else { | 133 | 41 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 41 | } | 135 | 367k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 25 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 25 | if (_parent->nereids_id() == -1) { | 131 | 25 | return fmt::format("(id={})", _parent->node_id()); | 132 | 25 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 25 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 328 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 328 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 328 | } else { | 133 | 328 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 328 | } | 135 | 328 | } |
|
136 | | |
137 | | template <typename SharedStateArg> |
138 | 28.5k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 28.5k | if (_terminated) { |
140 | 0 | return Status::OK(); |
141 | 0 | } |
142 | 28.5k | _terminated = true; |
143 | 28.5k | return Status::OK(); |
144 | 28.5k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 24.0k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 24.0k | _terminated = true; | 143 | 24.0k | return Status::OK(); | 144 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.64k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.64k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.64k | _terminated = true; | 143 | 1.64k | return Status::OK(); | 144 | 1.64k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1 | _terminated = true; | 143 | 1 | return Status::OK(); | 144 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 5 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 5 | _terminated = true; | 143 | 5 | return Status::OK(); | 144 | 5 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 1.77k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.77k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.77k | _terminated = true; | 143 | 1.77k | return Status::OK(); | 144 | 1.77k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 369 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 369 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 369 | _terminated = true; | 143 | 369 | return Status::OK(); | 144 | 369 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 242 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 242 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 242 | _terminated = true; | 143 | 242 | return Status::OK(); | 144 | 242 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 32 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 32 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 32 | _terminated = true; | 143 | 32 | return Status::OK(); | 144 | 32 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 9 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 9 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 9 | _terminated = true; | 143 | 9 | return Status::OK(); | 144 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 188 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 188 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 188 | _terminated = true; | 143 | 188 | return Status::OK(); | 144 | 188 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 20 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 20 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 20 | _terminated = true; | 143 | 20 | return Status::OK(); | 144 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 171 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 171 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 171 | _terminated = true; | 143 | 171 | return Status::OK(); | 144 | 171 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 122 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 122 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 122 | _terminated = true; | 143 | 122 | return Status::OK(); | 144 | 122 | } |
|
145 | | |
146 | 283k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 283k | return _child && _child->is_serial_operator() && !is_source() |
148 | 283k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 283k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 283k | } |
151 | | |
152 | 24.0k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 24.0k | if (!_child) { |
154 | 22.9k | return false; |
155 | 22.9k | } |
156 | 1.08k | if (_child->is_serial_operator()) { |
157 | 151 | return true; |
158 | 151 | } |
159 | 932 | const auto child_distribution = _child->required_data_distribution(state); |
160 | 932 | return child_distribution.need_local_exchange() && |
161 | 932 | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 1.08k | } |
163 | | |
164 | | template <typename SharedStateArg> |
165 | 19.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
166 | 19.5k | fmt::memory_buffer debug_string_buffer; |
167 | 19.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
168 | 19.5k | return fmt::to_string(debug_string_buffer); |
169 | 19.5k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 3 | fmt::memory_buffer debug_string_buffer; | 167 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 3 | return fmt::to_string(debug_string_buffer); | 169 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 19.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 19.5k | fmt::memory_buffer debug_string_buffer; | 167 | 19.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 19.5k | return fmt::to_string(debug_string_buffer); | 169 | 19.5k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 165 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 166 | 1 | fmt::memory_buffer debug_string_buffer; | 167 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 168 | 1 | return fmt::to_string(debug_string_buffer); | 169 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 19.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 19.5k | fmt::memory_buffer debug_string_buffer; |
174 | 19.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 19.5k | return fmt::to_string(debug_string_buffer); |
176 | 19.5k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 19.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 19.5k | fmt::memory_buffer debug_string_buffer; | 174 | 19.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 19.5k | return fmt::to_string(debug_string_buffer); | 176 | 19.5k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | 19.6k | std::string OperatorXBase::debug_string(int indentation_level) const { |
179 | 19.6k | fmt::memory_buffer debug_string_buffer; |
180 | 19.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
181 | 19.6k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
182 | 19.6k | _is_serial_operator); |
183 | 19.6k | return fmt::to_string(debug_string_buffer); |
184 | 19.6k | } |
185 | | |
186 | 19.5k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
187 | 19.5k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
188 | 19.5k | } |
189 | | |
190 | 604k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
191 | 604k | std::string node_name = print_plan_node_type(tnode.node_type); |
192 | 604k | _nereids_id = tnode.nereids_id; |
193 | 604k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
194 | 3.22k | if (!has_projection()) { |
195 | 0 | return Status::InternalError("no final output tuple id"); |
196 | 0 | } |
197 | 3.22k | if (tnode.intermediate_output_tuple_id_list.size() != |
198 | 3.22k | tnode.intermediate_projections_list.size()) { |
199 | 0 | return Status::InternalError( |
200 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
201 | 0 | "intermediate_projections_list size:{}", |
202 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
203 | 0 | tnode.intermediate_projections_list.size()); |
204 | 0 | } |
205 | 3.22k | } |
206 | 604k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
207 | 604k | _op_name = substr + "_OPERATOR"; |
208 | | |
209 | 604k | if (tnode.__isset.vconjunct) { |
210 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
211 | 604k | } else if (tnode.__isset.conjuncts) { |
212 | 251k | for (const auto& conjunct : tnode.conjuncts) { |
213 | 251k | VExprContextSPtr context; |
214 | 251k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
215 | 244k | _conjuncts.emplace_back(context); |
216 | 244k | } |
217 | 88.4k | } |
218 | | |
219 | | // create the projections expr |
220 | 596k | if (tnode.__isset.projections) { |
221 | 229k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projection->projections)); |
222 | 229k | } |
223 | 588k | if (!tnode.intermediate_projections_list.empty()) { |
224 | 3.22k | DCHECK(has_projection()) << "no final projections"; |
225 | 3.22k | _projection->intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
226 | 4.29k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
227 | 4.29k | VExprContextSPtrs projections; |
228 | 4.29k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
229 | 4.29k | _projection->intermediate_projections.push_back(projections); |
230 | 4.29k | } |
231 | 3.22k | } |
232 | 588k | return Status::OK(); |
233 | 588k | } |
234 | | |
235 | 587k | Status OperatorXBase::prepare(RuntimeState* state) { |
236 | 587k | for (auto& conjunct : _conjuncts) { |
237 | 243k | RETURN_IF_ERROR(conjunct->prepare(state, operator_row_desc_before_projection())); |
238 | 243k | } |
239 | 587k | if (state->enable_adjust_conjunct_order_by_cost()) { |
240 | 537k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
241 | 319k | return a->execute_cost() < b->execute_cost(); |
242 | 319k | }); |
243 | 537k | }; |
244 | | |
245 | 587k | if (has_projection()) { |
246 | 220k | auto& projection = *_projection; |
247 | 225k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
248 | 4.29k | const auto& input_row_desc = |
249 | 4.29k | i == 0 ? operator_row_desc_before_projection() |
250 | 4.29k | : projection.intermediate_output_row_descriptors[i - 1]; |
251 | 4.29k | RETURN_IF_ERROR( |
252 | 4.29k | VExpr::prepare(projection.intermediate_projections[i], state, input_row_desc)); |
253 | 4.29k | } |
254 | 220k | const auto& final_projection_input_row_desc = |
255 | 220k | projection.intermediate_output_row_descriptors.empty() |
256 | 220k | ? operator_row_desc_before_projection() |
257 | 220k | : projection.intermediate_output_row_descriptors.back(); |
258 | 220k | RETURN_IF_ERROR( |
259 | 220k | VExpr::prepare(projection.projections, state, final_projection_input_row_desc)); |
260 | 220k | RETURN_IF_ERROR(VExpr::check_expr_output_type(projection.projections, |
261 | 220k | projection.output_row_descriptor)); |
262 | 220k | } |
263 | | |
264 | 587k | for (auto& conjunct : _conjuncts) { |
265 | 244k | RETURN_IF_ERROR(conjunct->open(state)); |
266 | 244k | } |
267 | 587k | if (has_projection()) { |
268 | 220k | RETURN_IF_ERROR(VExpr::open(_projection->projections, state)); |
269 | 220k | for (auto& projections : _projection->intermediate_projections) { |
270 | 4.29k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
271 | 4.29k | } |
272 | 220k | } |
273 | 587k | if (_child && !is_source()) { |
274 | 89.9k | RETURN_IF_ERROR(_child->prepare(state)); |
275 | 89.9k | } |
276 | | |
277 | 587k | if (VExpr::contains_blockable_function(_conjuncts) || |
278 | 587k | (has_projection() && VExpr::contains_blockable_function(_projection->projections))) { |
279 | 0 | _blockable = true; |
280 | 0 | } |
281 | | |
282 | 587k | return Status::OK(); |
283 | 587k | } |
284 | | |
285 | 5.35k | Status OperatorXBase::terminate(RuntimeState* state) { |
286 | 5.35k | if (_child && !is_source()) { |
287 | 773 | RETURN_IF_ERROR(_child->terminate(state)); |
288 | 773 | } |
289 | 5.35k | auto result = state->get_local_state_result(operator_id()); |
290 | 5.35k | if (!result) { |
291 | 0 | return result.error(); |
292 | 0 | } |
293 | 5.35k | return result.value()->terminate(state); |
294 | 5.35k | } |
295 | | |
296 | 3.61M | Status OperatorXBase::close(RuntimeState* state) { |
297 | 3.61M | if (_child && !is_source()) { |
298 | 591k | RETURN_IF_ERROR(_child->close(state)); |
299 | 591k | } |
300 | 3.61M | auto result = state->get_local_state_result(operator_id()); |
301 | 3.61M | if (!result) { |
302 | 0 | return result.error(); |
303 | 0 | } |
304 | 3.61M | return result.value()->close(state); |
305 | 3.61M | } |
306 | | |
307 | 263k | void PipelineXLocalStateBase::clear_origin_block() { |
308 | 263k | _origin_block.clear_column_data( |
309 | 263k | _parent->operator_row_desc_before_projection().num_materialized_slots()); |
310 | 263k | } |
311 | | |
312 | 589k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
313 | 589k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
314 | | |
315 | 589k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
316 | 589k | return Status::OK(); |
317 | 589k | } |
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 | 263k | Block* output_block) const { |
326 | 263k | auto* local_state = state->get_local_state(operator_id()); |
327 | 263k | SCOPED_TIMER(local_state->exec_time_counter()); |
328 | 263k | SCOPED_TIMER(local_state->_projection_timer); |
329 | 263k | const size_t rows = origin_block->rows(); |
330 | 263k | if (rows == 0) { |
331 | 138k | return Status::OK(); |
332 | 138k | } |
333 | 125k | SCOPED_PEAK_MEM(&local_state->_estimate_memory_usage); |
334 | | |
335 | 125k | { |
336 | 125k | Block input_block = *origin_block; |
337 | | |
338 | 125k | ColumnsWithTypeAndName new_columns; |
339 | 125k | for (const auto& projections : local_state->_intermediate_projections) { |
340 | 1.64k | if (projections.empty()) { |
341 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
342 | 0 | node_id()); |
343 | 0 | } |
344 | 1.64k | new_columns.resize(projections.size()); |
345 | 10.9k | for (int i = 0; i < projections.size(); i++) { |
346 | 9.32k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
347 | 9.32k | 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 | 9.32k | } |
355 | 1.64k | Block tmp_block {new_columns}; |
356 | 1.64k | input_block.swap(tmp_block); |
357 | 1.64k | } |
358 | | |
359 | 125k | 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 | 125k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
367 | 125k | output_block, _projection->output_row_descriptor); |
368 | 125k | auto& mutable_columns = scoped_mutable_block.mutable_columns(); |
369 | 125k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
370 | 125k | Columns shared_columns(mutable_columns.size()); |
371 | | |
372 | 673k | for (int i = 0; i < mutable_columns.size(); ++i) { |
373 | 548k | ColumnPtr column_ptr; |
374 | 548k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
375 | 548k | 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 | 548k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
382 | 548k | if (is_column_nullable(*mutable_columns[i]) && !is_column_nullable(*column_ptr)) { |
383 | 0 | column_ptr = make_nullable(column_ptr, false); |
384 | 0 | } |
385 | 548k | if (column_ptr->is_exclusive()) { |
386 | 199k | mutable_columns[i] = IColumn::mutate(std::move(column_ptr)); |
387 | 349k | } else { |
388 | 349k | shared_columns[i] = std::move(column_ptr); |
389 | 349k | } |
390 | 548k | } |
391 | | |
392 | 125k | scoped_mutable_block.restore(); |
393 | 673k | for (int i = 0; i < shared_columns.size(); ++i) { |
394 | 548k | if (shared_columns[i]) { |
395 | 349k | output_block->replace_by_position(i, std::move(shared_columns[i])); |
396 | 349k | } |
397 | 548k | } |
398 | 125k | } |
399 | | |
400 | 0 | origin_block->clear_column_data( |
401 | 125k | local_state->_parent->operator_row_desc_before_projection().num_materialized_slots()); |
402 | 125k | DCHECK_EQ(output_block->rows(), rows); |
403 | | |
404 | 125k | return Status::OK(); |
405 | 125k | } |
406 | | |
407 | 3.74M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
408 | 3.74M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
409 | 3.74M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
410 | 3.74M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
411 | 3.74M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
412 | 3.74M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
413 | 3.74M | if (_debug_point_count++ % 2 == 0) { |
414 | 3.74M | return Status::OK(); |
415 | 3.74M | } |
416 | 3.74M | } |
417 | 3.74M | }); |
418 | | |
419 | 3.74M | Status status; |
420 | 3.74M | auto* local_state = state->get_local_state(operator_id()); |
421 | 3.74M | Defer defer([&]() { |
422 | 3.74M | if (status.ok()) { |
423 | 3.74M | local_state->update_output_block_counters(*block); |
424 | 3.74M | } |
425 | 3.74M | }); |
426 | 3.74M | if (has_projection()) { |
427 | 263k | local_state->clear_origin_block(); |
428 | 263k | status = get_block(state, &local_state->_origin_block, eos); |
429 | 263k | if (UNLIKELY(!status.ok())) { |
430 | 24 | return status; |
431 | 24 | } |
432 | 263k | status = do_projections(state, &local_state->_origin_block, block); |
433 | 263k | return status; |
434 | 263k | } |
435 | 3.48M | status = get_block(state, block, eos); |
436 | 3.48M | RETURN_IF_ERROR(block->check_type_and_column()); |
437 | 3.48M | return status; |
438 | 3.48M | } |
439 | | |
440 | 2.28M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
441 | 2.28M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
442 | 3.49k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
443 | 3.49k | *eos = true; |
444 | 3.49k | } |
445 | | |
446 | 2.28M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
447 | 2.28M | auto op_name = to_lower(_parent->_op_name); |
448 | 2.28M | auto arg_op_name = dp->param<std::string>("op_name"); |
449 | 2.28M | arg_op_name = to_lower(arg_op_name); |
450 | | |
451 | 2.28M | if (op_name == arg_op_name) { |
452 | 2.28M | *eos = true; |
453 | 2.28M | } |
454 | 2.28M | }); |
455 | | |
456 | 2.28M | if (auto rows = block->rows()) { |
457 | 654k | _num_rows_returned += rows; |
458 | 654k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
459 | 654k | } |
460 | 2.28M | } |
461 | | |
462 | 28.5k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
463 | 28.5k | auto result = state->get_sink_local_state_result(); |
464 | 28.5k | if (!result) { |
465 | 0 | return result.error(); |
466 | 0 | } |
467 | 28.5k | return result.value()->terminate(state); |
468 | 28.5k | } |
469 | | |
470 | 19.5k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
471 | 19.5k | fmt::memory_buffer debug_string_buffer; |
472 | | |
473 | 19.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
474 | 19.5k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
475 | 19.5k | return fmt::to_string(debug_string_buffer); |
476 | 19.5k | } |
477 | | |
478 | 19.5k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
479 | 19.5k | return state->get_sink_local_state()->debug_string(indentation_level); |
480 | 19.5k | } |
481 | | |
482 | 299k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
483 | 299k | std::string op_name = "UNKNOWN_SINK"; |
484 | 299k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
485 | | |
486 | 300k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
487 | 300k | op_name = it->second; |
488 | 300k | } |
489 | 299k | _name = op_name + "_OPERATOR"; |
490 | 299k | return Status::OK(); |
491 | 299k | } |
492 | | |
493 | 264k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
494 | 264k | std::string op_name = print_plan_node_type(tnode.node_type); |
495 | 264k | _nereids_id = tnode.nereids_id; |
496 | 264k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
497 | 264k | _name = substr + "_SINK_OPERATOR"; |
498 | 264k | return Status::OK(); |
499 | 264k | } |
500 | | |
501 | | template <typename LocalStateType> |
502 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
503 | 1.33M | LocalSinkStateInfo& info) { |
504 | 1.33M | auto local_state = LocalStateType::create_unique(this, state); |
505 | 1.33M | RETURN_IF_ERROR(local_state->init(state, info)); |
506 | 1.33M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
507 | 1.33M | return Status::OK(); |
508 | 1.33M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 108k | LocalSinkStateInfo& info) { | 504 | 108k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 108k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 108k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 108k | return Status::OK(); | 508 | 108k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 327k | LocalSinkStateInfo& info) { | 504 | 327k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 327k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 327k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 327k | return Status::OK(); | 508 | 327k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 3 | LocalSinkStateInfo& info) { | 504 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 3 | return Status::OK(); | 508 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 358 | LocalSinkStateInfo& info) { | 504 | 358 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 358 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 358 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 358 | return Status::OK(); | 508 | 358 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 42.4k | LocalSinkStateInfo& info) { | 504 | 42.4k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 42.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 42.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 42.4k | return Status::OK(); | 508 | 42.4k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 38 | LocalSinkStateInfo& info) { | 504 | 38 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 38 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 38 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 38 | return Status::OK(); | 508 | 38 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_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 | 7.48k | LocalSinkStateInfo& info) { | 504 | 7.48k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 7.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 7.48k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 7.48k | return Status::OK(); | 508 | 7.48k | } |
_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 | 159k | LocalSinkStateInfo& info) { | 504 | 159k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 159k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 159k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 159k | return Status::OK(); | 508 | 159k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 32 | LocalSinkStateInfo& info) { | 504 | 32 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 32 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 32 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 32 | return Status::OK(); | 508 | 32 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 179k | LocalSinkStateInfo& info) { | 504 | 179k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 179k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 179k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 179k | return Status::OK(); | 508 | 179k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 82.3k | LocalSinkStateInfo& info) { | 504 | 82.3k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 82.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 82.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 82.3k | return Status::OK(); | 508 | 82.3k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 52.4k | LocalSinkStateInfo& info) { | 504 | 52.4k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 52.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 52.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 52.4k | return Status::OK(); | 508 | 52.4k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 114 | LocalSinkStateInfo& info) { | 504 | 114 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 114 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 114 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 114 | return Status::OK(); | 508 | 114 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 361k | LocalSinkStateInfo& info) { | 504 | 361k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 361k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 361k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 361k | return Status::OK(); | 508 | 361k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.83k | LocalSinkStateInfo& info) { | 504 | 4.83k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.83k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.83k | return Status::OK(); | 508 | 4.83k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 4.57k | LocalSinkStateInfo& info) { | 504 | 4.57k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 4.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 4.57k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 4.57k | return Status::OK(); | 508 | 4.57k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1.62k | LocalSinkStateInfo& info) { | 504 | 1.62k | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1.62k | return Status::OK(); | 508 | 1.62k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 390 | LocalSinkStateInfo& info) { | 504 | 390 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 390 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 390 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 390 | return Status::OK(); | 508 | 390 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 709 | LocalSinkStateInfo& info) { | 504 | 709 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 709 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 709 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 709 | return Status::OK(); | 508 | 709 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 495 | LocalSinkStateInfo& info) { | 504 | 495 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 495 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 495 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 495 | return Status::OK(); | 508 | 495 | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 576 | LocalSinkStateInfo& info) { | 504 | 576 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 576 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 576 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 576 | return Status::OK(); | 508 | 576 | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 469 | LocalSinkStateInfo& info) { | 504 | 469 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 469 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 469 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 469 | return Status::OK(); | 508 | 469 | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 1 | LocalSinkStateInfo& info) { | 504 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 1 | return Status::OK(); | 508 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 569 | LocalSinkStateInfo& info) { | 504 | 569 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 569 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 569 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 569 | return Status::OK(); | 508 | 569 | } |
_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 | 102 | LocalSinkStateInfo& info) { | 504 | 102 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 102 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 102 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 102 | return Status::OK(); | 508 | 102 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 164 | LocalSinkStateInfo& info) { | 504 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 164 | return Status::OK(); | 508 | 164 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 503 | 164 | LocalSinkStateInfo& info) { | 504 | 164 | auto local_state = LocalStateType::create_unique(this, state); | 505 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 506 | 164 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 507 | 164 | return Status::OK(); | 508 | 164 | } |
|
509 | | |
510 | | template <typename LocalStateType> |
511 | 1.08M | 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.08M | } else { |
519 | 1.08M | auto ss = LocalStateType::SharedStateType::create_shared(); |
520 | 1.08M | ss->id = operator_id(); |
521 | 1.08M | for (auto& dest : dests_id()) { |
522 | 1.07M | ss->related_op_ids.insert(dest); |
523 | 1.07M | } |
524 | 1.08M | return ss; |
525 | 1.08M | } |
526 | 1.08M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 93.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 | 93.4k | } else { | 519 | 93.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 93.4k | ss->id = operator_id(); | 521 | 93.4k | for (auto& dest : dests_id()) { | 522 | 93.1k | ss->related_op_ids.insert(dest); | 523 | 93.1k | } | 524 | 93.4k | return ss; | 525 | 93.4k | } | 526 | 93.4k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 327k | 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 | 327k | } else { | 519 | 327k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 327k | ss->id = operator_id(); | 521 | 327k | for (auto& dest : dests_id()) { | 522 | 324k | ss->related_op_ids.insert(dest); | 523 | 324k | } | 524 | 327k | return ss; | 525 | 327k | } | 526 | 327k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_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_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 358 | 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 | 358 | } else { | 519 | 358 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 358 | ss->id = operator_id(); | 521 | 358 | for (auto& dest : dests_id()) { | 522 | 358 | ss->related_op_ids.insert(dest); | 523 | 358 | } | 524 | 358 | return ss; | 525 | 358 | } | 526 | 358 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 42.5k | 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 | 42.5k | } else { | 519 | 42.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 42.5k | ss->id = operator_id(); | 521 | 42.5k | for (auto& dest : dests_id()) { | 522 | 42.2k | ss->related_op_ids.insert(dest); | 523 | 42.2k | } | 524 | 42.5k | return ss; | 525 | 42.5k | } | 526 | 42.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 38 | 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 | 38 | } else { | 519 | 38 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 38 | ss->id = operator_id(); | 521 | 38 | for (auto& dest : dests_id()) { | 522 | 38 | ss->related_op_ids.insert(dest); | 523 | 38 | } | 524 | 38 | return ss; | 525 | 38 | } | 526 | 38 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv 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 | 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.50k | for (auto& dest : dests_id()) { | 522 | 7.50k | ss->related_op_ids.insert(dest); | 523 | 7.50k | } | 524 | 7.49k | return ss; | 525 | 7.49k | } | 526 | 7.49k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 15 | 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 | 15 | } else { | 519 | 15 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 15 | ss->id = operator_id(); | 521 | 15 | for (auto& dest : dests_id()) { | 522 | 15 | ss->related_op_ids.insert(dest); | 523 | 15 | } | 524 | 15 | return ss; | 525 | 15 | } | 526 | 15 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 159k | 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 | 159k | } else { | 519 | 159k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 159k | ss->id = operator_id(); | 521 | 159k | for (auto& dest : dests_id()) { | 522 | 159k | ss->related_op_ids.insert(dest); | 523 | 159k | } | 524 | 159k | return ss; | 525 | 159k | } | 526 | 159k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 34 | 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 | 34 | } else { | 519 | 34 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 34 | ss->id = operator_id(); | 521 | 34 | for (auto& dest : dests_id()) { | 522 | 34 | ss->related_op_ids.insert(dest); | 523 | 34 | } | 524 | 34 | return ss; | 525 | 34 | } | 526 | 34 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 82.5k | 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 | 82.5k | } else { | 519 | 82.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 82.5k | ss->id = operator_id(); | 521 | 82.5k | for (auto& dest : dests_id()) { | 522 | 82.5k | ss->related_op_ids.insert(dest); | 523 | 82.5k | } | 524 | 82.5k | return ss; | 525 | 82.5k | } | 526 | 82.5k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 113 | 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 | 113 | } else { | 519 | 113 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 113 | ss->id = operator_id(); | 521 | 113 | for (auto& dest : dests_id()) { | 522 | 113 | ss->related_op_ids.insert(dest); | 523 | 113 | } | 524 | 113 | return ss; | 525 | 113 | } | 526 | 113 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 362k | 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 | 362k | } else { | 519 | 362k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 362k | ss->id = operator_id(); | 521 | 362k | for (auto& dest : dests_id()) { | 522 | 358k | ss->related_op_ids.insert(dest); | 523 | 358k | } | 524 | 362k | return ss; | 525 | 362k | } | 526 | 362k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 4.83k | 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 | 4.83k | } else { | 519 | 4.83k | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 4.83k | ss->id = operator_id(); | 521 | 4.83k | for (auto& dest : dests_id()) { | 522 | 4.83k | ss->related_op_ids.insert(dest); | 523 | 4.83k | } | 524 | 4.83k | return ss; | 525 | 4.83k | } | 526 | 4.83k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 493 | 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 | 493 | } else { | 519 | 493 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 493 | ss->id = operator_id(); | 521 | 493 | for (auto& dest : dests_id()) { | 522 | 493 | ss->related_op_ids.insert(dest); | 523 | 493 | } | 524 | 493 | return ss; | 525 | 493 | } | 526 | 493 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 511 | 581 | 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 | 581 | } else { | 519 | 581 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 581 | ss->id = operator_id(); | 521 | 581 | for (auto& dest : dests_id()) { | 522 | 580 | ss->related_op_ids.insert(dest); | 523 | 580 | } | 524 | 581 | return ss; | 525 | 581 | } | 526 | 581 | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 511 | 474 | 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 | 474 | } else { | 519 | 474 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 474 | ss->id = operator_id(); | 521 | 474 | for (auto& dest : dests_id()) { | 522 | 474 | ss->related_op_ids.insert(dest); | 523 | 474 | } | 524 | 474 | return ss; | 525 | 474 | } | 526 | 474 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 568 | 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 | 568 | } else { | 519 | 568 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 568 | ss->id = operator_id(); | 521 | 568 | for (auto& dest : dests_id()) { | 522 | 565 | ss->related_op_ids.insert(dest); | 523 | 565 | } | 524 | 568 | return ss; | 525 | 568 | } | 526 | 568 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 511 | 102 | 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 | 102 | } else { | 519 | 102 | auto ss = LocalStateType::SharedStateType::create_shared(); | 520 | 102 | ss->id = operator_id(); | 521 | 102 | for (auto& dest : dests_id()) { | 522 | 102 | ss->related_op_ids.insert(dest); | 523 | 102 | } | 524 | 102 | return ss; | 525 | 102 | } | 526 | 102 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
527 | | |
528 | | template <typename LocalStateType> |
529 | 1.58M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
530 | 1.58M | auto local_state = LocalStateType::create_unique(state, this); |
531 | 1.58M | RETURN_IF_ERROR(local_state->init(state, info)); |
532 | 1.58M | state->emplace_local_state(operator_id(), std::move(local_state)); |
533 | 1.58M | return Status::OK(); |
534 | 1.58M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 60.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 60.0k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 60.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 60.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 60.0k | return Status::OK(); | 534 | 60.0k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 217k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 217k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 217k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 217k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 217k | return Status::OK(); | 534 | 217k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 154 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 154 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 154 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 154 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 154 | return Status::OK(); | 534 | 154 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.06k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.06k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 3.06k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 3.06k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 3.06k | return Status::OK(); | 534 | 3.06k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.47k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.47k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.47k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.47k | return Status::OK(); | 534 | 7.47k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 7.39k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 7.39k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 7.39k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 7.39k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 7.39k | return Status::OK(); | 534 | 7.39k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 25 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 25 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 25 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 25 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 25 | return Status::OK(); | 534 | 25 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 150k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 150k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 150k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 150k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 150k | return Status::OK(); | 534 | 150k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 82.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 82.1k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 82.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 82.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 82.1k | return Status::OK(); | 534 | 82.1k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 52.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 52.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 52.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 52.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 52.7k | return Status::OK(); | 534 | 52.7k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 104 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 104 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 104 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 104 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 104 | return Status::OK(); | 534 | 104 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.97k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.97k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.97k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.97k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.97k | return Status::OK(); | 534 | 4.97k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 237k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 237k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 237k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 237k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 237k | return Status::OK(); | 534 | 237k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.46k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.46k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.46k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.46k | return Status::OK(); | 534 | 1.46k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.82k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.82k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.82k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.82k | return Status::OK(); | 534 | 4.82k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 27 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 27 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 27 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 27 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 27 | return Status::OK(); | 534 | 27 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.43k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.43k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.43k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.43k | return Status::OK(); | 534 | 1.43k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 50.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 50.7k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 50.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 50.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 50.7k | return Status::OK(); | 534 | 50.7k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.20k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.20k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.20k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.20k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.20k | return Status::OK(); | 534 | 4.20k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 384 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 384 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 384 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 384 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 384 | return Status::OK(); | 534 | 384 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 575 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 575 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 575 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 575 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 575 | return Status::OK(); | 534 | 575 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 463 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 463 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 463 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 463 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 463 | return Status::OK(); | 534 | 463 | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 311 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 311 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 311 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 311 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 311 | return Status::OK(); | 534 | 311 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.57k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.57k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 1.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 1.57k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 1.57k | return Status::OK(); | 534 | 1.57k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.32k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.32k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 4.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 4.32k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 4.32k | return Status::OK(); | 534 | 4.32k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 439k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 439k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 439k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 439k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 439k | return Status::OK(); | 534 | 439k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _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 | 164 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 164 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 164 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 164 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 164 | return Status::OK(); | 534 | 164 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 2.18k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 2.18k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 2.18k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 2.18k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 2.18k | return Status::OK(); | 534 | 2.18k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 763 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 763 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 763 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 763 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 763 | return Status::OK(); | 534 | 763 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 829 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 829 | auto local_state = LocalStateType::create_unique(state, this); | 531 | 829 | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 829 | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 829 | return Status::OK(); | 534 | 829 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 6.67k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 6.67k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 6.67k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 6.67k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 6.67k | return Status::OK(); | 534 | 6.67k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 236k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 530 | 236k | auto local_state = LocalStateType::create_unique(state, this); | 531 | 236k | RETURN_IF_ERROR(local_state->init(state, info)); | 532 | 236k | state->emplace_local_state(operator_id(), std::move(local_state)); | 533 | 236k | return Status::OK(); | 534 | 236k | } |
|
535 | | |
536 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
537 | | RuntimeState* state) |
538 | 1.32M | : _parent(parent), _state(state) {} |
539 | | |
540 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
541 | 1.56M | : _num_rows_returned(0), |
542 | 1.56M | _rows_returned_counter(nullptr), |
543 | 1.56M | _parent(parent), |
544 | 1.56M | _state(state), |
545 | 1.56M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
546 | | |
547 | | template <typename SharedStateArg> |
548 | 1.58M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
549 | 1.58M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
550 | 1.58M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
551 | 1.58M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
552 | 1.58M | _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 | 1.58M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
556 | 1.58M | _operator_profile->add_child(_common_profile.get(), true); |
557 | 1.58M | _operator_profile->add_child(_custom_profile.get(), true); |
558 | 1.58M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
559 | 1.58M | if constexpr (!is_fake_shared) { |
560 | 864k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
561 | 503k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
562 | 503k | .first.get() |
563 | 503k | ->template cast<SharedStateArg>(); |
564 | | |
565 | 503k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
566 | 503k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
567 | 503k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
568 | 503k | } else if (info.shared_state) { |
569 | 301k | 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 | 301k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
574 | | |
575 | 301k | _dependency = _shared_state->create_source_dependency( |
576 | 301k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
577 | 301k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
578 | 301k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
579 | 301k | } else { |
580 | 60.6k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
581 | 5.63k | DCHECK(false); |
582 | 5.63k | } |
583 | 60.6k | } |
584 | 864k | } |
585 | | |
586 | 1.58M | 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 | 1.58M | _rows_returned_counter = |
591 | 1.58M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
592 | 1.58M | _blocks_returned_counter = |
593 | 1.58M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
594 | 1.58M | _output_block_bytes_counter = |
595 | 1.58M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 1.58M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
597 | 1.58M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
598 | 1.58M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
599 | 1.58M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
600 | 1.58M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
601 | 1.58M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
602 | 1.58M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
603 | 1.58M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
604 | 1.58M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
605 | 1.58M | _memory_used_counter = |
606 | 1.58M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
607 | 1.58M | _common_profile->add_info_string("IsColocate", |
608 | 1.58M | std::to_string(_parent->is_colocated_operator())); |
609 | 1.58M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
610 | 1.58M | _common_profile->add_info_string("FollowedByShuffledOperator", |
611 | 1.58M | std::to_string(_parent->followed_by_shuffled_operator())); |
612 | 1.58M | return Status::OK(); |
613 | 1.58M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 60.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 60.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 60.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 60.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 60.0k | _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 | 60.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 60.0k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 60.0k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 60.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 60.0k | if constexpr (!is_fake_shared) { | 560 | 60.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 14.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 14.7k | .first.get() | 563 | 14.7k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 14.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 14.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 14.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 45.3k | } 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 | 45.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 45.0k | _dependency = _shared_state->create_source_dependency( | 576 | 45.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 45.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 45.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 45.0k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 256 | } | 584 | 60.0k | } | 585 | | | 586 | 60.0k | 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 | 60.0k | _rows_returned_counter = | 591 | 60.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 60.0k | _blocks_returned_counter = | 593 | 60.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 60.0k | _output_block_bytes_counter = | 595 | 60.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 60.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 60.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 60.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 60.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 60.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 60.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 60.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 60.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 60.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 60.0k | _memory_used_counter = | 606 | 60.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 60.0k | _common_profile->add_info_string("IsColocate", | 608 | 60.0k | std::to_string(_parent->is_colocated_operator())); | 609 | 60.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 60.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 60.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 60.0k | return Status::OK(); | 613 | 60.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 1 | _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 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 1 | if constexpr (!is_fake_shared) { | 560 | 1 | 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 | 1 | } 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 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 1 | _dependency = _shared_state->create_source_dependency( | 576 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 1 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 1 | } | 585 | | | 586 | 1 | 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 | 1 | _rows_returned_counter = | 591 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 1 | _blocks_returned_counter = | 593 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 1 | _output_block_bytes_counter = | 595 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 1 | _memory_used_counter = | 606 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 1 | _common_profile->add_info_string("IsColocate", | 608 | 1 | std::to_string(_parent->is_colocated_operator())); | 609 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 1 | return Status::OK(); | 613 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 159k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 159k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 159k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 159k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 159k | _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 | 159k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 159k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 159k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 159k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 159k | if constexpr (!is_fake_shared) { | 560 | 159k | 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 | 159k | } 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 | 154k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 154k | _dependency = _shared_state->create_source_dependency( | 576 | 154k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 154k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 154k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 154k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 4.86k | } | 584 | 159k | } | 585 | | | 586 | 159k | 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 | 159k | _rows_returned_counter = | 591 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 159k | _blocks_returned_counter = | 593 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 159k | _output_block_bytes_counter = | 595 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 159k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 159k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 159k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 159k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 159k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 159k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 159k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 159k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 159k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 159k | _memory_used_counter = | 606 | 159k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 159k | _common_profile->add_info_string("IsColocate", | 608 | 159k | std::to_string(_parent->is_colocated_operator())); | 609 | 159k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 159k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 159k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 159k | return Status::OK(); | 613 | 159k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 25 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 25 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 25 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 25 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 25 | _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 | 25 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 25 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 25 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 25 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 25 | if constexpr (!is_fake_shared) { | 560 | 25 | 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 | 25 | } 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 | 25 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 25 | _dependency = _shared_state->create_source_dependency( | 576 | 25 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 25 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 25 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 25 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 25 | } | 585 | | | 586 | 25 | 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 | 25 | _rows_returned_counter = | 591 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 25 | _blocks_returned_counter = | 593 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 25 | _output_block_bytes_counter = | 595 | 25 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 25 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 25 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 25 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 25 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 25 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 25 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 25 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 25 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 25 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 25 | _memory_used_counter = | 606 | 25 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 25 | _common_profile->add_info_string("IsColocate", | 608 | 25 | std::to_string(_parent->is_colocated_operator())); | 609 | 25 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 25 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 25 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 25 | return Status::OK(); | 613 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 4.82k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 4.82k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 4.82k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 4.82k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 4.82k | _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.82k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 4.82k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 4.82k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 4.82k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 4.82k | if constexpr (!is_fake_shared) { | 560 | 4.82k | 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.82k | } 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.82k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.82k | _dependency = _shared_state->create_source_dependency( | 576 | 4.82k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.82k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.82k | _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 | 4.82k | } | 585 | | | 586 | 4.82k | 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.82k | _rows_returned_counter = | 591 | 4.82k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 4.82k | _blocks_returned_counter = | 593 | 4.82k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 4.82k | _output_block_bytes_counter = | 595 | 4.82k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 4.82k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 4.82k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 4.82k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 4.82k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 4.82k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 4.82k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 4.82k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 4.82k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 4.82k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 4.82k | _memory_used_counter = | 606 | 4.82k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 4.82k | _common_profile->add_info_string("IsColocate", | 608 | 4.82k | std::to_string(_parent->is_colocated_operator())); | 609 | 4.82k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 4.82k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 4.82k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 4.82k | return Status::OK(); | 613 | 4.82k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 7.50k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 7.50k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 7.50k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 7.50k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 7.50k | _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.50k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 7.50k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 7.50k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 7.50k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 7.50k | if constexpr (!is_fake_shared) { | 560 | 7.50k | 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.50k | } 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.45k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 7.45k | _dependency = _shared_state->create_source_dependency( | 576 | 7.45k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 7.45k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 7.45k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 7.45k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 52 | } | 584 | 7.50k | } | 585 | | | 586 | 7.50k | 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.50k | _rows_returned_counter = | 591 | 7.50k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 7.50k | _blocks_returned_counter = | 593 | 7.50k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 7.50k | _output_block_bytes_counter = | 595 | 7.50k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 7.50k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 7.50k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 7.50k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 7.50k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 7.50k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 7.50k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 7.50k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 7.50k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 7.50k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 7.50k | _memory_used_counter = | 606 | 7.50k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 7.50k | _common_profile->add_info_string("IsColocate", | 608 | 7.50k | std::to_string(_parent->is_colocated_operator())); | 609 | 7.50k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 7.50k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 7.50k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 7.50k | return Status::OK(); | 613 | 7.50k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 82.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 82.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 82.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 82.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 82.5k | _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 | 82.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 82.5k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 82.5k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 82.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 82.5k | if constexpr (!is_fake_shared) { | 560 | 82.5k | 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 | 82.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 | 81.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 81.3k | _dependency = _shared_state->create_source_dependency( | 576 | 81.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 81.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 81.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 81.3k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 1.19k | } | 584 | 82.5k | } | 585 | | | 586 | 82.5k | 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 | 82.5k | _rows_returned_counter = | 591 | 82.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 82.5k | _blocks_returned_counter = | 593 | 82.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 82.5k | _output_block_bytes_counter = | 595 | 82.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 82.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 82.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 82.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 82.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 82.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 82.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 82.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 82.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 82.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 82.5k | _memory_used_counter = | 606 | 82.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 82.5k | _common_profile->add_info_string("IsColocate", | 608 | 82.5k | std::to_string(_parent->is_colocated_operator())); | 609 | 82.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 82.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 82.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 82.5k | return Status::OK(); | 613 | 82.5k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 52.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 52.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 52.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 52.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 52.7k | _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 | 52.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 52.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 52.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 52.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 52.7k | if constexpr (!is_fake_shared) { | 560 | 52.7k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 52.6k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 52.6k | .first.get() | 563 | 52.6k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 52.6k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 52.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 52.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 52.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 | 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 | 113 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 113 | } | 584 | 52.7k | } | 585 | | | 586 | 52.7k | 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 | 52.7k | _rows_returned_counter = | 591 | 52.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 52.7k | _blocks_returned_counter = | 593 | 52.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 52.7k | _output_block_bytes_counter = | 595 | 52.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 52.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 52.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 52.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 52.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 52.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 52.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 52.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 52.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 52.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 52.7k | _memory_used_counter = | 606 | 52.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 52.7k | _common_profile->add_info_string("IsColocate", | 608 | 52.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 52.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 52.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 52.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 52.7k | return Status::OK(); | 613 | 52.7k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 104 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 104 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 104 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 104 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 104 | _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 | 104 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 104 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 104 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 104 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 104 | if constexpr (!is_fake_shared) { | 560 | 104 | 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 | 104 | } 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 | 104 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 104 | _dependency = _shared_state->create_source_dependency( | 576 | 104 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 104 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 104 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 104 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 104 | } | 585 | | | 586 | 104 | 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 | 104 | _rows_returned_counter = | 591 | 104 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 104 | _blocks_returned_counter = | 593 | 104 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 104 | _output_block_bytes_counter = | 595 | 104 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 104 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 104 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 104 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 104 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 104 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 104 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 104 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 104 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 104 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 104 | _memory_used_counter = | 606 | 104 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 104 | _common_profile->add_info_string("IsColocate", | 608 | 104 | std::to_string(_parent->is_colocated_operator())); | 609 | 104 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 104 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 104 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 104 | return Status::OK(); | 613 | 104 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 715k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 715k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 715k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 715k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 715k | _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 | 715k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 715k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 715k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 715k | 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 | 715k | 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 | 715k | _rows_returned_counter = | 591 | 715k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 715k | _blocks_returned_counter = | 593 | 715k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 715k | _output_block_bytes_counter = | 595 | 715k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 715k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 715k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 715k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 715k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 715k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 715k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 715k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 715k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 715k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 715k | _memory_used_counter = | 606 | 715k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 715k | _common_profile->add_info_string("IsColocate", | 608 | 715k | std::to_string(_parent->is_colocated_operator())); | 609 | 715k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 715k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 715k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 715k | return Status::OK(); | 613 | 715k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 50.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 50.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 50.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 50.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 50.7k | _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 | 50.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 50.7k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 50.7k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 50.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 50.7k | if constexpr (!is_fake_shared) { | 560 | 50.7k | 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 | 50.7k | } 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 | 2.20k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 2.20k | _dependency = _shared_state->create_source_dependency( | 576 | 2.20k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 2.20k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 2.20k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 48.5k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 48.5k | } | 584 | 50.7k | } | 585 | | | 586 | 50.7k | 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 | 50.7k | _rows_returned_counter = | 591 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 50.7k | _blocks_returned_counter = | 593 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 50.7k | _output_block_bytes_counter = | 595 | 50.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 50.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 50.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 50.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 50.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 50.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 50.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 50.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 50.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 50.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 50.7k | _memory_used_counter = | 606 | 50.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 50.7k | _common_profile->add_info_string("IsColocate", | 608 | 50.7k | std::to_string(_parent->is_colocated_operator())); | 609 | 50.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 50.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 50.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 50.7k | return Status::OK(); | 613 | 50.7k | } |
_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 | 4.20k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 4.20k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 4.20k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 4.20k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 4.20k | _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.20k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 4.20k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 4.20k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 4.20k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 4.20k | if constexpr (!is_fake_shared) { | 560 | 4.20k | 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.20k | } 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.20k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 4.20k | _dependency = _shared_state->create_source_dependency( | 576 | 4.20k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 4.20k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 4.20k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 4.20k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 2 | } | 584 | 4.20k | } | 585 | | | 586 | 4.20k | 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.20k | _rows_returned_counter = | 591 | 4.20k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 4.20k | _blocks_returned_counter = | 593 | 4.20k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 4.20k | _output_block_bytes_counter = | 595 | 4.20k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 4.20k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 4.20k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 4.20k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 4.20k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 4.20k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 4.20k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 4.20k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 4.20k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 4.20k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 4.20k | _memory_used_counter = | 606 | 4.20k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 4.20k | _common_profile->add_info_string("IsColocate", | 608 | 4.20k | std::to_string(_parent->is_colocated_operator())); | 609 | 4.20k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 4.20k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 4.20k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 4.20k | return Status::OK(); | 613 | 4.20k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 490 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 490 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 490 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 490 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 490 | _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 | 490 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 490 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 490 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 490 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 490 | if constexpr (!is_fake_shared) { | 560 | 490 | 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 | 492 | } 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 | 492 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 492 | _dependency = _shared_state->create_source_dependency( | 576 | 492 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 492 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 492 | _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 | 490 | } | 585 | | | 586 | 490 | 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 | 490 | _rows_returned_counter = | 591 | 490 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 490 | _blocks_returned_counter = | 593 | 490 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 490 | _output_block_bytes_counter = | 595 | 490 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 490 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 490 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 490 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 490 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 490 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 490 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 490 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 490 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 490 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 490 | _memory_used_counter = | 606 | 490 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 490 | _common_profile->add_info_string("IsColocate", | 608 | 490 | std::to_string(_parent->is_colocated_operator())); | 609 | 490 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 490 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 490 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 490 | return Status::OK(); | 613 | 490 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 1.05k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 1.05k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 1.05k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 1.05k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 1.05k | _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 | 1.05k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 1.05k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 1.05k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 1.05k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 1.05k | if constexpr (!is_fake_shared) { | 560 | 1.05k | 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 | 1.05k | } 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 | 1.04k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 1.04k | _dependency = _shared_state->create_source_dependency( | 576 | 1.04k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 1.04k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 1.04k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 1.04k | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 8 | } | 584 | 1.05k | } | 585 | | | 586 | 1.05k | 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 | 1.05k | _rows_returned_counter = | 591 | 1.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 1.05k | _blocks_returned_counter = | 593 | 1.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 1.05k | _output_block_bytes_counter = | 595 | 1.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1.05k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 1.05k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 1.05k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 1.05k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 1.05k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 1.05k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 1.05k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 1.05k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 1.05k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 1.05k | _memory_used_counter = | 606 | 1.05k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 1.05k | _common_profile->add_info_string("IsColocate", | 608 | 1.05k | std::to_string(_parent->is_colocated_operator())); | 609 | 1.05k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 1.05k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 1.05k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 1.05k | return Status::OK(); | 613 | 1.05k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 441k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 441k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 441k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 441k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 441k | _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 | 441k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 441k | _operator_profile->add_child(_common_profile.get(), true); | 557 | 441k | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 441k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 441k | if constexpr (!is_fake_shared) { | 560 | 441k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 561 | 435k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 562 | 435k | .first.get() | 563 | 435k | ->template cast<SharedStateArg>(); | 564 | | | 565 | 435k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 566 | 435k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 567 | 435k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 568 | 435k | } 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 | 5.63k | } else { | 580 | 5.63k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | 5.63k | DCHECK(false); | 582 | 5.63k | } | 583 | 5.63k | } | 584 | 441k | } | 585 | | | 586 | 441k | 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 | 441k | _rows_returned_counter = | 591 | 441k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 441k | _blocks_returned_counter = | 593 | 441k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 441k | _output_block_bytes_counter = | 595 | 441k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 441k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 441k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 441k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 441k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 441k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 441k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 441k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 441k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 441k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 441k | _memory_used_counter = | 606 | 441k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 441k | _common_profile->add_info_string("IsColocate", | 608 | 441k | std::to_string(_parent->is_colocated_operator())); | 609 | 441k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 441k | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 441k | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 441k | return Status::OK(); | 613 | 441k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 548 | 164 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 549 | 164 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 550 | 164 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 551 | 164 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 552 | 164 | _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 | 164 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 556 | 164 | _operator_profile->add_child(_common_profile.get(), true); | 557 | 164 | _operator_profile->add_child(_custom_profile.get(), true); | 558 | 164 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 559 | 164 | if constexpr (!is_fake_shared) { | 560 | 164 | 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 | 164 | } 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 | 164 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 574 | | | 575 | 164 | _dependency = _shared_state->create_source_dependency( | 576 | 164 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 577 | 164 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 578 | 164 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 579 | 164 | } else { | 580 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 581 | | DCHECK(false); | 582 | | } | 583 | 0 | } | 584 | 164 | } | 585 | | | 586 | 164 | 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 | 164 | _rows_returned_counter = | 591 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 592 | 164 | _blocks_returned_counter = | 593 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 594 | 164 | _output_block_bytes_counter = | 595 | 164 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 164 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 597 | 164 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 598 | 164 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 599 | 164 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 600 | 164 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 601 | 164 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 602 | 164 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 603 | 164 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 604 | 164 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 605 | 164 | _memory_used_counter = | 606 | 164 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 607 | 164 | _common_profile->add_info_string("IsColocate", | 608 | 164 | std::to_string(_parent->is_colocated_operator())); | 609 | 164 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 610 | 164 | _common_profile->add_info_string("FollowedByShuffledOperator", | 611 | 164 | std::to_string(_parent->followed_by_shuffled_operator())); | 612 | 164 | return Status::OK(); | 613 | 164 | } |
|
614 | | |
615 | | template <typename SharedStateArg> |
616 | 1.50M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
617 | 1.50M | _conjuncts.resize(_parent->_conjuncts.size()); |
618 | 1.77M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 269k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 269k | } |
621 | 1.50M | if (_parent->has_projection()) { |
622 | 326k | const auto& projection = *_parent->_projection; |
623 | 326k | _projections.resize(projection.projections.size()); |
624 | 2.03M | for (size_t i = 0; i < _projections.size(); i++) { |
625 | 1.70M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); |
626 | 1.70M | } |
627 | 326k | _intermediate_projections.resize(projection.intermediate_projections.size()); |
628 | 333k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { |
629 | 7.33k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); |
630 | 46.3k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { |
631 | 38.9k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( |
632 | 38.9k | state, _intermediate_projections[i][j])); |
633 | 38.9k | } |
634 | 7.33k | } |
635 | 326k | } |
636 | 1.50M | return Status::OK(); |
637 | 1.50M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 60.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 60.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 61.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 758 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 758 | } | 621 | 60.2k | if (_parent->has_projection()) { | 622 | 60.2k | const auto& projection = *_parent->_projection; | 623 | 60.2k | _projections.resize(projection.projections.size()); | 624 | 282k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 221k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 221k | } | 627 | 60.2k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 61.2k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 972 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 7.83k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 6.86k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 6.86k | state, _intermediate_projections[i][j])); | 633 | 6.86k | } | 634 | 972 | } | 635 | 60.2k | } | 636 | 60.2k | return Status::OK(); | 637 | 60.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | 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 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 160k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 160k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 160k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 160k | if (_parent->has_projection()) { | 622 | 74 | const auto& projection = *_parent->_projection; | 623 | 74 | _projections.resize(projection.projections.size()); | 624 | 366 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 292 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 292 | } | 627 | 74 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 74 | 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 | 74 | } | 636 | 160k | return Status::OK(); | 637 | 160k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_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_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 4.83k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 4.83k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 4.91k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 76 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 76 | } | 621 | 4.83k | if (_parent->has_projection()) { | 622 | 4.83k | const auto& projection = *_parent->_projection; | 623 | 4.83k | _projections.resize(projection.projections.size()); | 624 | 22.2k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 17.4k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 17.4k | } | 627 | 4.83k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.85k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 13 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 100 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 87 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 87 | state, _intermediate_projections[i][j])); | 633 | 87 | } | 634 | 13 | } | 635 | 4.83k | } | 636 | 4.83k | return Status::OK(); | 637 | 4.83k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 7.51k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 7.51k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 8.28k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 768 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 768 | } | 621 | 7.51k | if (_parent->has_projection()) { | 622 | 4.35k | const auto& projection = *_parent->_projection; | 623 | 4.35k | _projections.resize(projection.projections.size()); | 624 | 17.4k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 13.0k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 13.0k | } | 627 | 4.35k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 4.44k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 91 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 686 | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 595 | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 595 | state, _intermediate_projections[i][j])); | 633 | 595 | } | 634 | 91 | } | 635 | 4.35k | } | 636 | 7.51k | return Status::OK(); | 637 | 7.51k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 82.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 82.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 84.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.55k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.55k | } | 621 | 82.7k | if (_parent->has_projection()) { | 622 | 26.6k | const auto& projection = *_parent->_projection; | 623 | 26.6k | _projections.resize(projection.projections.size()); | 624 | 238k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 211k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 211k | } | 627 | 26.6k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 26.8k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 179 | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 1.26k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 1.08k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 1.08k | state, _intermediate_projections[i][j])); | 633 | 1.08k | } | 634 | 179 | } | 635 | 26.6k | } | 636 | 82.7k | return Status::OK(); | 637 | 82.7k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 52.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 52.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 52.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 10 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 10 | } | 621 | 52.7k | if (_parent->has_projection()) { | 622 | 121 | const auto& projection = *_parent->_projection; | 623 | 121 | _projections.resize(projection.projections.size()); | 624 | 388 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 267 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 267 | } | 627 | 121 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 121 | 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 | 121 | } | 636 | 52.7k | return Status::OK(); | 637 | 52.7k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 108 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 108 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 108 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 108 | if (_parent->has_projection()) { | 622 | 88 | const auto& projection = *_parent->_projection; | 623 | 88 | _projections.resize(projection.projections.size()); | 624 | 264 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 176 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 176 | } | 627 | 88 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 88 | 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 | 88 | } | 636 | 108 | return Status::OK(); | 637 | 108 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 637k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 637k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 903k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 266k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 266k | } | 621 | 637k | if (_parent->has_projection()) { | 622 | 220k | const auto& projection = *_parent->_projection; | 623 | 220k | _projections.resize(projection.projections.size()); | 624 | 1.37M | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 1.15M | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 1.15M | } | 627 | 220k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 226k | for (int i = 0; i < projection.intermediate_projections.size(); i++) { | 629 | 6.07k | _intermediate_projections[i].resize(projection.intermediate_projections[i].size()); | 630 | 36.4k | for (int j = 0; j < projection.intermediate_projections[i].size(); j++) { | 631 | 30.3k | RETURN_IF_ERROR(projection.intermediate_projections[i][j]->clone( | 632 | 30.3k | state, _intermediate_projections[i][j])); | 633 | 30.3k | } | 634 | 6.07k | } | 635 | 220k | } | 636 | 637k | return Status::OK(); | 637 | 637k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 50.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 50.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 50.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 50.9k | if (_parent->has_projection()) { | 622 | 9.69k | const auto& projection = *_parent->_projection; | 623 | 9.69k | _projections.resize(projection.projections.size()); | 624 | 94.8k | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 85.2k | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 85.2k | } | 627 | 9.69k | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 9.69k | 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 | 9.69k | } | 636 | 50.9k | return Status::OK(); | 637 | 50.9k | } |
_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 | 4.18k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 4.18k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 4.71k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 528 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 528 | } | 621 | 4.18k | 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 | 4.18k | return Status::OK(); | 637 | 4.18k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 494 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 494 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 494 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 494 | 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 | 494 | return Status::OK(); | 637 | 494 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 1.04k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 1.04k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 1.04k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 1.04k | if (_parent->has_projection()) { | 622 | 60 | const auto& projection = *_parent->_projection; | 623 | 60 | _projections.resize(projection.projections.size()); | 624 | 228 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 168 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 168 | } | 627 | 60 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 60 | 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 | 60 | } | 636 | 1.04k | return Status::OK(); | 637 | 1.04k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 444k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 444k | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 444k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 444k | 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 | 444k | return Status::OK(); | 637 | 444k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 616 | 164 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 617 | 164 | _conjuncts.resize(_parent->_conjuncts.size()); | 618 | 171 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 164 | if (_parent->has_projection()) { | 622 | 161 | const auto& projection = *_parent->_projection; | 623 | 161 | _projections.resize(projection.projections.size()); | 624 | 480 | for (size_t i = 0; i < _projections.size(); i++) { | 625 | 319 | RETURN_IF_ERROR(projection.projections[i]->clone(state, _projections[i])); | 626 | 319 | } | 627 | 161 | _intermediate_projections.resize(projection.intermediate_projections.size()); | 628 | 164 | 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 | 161 | } | 636 | 164 | return Status::OK(); | 637 | 164 | } |
|
638 | | |
639 | | template <typename SharedStateArg> |
640 | 5.36k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
641 | 5.36k | if (_terminated) { |
642 | 0 | return Status::OK(); |
643 | 0 | } |
644 | 5.36k | _terminated = true; |
645 | 5.36k | return Status::OK(); |
646 | 5.36k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 485 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 485 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 485 | _terminated = true; | 645 | 485 | return Status::OK(); | 646 | 485 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 10 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 10 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 10 | _terminated = true; | 645 | 10 | return Status::OK(); | 646 | 10 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 68 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 68 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 68 | _terminated = true; | 645 | 68 | return Status::OK(); | 646 | 68 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 96 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 96 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 96 | _terminated = true; | 645 | 96 | return Status::OK(); | 646 | 96 | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_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 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 3.91k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 3.91k | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 3.91k | _terminated = true; | 645 | 3.91k | return Status::OK(); | 646 | 3.91k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 16 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 16 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 16 | _terminated = true; | 645 | 16 | return Status::OK(); | 646 | 16 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 2 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 2 | _terminated = true; | 645 | 2 | return Status::OK(); | 646 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 736 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 736 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 736 | _terminated = true; | 645 | 736 | return Status::OK(); | 646 | 736 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 640 | 34 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 641 | 34 | if (_terminated) { | 642 | 0 | return Status::OK(); | 643 | 0 | } | 644 | 34 | _terminated = true; | 645 | 34 | return Status::OK(); | 646 | 34 | } |
|
647 | | |
648 | | template <typename SharedStateArg> |
649 | 1.77M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
650 | 1.77M | if (_closed) { |
651 | 184k | return Status::OK(); |
652 | 184k | } |
653 | 1.58M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
654 | 868k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
655 | 868k | } |
656 | 1.58M | _closed = true; |
657 | 1.58M | return Status::OK(); |
658 | 1.77M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 60.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 60.2k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 60.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 60.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 60.2k | } | 656 | 60.2k | _closed = true; | 657 | 60.2k | return Status::OK(); | 658 | 60.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4 | } | 656 | 4 | _closed = true; | 657 | 4 | return Status::OK(); | 658 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 317k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 317k | if (_closed) { | 651 | 159k | return Status::OK(); | 652 | 159k | } | 653 | 158k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 158k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 158k | } | 656 | 158k | _closed = true; | 657 | 158k | return Status::OK(); | 658 | 317k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 25 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 25 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 25 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 25 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 25 | } | 656 | 25 | _closed = true; | 657 | 25 | return Status::OK(); | 658 | 25 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 4.83k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4.83k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4.83k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4.83k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4.83k | } | 656 | 4.83k | _closed = true; | 657 | 4.83k | return Status::OK(); | 658 | 4.83k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 15.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 15.1k | if (_closed) { | 651 | 7.68k | return Status::OK(); | 652 | 7.68k | } | 653 | 7.49k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 7.49k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 7.49k | } | 656 | 7.49k | _closed = true; | 657 | 7.49k | return Status::OK(); | 658 | 15.1k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 82.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 82.5k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 82.5k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 82.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 82.5k | } | 656 | 82.5k | _closed = true; | 657 | 82.5k | return Status::OK(); | 658 | 82.5k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 52.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 52.5k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 52.5k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 52.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 52.5k | } | 656 | 52.5k | _closed = true; | 657 | 52.5k | return Status::OK(); | 658 | 52.5k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 102 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 102 | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 102 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 102 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 102 | } | 656 | 102 | _closed = true; | 657 | 102 | return Status::OK(); | 658 | 102 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 737k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 737k | if (_closed) { | 651 | 15.9k | return Status::OK(); | 652 | 15.9k | } | 653 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | | } | 656 | 721k | _closed = true; | 657 | 721k | return Status::OK(); | 658 | 737k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 50.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 50.9k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 50.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 50.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 50.9k | } | 656 | 50.9k | _closed = true; | 657 | 50.9k | return Status::OK(); | 658 | 50.9k | } |
_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 | 4.16k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 4.16k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 4.16k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 4.16k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 4.16k | } | 656 | 4.16k | _closed = true; | 657 | 4.16k | return Status::OK(); | 658 | 4.16k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 780 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 780 | if (_closed) { | 651 | 390 | return Status::OK(); | 652 | 390 | } | 653 | 390 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 390 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 390 | } | 656 | 390 | _closed = true; | 657 | 390 | return Status::OK(); | 658 | 780 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 2.56k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 2.56k | if (_closed) { | 651 | 1.51k | return Status::OK(); | 652 | 1.51k | } | 653 | 1.04k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 1.04k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 1.04k | } | 656 | 1.04k | _closed = true; | 657 | 1.04k | return Status::OK(); | 658 | 2.56k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 445k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 445k | if (_closed) { | 651 | 0 | return Status::OK(); | 652 | 0 | } | 653 | 445k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 445k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 445k | } | 656 | 445k | _closed = true; | 657 | 445k | return Status::OK(); | 658 | 445k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 649 | 322 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 650 | 322 | if (_closed) { | 651 | 167 | return Status::OK(); | 652 | 167 | } | 653 | 155 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 654 | 155 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 655 | 155 | } | 656 | 155 | _closed = true; | 657 | 155 | return Status::OK(); | 658 | 322 | } |
|
659 | | |
660 | | template <typename SharedState> |
661 | 1.33M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
662 | | // create profile |
663 | 1.33M | _operator_profile = |
664 | 1.33M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
665 | 1.33M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
666 | 1.33M | _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.33M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
672 | 1.33M | _operator_profile->add_child(_common_profile, true); |
673 | 1.33M | _operator_profile->add_child(_custom_profile, true); |
674 | | |
675 | 1.33M | _operator_profile->set_metadata(_parent->node_id()); |
676 | 1.33M | _wait_for_finish_dependency_timer = |
677 | 1.33M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
678 | 1.33M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
679 | 1.33M | if constexpr (!is_fake_shared) { |
680 | 975k | if (info.shared_state_map.find(_parent->dests_id().front()) != |
681 | 975k | info.shared_state_map.end()) { |
682 | 247k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
683 | 179k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
684 | 179k | } |
685 | 247k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
686 | 247k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
687 | 247k | ? 0 |
688 | 247k | : info.task_idx] |
689 | 247k | .get(); |
690 | 247k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
691 | 728k | } else { |
692 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
693 | 18.4E | DCHECK(false); |
694 | 18.4E | } |
695 | 728k | _shared_state = info.shared_state->template cast<SharedState>(); |
696 | 728k | _dependency = _shared_state->create_sink_dependency( |
697 | 728k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
698 | 728k | } |
699 | 975k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
700 | 975k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
701 | 975k | } |
702 | | |
703 | 1.33M | 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.33M | _rows_input_counter = |
708 | 1.33M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
709 | 1.33M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
710 | 1.33M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
711 | 1.33M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
712 | 1.33M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
713 | 1.33M | _memory_used_counter = |
714 | 1.33M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
715 | 1.33M | _common_profile->add_info_string("IsColocate", |
716 | 1.33M | std::to_string(_parent->is_colocated_operator())); |
717 | 1.33M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
718 | 1.33M | _common_profile->add_info_string("FollowedByShuffledOperator", |
719 | 1.33M | std::to_string(_parent->followed_by_shuffled_operator())); |
720 | 1.33M | return Status::OK(); |
721 | 1.33M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 108k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 108k | _operator_profile = | 664 | 108k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 108k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 108k | _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 | 108k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 108k | _operator_profile->add_child(_common_profile, true); | 673 | 108k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 108k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 108k | _wait_for_finish_dependency_timer = | 677 | 108k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 108k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 108k | if constexpr (!is_fake_shared) { | 680 | 108k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 108k | 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 | 14.7k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 14.7k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 14.7k | ? 0 | 688 | 14.7k | : info.task_idx] | 689 | 14.7k | .get(); | 690 | 14.7k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 93.2k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 93.2k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 93.2k | _dependency = _shared_state->create_sink_dependency( | 697 | 93.2k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 93.2k | } | 699 | 108k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 108k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 108k | } | 702 | | | 703 | 108k | 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 | 108k | _rows_input_counter = | 708 | 108k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 108k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 108k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 108k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 108k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 108k | _memory_used_counter = | 714 | 108k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 108k | _common_profile->add_info_string("IsColocate", | 716 | 108k | std::to_string(_parent->is_colocated_operator())); | 717 | 108k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 108k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 108k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 108k | return Status::OK(); | 721 | 108k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2 | _operator_profile = | 664 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2 | _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 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2 | _operator_profile->add_child(_common_profile, true); | 673 | 2 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2 | _wait_for_finish_dependency_timer = | 677 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2 | if constexpr (!is_fake_shared) { | 680 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2 | 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 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2 | _dependency = _shared_state->create_sink_dependency( | 697 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2 | } | 699 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2 | } | 702 | | | 703 | 2 | 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 | _rows_input_counter = | 708 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2 | _memory_used_counter = | 714 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2 | _common_profile->add_info_string("IsColocate", | 716 | 2 | std::to_string(_parent->is_colocated_operator())); | 717 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2 | return Status::OK(); | 721 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 159k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 159k | _operator_profile = | 664 | 159k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 159k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 159k | _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 | 159k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 159k | _operator_profile->add_child(_common_profile, true); | 673 | 159k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 159k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 159k | _wait_for_finish_dependency_timer = | 677 | 159k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 159k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 159k | if constexpr (!is_fake_shared) { | 680 | 159k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 159k | 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 | 159k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 159k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 159k | _dependency = _shared_state->create_sink_dependency( | 697 | 159k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 159k | } | 699 | 159k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 159k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 159k | } | 702 | | | 703 | 159k | 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 | 159k | _rows_input_counter = | 708 | 159k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 159k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 159k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 159k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 159k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 159k | _memory_used_counter = | 714 | 159k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 159k | _common_profile->add_info_string("IsColocate", | 716 | 159k | std::to_string(_parent->is_colocated_operator())); | 717 | 159k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 159k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 159k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 159k | return Status::OK(); | 721 | 159k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 32 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 32 | _operator_profile = | 664 | 32 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 32 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 32 | _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 | 32 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 32 | _operator_profile->add_child(_common_profile, true); | 673 | 32 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 32 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 32 | _wait_for_finish_dependency_timer = | 677 | 32 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 32 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 32 | if constexpr (!is_fake_shared) { | 680 | 32 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 32 | 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 | 32 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 32 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 32 | _dependency = _shared_state->create_sink_dependency( | 697 | 32 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 32 | } | 699 | 32 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 32 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 32 | } | 702 | | | 703 | 32 | 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 | 32 | _rows_input_counter = | 708 | 32 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 32 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 32 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 32 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 32 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 32 | _memory_used_counter = | 714 | 32 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 32 | _common_profile->add_info_string("IsColocate", | 716 | 32 | std::to_string(_parent->is_colocated_operator())); | 717 | 32 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 32 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 32 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 32 | return Status::OK(); | 721 | 32 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 4.84k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 4.84k | _operator_profile = | 664 | 4.84k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 4.84k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 4.84k | _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 | 4.84k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 4.84k | _operator_profile->add_child(_common_profile, true); | 673 | 4.84k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 4.84k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 4.84k | _wait_for_finish_dependency_timer = | 677 | 4.84k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 4.84k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 4.84k | if constexpr (!is_fake_shared) { | 680 | 4.84k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 4.84k | 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 | 4.84k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 4.84k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 4.84k | _dependency = _shared_state->create_sink_dependency( | 697 | 4.84k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 4.84k | } | 699 | 4.84k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 4.84k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 4.84k | } | 702 | | | 703 | 4.84k | 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 | 4.84k | _rows_input_counter = | 708 | 4.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 4.84k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 4.84k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 4.84k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 4.84k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 4.84k | _memory_used_counter = | 714 | 4.84k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 4.84k | _common_profile->add_info_string("IsColocate", | 716 | 4.84k | std::to_string(_parent->is_colocated_operator())); | 717 | 4.84k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 4.84k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 4.84k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 4.84k | return Status::OK(); | 721 | 4.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 7.50k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 7.50k | _operator_profile = | 664 | 7.50k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 7.50k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 7.50k | _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.50k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 7.50k | _operator_profile->add_child(_common_profile, true); | 673 | 7.50k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 7.50k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 7.50k | _wait_for_finish_dependency_timer = | 677 | 7.50k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 7.50k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 7.50k | if constexpr (!is_fake_shared) { | 680 | 7.50k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 7.50k | 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.50k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 7.50k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 7.50k | _dependency = _shared_state->create_sink_dependency( | 697 | 7.50k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 7.50k | } | 699 | 7.50k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 7.50k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 7.50k | } | 702 | | | 703 | 7.50k | 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.50k | _rows_input_counter = | 708 | 7.50k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 7.50k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 7.50k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 7.50k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 7.50k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 7.50k | _memory_used_counter = | 714 | 7.50k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 7.50k | _common_profile->add_info_string("IsColocate", | 716 | 7.50k | std::to_string(_parent->is_colocated_operator())); | 717 | 7.50k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 7.50k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 7.50k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 7.50k | return Status::OK(); | 721 | 7.50k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 82.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 82.6k | _operator_profile = | 664 | 82.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 82.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 82.6k | _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 | 82.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 82.6k | _operator_profile->add_child(_common_profile, true); | 673 | 82.6k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 82.6k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 82.6k | _wait_for_finish_dependency_timer = | 677 | 82.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 82.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 82.6k | if constexpr (!is_fake_shared) { | 680 | 82.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 82.6k | 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 | 82.6k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 82.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 82.6k | _dependency = _shared_state->create_sink_dependency( | 697 | 82.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 82.6k | } | 699 | 82.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 82.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 82.6k | } | 702 | | | 703 | 82.6k | 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 | 82.6k | _rows_input_counter = | 708 | 82.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 82.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 82.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 82.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 82.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 82.6k | _memory_used_counter = | 714 | 82.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 82.6k | _common_profile->add_info_string("IsColocate", | 716 | 82.6k | std::to_string(_parent->is_colocated_operator())); | 717 | 82.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 82.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 82.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 82.6k | return Status::OK(); | 721 | 82.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 52.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 52.7k | _operator_profile = | 664 | 52.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 52.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 52.7k | _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 | 52.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 52.7k | _operator_profile->add_child(_common_profile, true); | 673 | 52.7k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 52.7k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 52.7k | _wait_for_finish_dependency_timer = | 677 | 52.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 52.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 52.7k | if constexpr (!is_fake_shared) { | 680 | 52.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 52.7k | 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 | 52.6k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 52.6k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 52.6k | ? 0 | 688 | 52.6k | : info.task_idx] | 689 | 52.6k | .get(); | 690 | 52.6k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 691 | 52.6k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 6 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 6 | _dependency = _shared_state->create_sink_dependency( | 697 | 6 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 6 | } | 699 | 52.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 52.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 52.7k | } | 702 | | | 703 | 52.7k | 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 | 52.7k | _rows_input_counter = | 708 | 52.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 52.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 52.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 52.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 52.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 52.7k | _memory_used_counter = | 714 | 52.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 52.7k | _common_profile->add_info_string("IsColocate", | 716 | 52.7k | std::to_string(_parent->is_colocated_operator())); | 717 | 52.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 52.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 52.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 52.7k | return Status::OK(); | 721 | 52.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 114 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 114 | _operator_profile = | 664 | 114 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 114 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 114 | _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 | 114 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 114 | _operator_profile->add_child(_common_profile, true); | 673 | 114 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 114 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 114 | _wait_for_finish_dependency_timer = | 677 | 114 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 114 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 114 | if constexpr (!is_fake_shared) { | 680 | 114 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 114 | 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 | 114 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 114 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 114 | _dependency = _shared_state->create_sink_dependency( | 697 | 114 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 114 | } | 699 | 114 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 114 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 114 | } | 702 | | | 703 | 114 | 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 | 114 | _rows_input_counter = | 708 | 114 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 114 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 114 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 114 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 114 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 114 | _memory_used_counter = | 714 | 114 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 114 | _common_profile->add_info_string("IsColocate", | 716 | 114 | std::to_string(_parent->is_colocated_operator())); | 717 | 114 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 114 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 114 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 114 | return Status::OK(); | 721 | 114 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 361k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 361k | _operator_profile = | 664 | 361k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 361k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 361k | _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 | 361k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 361k | _operator_profile->add_child(_common_profile, true); | 673 | 361k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 361k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 361k | _wait_for_finish_dependency_timer = | 677 | 361k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 361k | 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 | 361k | 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 | 361k | _rows_input_counter = | 708 | 361k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 361k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 361k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 361k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 361k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 361k | _memory_used_counter = | 714 | 361k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 361k | _common_profile->add_info_string("IsColocate", | 716 | 361k | std::to_string(_parent->is_colocated_operator())); | 717 | 361k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 361k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 361k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 361k | return Status::OK(); | 721 | 361k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 4.59k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 4.59k | _operator_profile = | 664 | 4.59k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 4.59k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 4.59k | _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 | 4.59k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 4.59k | _operator_profile->add_child(_common_profile, true); | 673 | 4.59k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 4.59k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 4.59k | _wait_for_finish_dependency_timer = | 677 | 4.59k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 4.59k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 4.59k | if constexpr (!is_fake_shared) { | 680 | 4.59k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 4.59k | 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 | 4.59k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 4.59k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 4.59k | _dependency = _shared_state->create_sink_dependency( | 697 | 4.59k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 4.59k | } | 699 | 4.59k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 4.59k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 4.59k | } | 702 | | | 703 | 4.59k | 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 | 4.59k | _rows_input_counter = | 708 | 4.59k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 4.59k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 4.59k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 4.59k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 4.59k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 4.59k | _memory_used_counter = | 714 | 4.59k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 4.59k | _common_profile->add_info_string("IsColocate", | 716 | 4.59k | std::to_string(_parent->is_colocated_operator())); | 717 | 4.59k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 4.59k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 4.59k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 4.59k | return Status::OK(); | 721 | 4.59k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 493 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 493 | _operator_profile = | 664 | 493 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 493 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 493 | _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 | 493 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 493 | _operator_profile->add_child(_common_profile, true); | 673 | 493 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 493 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 493 | _wait_for_finish_dependency_timer = | 677 | 493 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 493 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 493 | if constexpr (!is_fake_shared) { | 680 | 493 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 493 | 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 | 493 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 493 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 493 | _dependency = _shared_state->create_sink_dependency( | 697 | 493 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 493 | } | 699 | 493 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 493 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 493 | } | 702 | | | 703 | 493 | 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 | 493 | _rows_input_counter = | 708 | 493 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 493 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 493 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 493 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 493 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 493 | _memory_used_counter = | 714 | 493 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 493 | _common_profile->add_info_string("IsColocate", | 716 | 493 | std::to_string(_parent->is_colocated_operator())); | 717 | 493 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 493 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 493 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 493 | return Status::OK(); | 721 | 493 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 1.60k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 1.60k | _operator_profile = | 664 | 1.60k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 1.60k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 1.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 | 1.60k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 1.60k | _operator_profile->add_child(_common_profile, true); | 673 | 1.60k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 1.60k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 1.60k | _wait_for_finish_dependency_timer = | 677 | 1.60k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 1.60k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 1.60k | if constexpr (!is_fake_shared) { | 680 | 1.60k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 1.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 | 1.60k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 1.60k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 1.60k | _dependency = _shared_state->create_sink_dependency( | 697 | 1.60k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 1.60k | } | 699 | 1.60k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 1.60k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 1.60k | } | 702 | | | 703 | 1.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 | 1.60k | _rows_input_counter = | 708 | 1.60k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 1.60k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 1.60k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 1.60k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 1.60k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 1.60k | _memory_used_counter = | 714 | 1.60k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 1.60k | _common_profile->add_info_string("IsColocate", | 716 | 1.60k | std::to_string(_parent->is_colocated_operator())); | 717 | 1.60k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 1.60k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 1.60k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 1.60k | return Status::OK(); | 721 | 1.60k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 2.28k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 2.28k | _operator_profile = | 664 | 2.28k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 2.28k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 2.28k | _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.28k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 2.28k | _operator_profile->add_child(_common_profile, true); | 673 | 2.28k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 2.28k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 2.28k | _wait_for_finish_dependency_timer = | 677 | 2.28k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 2.28k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 2.28k | if constexpr (!is_fake_shared) { | 680 | 2.28k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 2.28k | 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.28k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 2.28k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 2.28k | _dependency = _shared_state->create_sink_dependency( | 697 | 2.28k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 2.28k | } | 699 | 2.28k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 2.28k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 2.28k | } | 702 | | | 703 | 2.28k | 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.28k | _rows_input_counter = | 708 | 2.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 2.28k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 2.28k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 2.28k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 2.28k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 2.28k | _memory_used_counter = | 714 | 2.28k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 2.28k | _common_profile->add_info_string("IsColocate", | 716 | 2.28k | std::to_string(_parent->is_colocated_operator())); | 717 | 2.28k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 2.28k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 2.28k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 2.28k | return Status::OK(); | 721 | 2.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 179k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 179k | _operator_profile = | 664 | 179k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 179k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 179k | _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 | 179k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 179k | _operator_profile->add_child(_common_profile, true); | 673 | 179k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 179k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 179k | _wait_for_finish_dependency_timer = | 677 | 179k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 179k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 179k | if constexpr (!is_fake_shared) { | 680 | 179k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 179k | info.shared_state_map.end()) { | 682 | 179k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 683 | 179k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 684 | 179k | } | 685 | 179k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 686 | 179k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 687 | 179k | ? 0 | 688 | 179k | : info.task_idx] | 689 | 179k | .get(); | 690 | 179k | _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 | 179k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 179k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 179k | } | 702 | | | 703 | 179k | 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 | 179k | _rows_input_counter = | 708 | 179k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 179k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 179k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 179k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 179k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 179k | _memory_used_counter = | 714 | 179k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 179k | _common_profile->add_info_string("IsColocate", | 716 | 179k | std::to_string(_parent->is_colocated_operator())); | 717 | 179k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 179k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 179k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 179k | return Status::OK(); | 721 | 179k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 661 | 371k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 371k | _operator_profile = | 664 | 371k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 371k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 371k | _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 | 371k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 371k | _operator_profile->add_child(_common_profile, true); | 673 | 371k | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 371k | _operator_profile->set_metadata(_parent->node_id()); | 676 | 371k | _wait_for_finish_dependency_timer = | 677 | 371k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 371k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 371k | if constexpr (!is_fake_shared) { | 680 | 371k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 371k | 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 | 371k | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 371k | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 371k | _dependency = _shared_state->create_sink_dependency( | 697 | 371k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 371k | } | 699 | 371k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 371k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 371k | } | 702 | | | 703 | 371k | 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 | 371k | _rows_input_counter = | 708 | 371k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 371k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 371k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 371k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 371k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 371k | _memory_used_counter = | 714 | 371k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 371k | _common_profile->add_info_string("IsColocate", | 716 | 371k | std::to_string(_parent->is_colocated_operator())); | 717 | 371k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 371k | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 371k | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 371k | return Status::OK(); | 721 | 371k | } |
_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 | 328 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 662 | | // create profile | 663 | 328 | _operator_profile = | 664 | 328 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 665 | 328 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 666 | 328 | _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 | 328 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 672 | 328 | _operator_profile->add_child(_common_profile, true); | 673 | 328 | _operator_profile->add_child(_custom_profile, true); | 674 | | | 675 | 328 | _operator_profile->set_metadata(_parent->node_id()); | 676 | 328 | _wait_for_finish_dependency_timer = | 677 | 328 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 678 | 328 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 679 | 328 | if constexpr (!is_fake_shared) { | 680 | 328 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 681 | 328 | 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 | 328 | } else { | 692 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 693 | | DCHECK(false); | 694 | | } | 695 | 328 | _shared_state = info.shared_state->template cast<SharedState>(); | 696 | 328 | _dependency = _shared_state->create_sink_dependency( | 697 | 328 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 698 | 328 | } | 699 | 328 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 700 | 328 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 701 | 328 | } | 702 | | | 703 | 328 | 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 | 328 | _rows_input_counter = | 708 | 328 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 709 | 328 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 710 | 328 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 711 | 328 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 712 | 328 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 713 | 328 | _memory_used_counter = | 714 | 328 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 715 | 328 | _common_profile->add_info_string("IsColocate", | 716 | 328 | std::to_string(_parent->is_colocated_operator())); | 717 | 328 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 718 | 328 | _common_profile->add_info_string("FollowedByShuffledOperator", | 719 | 328 | std::to_string(_parent->followed_by_shuffled_operator())); | 720 | 328 | return Status::OK(); | 721 | 328 | } |
|
722 | | |
723 | | template <typename SharedState> |
724 | 1.29M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
725 | 1.29M | if (_closed) { |
726 | 2 | return Status::OK(); |
727 | 2 | } |
728 | 1.29M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
729 | 934k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
730 | 934k | } |
731 | 1.29M | _closed = true; |
732 | 1.29M | return Status::OK(); |
733 | 1.29M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 108k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 108k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 108k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 108k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 108k | } | 731 | 108k | _closed = true; | 732 | 108k | return Status::OK(); | 733 | 108k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1 | } | 731 | 1 | _closed = true; | 732 | 1 | return Status::OK(); | 733 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 159k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 159k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 159k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 159k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 159k | } | 731 | 159k | _closed = true; | 732 | 159k | return Status::OK(); | 733 | 159k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 23 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 23 | if (_closed) { | 726 | 2 | return Status::OK(); | 727 | 2 | } | 728 | 21 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 21 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 21 | } | 731 | 21 | _closed = true; | 732 | 21 | return Status::OK(); | 733 | 23 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 4.81k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 4.81k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 4.81k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 4.81k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 4.81k | } | 731 | 4.81k | _closed = true; | 732 | 4.81k | return Status::OK(); | 733 | 4.81k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 7.49k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 7.49k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 7.49k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 7.49k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 7.49k | } | 731 | 7.49k | _closed = true; | 732 | 7.49k | return Status::OK(); | 733 | 7.49k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 82.3k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 82.3k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 82.3k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 82.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 82.3k | } | 731 | 82.3k | _closed = true; | 732 | 82.3k | return Status::OK(); | 733 | 82.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 52.5k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 52.5k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 52.5k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 52.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 52.5k | } | 731 | 52.5k | _closed = true; | 732 | 52.5k | return Status::OK(); | 733 | 52.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 103 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 103 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 103 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 103 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 103 | } | 731 | 103 | _closed = true; | 732 | 103 | return Status::OK(); | 733 | 103 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 364k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 364k | 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 | 364k | _closed = true; | 732 | 364k | return Status::OK(); | 733 | 364k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 4.60k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 4.60k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 4.60k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 4.60k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 4.60k | } | 731 | 4.60k | _closed = true; | 732 | 4.60k | return Status::OK(); | 733 | 4.60k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 388 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 388 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 388 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 388 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 388 | } | 731 | 388 | _closed = true; | 732 | 388 | return Status::OK(); | 733 | 388 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 1.62k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 1.62k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 1.62k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 1.62k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 1.62k | } | 731 | 1.62k | _closed = true; | 732 | 1.62k | return Status::OK(); | 733 | 1.62k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 2.25k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 2.25k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 2.25k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 2.25k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 2.25k | } | 731 | 2.25k | _closed = true; | 732 | 2.25k | return Status::OK(); | 733 | 2.25k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 180k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 180k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 180k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 180k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 180k | } | 731 | 180k | _closed = true; | 732 | 180k | return Status::OK(); | 733 | 180k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 724 | 329k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 329k | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 329k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 329k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 329k | } | 731 | 329k | _closed = true; | 732 | 329k | return Status::OK(); | 733 | 329k | } |
_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 | 328 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 725 | 328 | if (_closed) { | 726 | 0 | return Status::OK(); | 727 | 0 | } | 728 | 328 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 729 | 328 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 730 | 328 | } | 731 | 328 | _closed = true; | 732 | 328 | return Status::OK(); | 733 | 328 | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 3.13k | bool* eos) { |
738 | 3.13k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
739 | 3.12k | return pull(state, block, eos); |
740 | 3.13k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 37 | bool* eos) { | 738 | 37 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 37 | return pull(state, block, eos); | 740 | 37 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 3.09k | bool* eos) { | 738 | 3.09k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 739 | 3.09k | return pull(state, block, eos); | 740 | 3.09k | } |
|
741 | | |
742 | | template <typename LocalStateType> |
743 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
744 | 411k | bool* eos) { |
745 | 411k | auto& local_state = get_local_state(state); |
746 | 411k | if (need_more_input_data(state)) { |
747 | 381k | local_state._child_block->clear_column_data( |
748 | 381k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() |
749 | 381k | .num_materialized_slots()); |
750 | 381k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
751 | 381k | state, local_state._child_block.get(), &local_state._child_eos)); |
752 | 381k | *eos = local_state._child_eos; |
753 | 381k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
754 | 67.2k | return Status::OK(); |
755 | 67.2k | } |
756 | 314k | { |
757 | 314k | SCOPED_TIMER(local_state.exec_time_counter()); |
758 | 314k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
759 | 314k | } |
760 | 314k | } |
761 | | |
762 | 344k | if (!need_more_input_data(state)) { |
763 | 324k | SCOPED_TIMER(local_state.exec_time_counter()); |
764 | 324k | bool new_eos = false; |
765 | 324k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
766 | 324k | if (new_eos) { |
767 | 247k | *eos = true; |
768 | 247k | } else if (!need_more_input_data(state)) { |
769 | 26.1k | *eos = false; |
770 | 26.1k | } |
771 | 324k | } |
772 | 344k | return Status::OK(); |
773 | 344k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 138k | bool* eos) { | 745 | 138k | auto& local_state = get_local_state(state); | 746 | 138k | 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_materialized_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 | 45.4k | return Status::OK(); | 755 | 45.4k | } | 756 | 76.8k | { | 757 | 76.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 76.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 76.8k | } | 760 | 76.8k | } | 761 | | | 762 | 92.6k | if (!need_more_input_data(state)) { | 763 | 92.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 92.6k | bool new_eos = false; | 765 | 92.6k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 92.6k | if (new_eos) { | 767 | 36.0k | *eos = true; | 768 | 56.6k | } else if (!need_more_input_data(state)) { | 769 | 11.4k | *eos = false; | 770 | 11.4k | } | 771 | 92.6k | } | 772 | 92.6k | return Status::OK(); | 773 | 92.6k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 4.01k | bool* eos) { | 745 | 4.01k | auto& local_state = get_local_state(state); | 746 | 4.01k | if (need_more_input_data(state)) { | 747 | 2.23k | local_state._child_block->clear_column_data( | 748 | 2.23k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 2.23k | .num_materialized_slots()); | 750 | 2.23k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 2.23k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 2.23k | *eos = local_state._child_eos; | 753 | 2.23k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 291 | return Status::OK(); | 755 | 291 | } | 756 | 1.94k | { | 757 | 1.94k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.94k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.94k | } | 760 | 1.94k | } | 761 | | | 762 | 3.74k | if (!need_more_input_data(state)) { | 763 | 3.74k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 3.74k | bool new_eos = false; | 765 | 3.74k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 3.74k | if (new_eos) { | 767 | 1.46k | *eos = true; | 768 | 2.27k | } else if (!need_more_input_data(state)) { | 769 | 1.77k | *eos = false; | 770 | 1.77k | } | 771 | 3.74k | } | 772 | 3.72k | return Status::OK(); | 773 | 3.72k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 1.83k | bool* eos) { | 745 | 1.83k | auto& local_state = get_local_state(state); | 746 | 1.83k | if (need_more_input_data(state)) { | 747 | 1.83k | local_state._child_block->clear_column_data( | 748 | 1.83k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 1.83k | .num_materialized_slots()); | 750 | 1.83k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 1.83k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 1.83k | *eos = local_state._child_eos; | 753 | 1.83k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 742 | return Status::OK(); | 755 | 742 | } | 756 | 1.09k | { | 757 | 1.09k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 1.09k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 1.09k | } | 760 | 1.09k | } | 761 | | | 762 | 1.09k | if (!need_more_input_data(state)) { | 763 | 1.09k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 1.09k | bool new_eos = false; | 765 | 1.09k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 1.09k | if (new_eos) { | 767 | 764 | *eos = true; | 768 | 764 | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 1.09k | } | 772 | 1.09k | return Status::OK(); | 773 | 1.09k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 14.3k | bool* eos) { | 745 | 14.3k | auto& local_state = get_local_state(state); | 746 | 14.3k | if (need_more_input_data(state)) { | 747 | 14.3k | local_state._child_block->clear_column_data( | 748 | 14.3k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 14.3k | .num_materialized_slots()); | 750 | 14.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 14.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 14.3k | *eos = local_state._child_eos; | 753 | 14.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 3.36k | return Status::OK(); | 755 | 3.36k | } | 756 | 11.0k | { | 757 | 11.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 11.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 11.0k | } | 760 | 11.0k | } | 761 | | | 762 | 11.0k | if (!need_more_input_data(state)) { | 763 | 6.67k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.67k | bool new_eos = false; | 765 | 6.67k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.67k | if (new_eos) { | 767 | 6.60k | *eos = true; | 768 | 6.60k | } else if (!need_more_input_data(state)) { | 769 | 4 | *eos = false; | 770 | 4 | } | 771 | 6.67k | } | 772 | 11.0k | return Status::OK(); | 773 | 11.0k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 223k | bool* eos) { | 745 | 223k | auto& local_state = get_local_state(state); | 746 | 224k | if (need_more_input_data(state)) { | 747 | 224k | local_state._child_block->clear_column_data( | 748 | 224k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 224k | .num_materialized_slots()); | 750 | 224k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 224k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 224k | *eos = local_state._child_eos; | 753 | 224k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 15.9k | return Status::OK(); | 755 | 15.9k | } | 756 | 208k | { | 757 | 208k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 208k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 208k | } | 760 | 208k | } | 761 | | | 762 | 207k | if (!need_more_input_data(state)) { | 763 | 193k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 193k | bool new_eos = false; | 765 | 193k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 193k | if (new_eos) { | 767 | 192k | *eos = true; | 768 | 192k | } else if (!need_more_input_data(state)) { | 769 | 0 | *eos = false; | 770 | 0 | } | 771 | 193k | } | 772 | 207k | return Status::OK(); | 773 | 207k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 22.1k | bool* eos) { | 745 | 22.1k | auto& local_state = get_local_state(state); | 746 | 22.1k | if (need_more_input_data(state)) { | 747 | 9.58k | local_state._child_block->clear_column_data( | 748 | 9.58k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 9.58k | .num_materialized_slots()); | 750 | 9.58k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 9.58k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 9.58k | *eos = local_state._child_eos; | 753 | 9.58k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 782 | return Status::OK(); | 755 | 782 | } | 756 | 8.80k | { | 757 | 8.80k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 8.80k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 8.80k | } | 760 | 8.80k | } | 761 | | | 762 | 21.3k | 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 | 4.80k | *eos = true; | 768 | 15.8k | } else if (!need_more_input_data(state)) { | 769 | 12.5k | *eos = false; | 770 | 12.5k | } | 771 | 20.6k | } | 772 | 21.3k | return Status::OK(); | 773 | 21.3k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 744 | 7.67k | bool* eos) { | 745 | 7.67k | auto& local_state = get_local_state(state); | 746 | 7.67k | if (need_more_input_data(state)) { | 747 | 7.32k | local_state._child_block->clear_column_data( | 748 | 7.32k | OperatorX<LocalStateType>::_child->operator_row_desc_after_projection() | 749 | 7.32k | .num_materialized_slots()); | 750 | 7.32k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 751 | 7.32k | state, local_state._child_block.get(), &local_state._child_eos)); | 752 | 7.32k | *eos = local_state._child_eos; | 753 | 7.32k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 754 | 714 | return Status::OK(); | 755 | 714 | } | 756 | 6.60k | { | 757 | 6.60k | SCOPED_TIMER(local_state.exec_time_counter()); | 758 | 6.60k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 759 | 6.60k | } | 760 | 6.60k | } | 761 | | | 762 | 6.97k | if (!need_more_input_data(state)) { | 763 | 6.97k | SCOPED_TIMER(local_state.exec_time_counter()); | 764 | 6.97k | bool new_eos = false; | 765 | 6.97k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 766 | 6.97k | if (new_eos) { | 767 | 4.95k | *eos = true; | 768 | 4.95k | } else if (!need_more_input_data(state)) { | 769 | 366 | *eos = false; | 770 | 366 | } | 771 | 6.97k | } | 772 | 6.95k | return Status::OK(); | 773 | 6.95k | } |
|
774 | | |
775 | | template <typename Writer, typename Parent> |
776 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
777 | 42.6k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
778 | 42.6k | RETURN_IF_ERROR(Base::init(state, info)); |
779 | 42.6k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
780 | 42.6k | "AsyncWriterDependency", true); |
781 | 42.6k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
782 | 42.6k | _finish_dependency)); |
783 | | |
784 | 42.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
785 | 42.6k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
786 | 42.6k | return Status::OK(); |
787 | 42.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 356 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 356 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 356 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 356 | "AsyncWriterDependency", true); | 781 | 356 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 356 | _finish_dependency)); | 783 | | | 784 | 356 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 356 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 356 | return Status::OK(); | 787 | 356 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 42.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 42.2k | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 42.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 42.2k | "AsyncWriterDependency", true); | 781 | 42.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 42.2k | _finish_dependency)); | 783 | | | 784 | 42.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 42.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 42.2k | return Status::OK(); | 787 | 42.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 777 | 38 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 778 | 38 | RETURN_IF_ERROR(Base::init(state, info)); | 779 | 38 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 780 | 38 | "AsyncWriterDependency", true); | 781 | 38 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 782 | 38 | _finish_dependency)); | 783 | | | 784 | 38 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 785 | 38 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 786 | 38 | return Status::OK(); | 787 | 38 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
788 | | |
789 | | template <typename Writer, typename Parent> |
790 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
791 | 43.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
792 | 43.0k | RETURN_IF_ERROR(Base::open(state)); |
793 | 43.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
794 | 328k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
795 | 285k | RETURN_IF_ERROR( |
796 | 285k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
797 | 285k | } |
798 | 43.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
799 | 43.0k | return Status::OK(); |
800 | 43.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 359 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 359 | RETURN_IF_ERROR(Base::open(state)); | 793 | 359 | _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.49k | RETURN_IF_ERROR( | 796 | 1.49k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 1.49k | } | 798 | 359 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 359 | return Status::OK(); | 800 | 359 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 42.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 42.6k | RETURN_IF_ERROR(Base::open(state)); | 793 | 42.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 325k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 282k | RETURN_IF_ERROR( | 796 | 282k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 282k | } | 798 | 42.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 42.6k | return Status::OK(); | 800 | 42.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 791 | 38 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 792 | 38 | RETURN_IF_ERROR(Base::open(state)); | 793 | 38 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 794 | 684 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 795 | 646 | RETURN_IF_ERROR( | 796 | 646 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 797 | 646 | } | 798 | 38 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 799 | 38 | return Status::OK(); | 800 | 38 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
801 | | |
802 | | template <typename Writer, typename Parent> |
803 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
804 | 57.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
805 | 57.4k | return _writer->sink(block, eos); |
806 | 57.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 1.37k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 1.37k | return _writer->sink(block, eos); | 806 | 1.37k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 56.0k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 56.0k | return _writer->sink(block, eos); | 806 | 56.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 804 | 38 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 805 | 38 | return _writer->sink(block, eos); | 806 | 38 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
807 | | |
808 | | template <typename Writer, typename Parent> |
809 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
810 | 43.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
811 | 43.1k | if (_closed) { |
812 | 0 | return Status::OK(); |
813 | 0 | } |
814 | 43.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
815 | 43.1k | 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 | 43.1k | if (_writer) { |
818 | 43.1k | Status st = _writer->get_writer_status(); |
819 | 43.1k | if (exec_status.ok()) { |
820 | 43.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
821 | 43.0k | : Status::Cancelled("force close")); |
822 | 43.0k | } else { |
823 | 110 | _writer->force_close(exec_status); |
824 | 110 | } |
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 | 43.1k | RETURN_IF_ERROR(st); |
829 | 43.1k | } |
830 | 43.1k | return Base::close(state, exec_status); |
831 | 43.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 347 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 347 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 347 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 347 | 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 | 347 | if (_writer) { | 818 | 347 | Status st = _writer->get_writer_status(); | 819 | 347 | if (exec_status.ok()) { | 820 | 347 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 347 | : Status::Cancelled("force close")); | 822 | 347 | } 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 | 347 | RETURN_IF_ERROR(st); | 829 | 347 | } | 830 | 347 | return Base::close(state, exec_status); | 831 | 347 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 42.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 42.7k | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 42.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 42.7k | 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 | 42.8k | if (_writer) { | 818 | 42.8k | Status st = _writer->get_writer_status(); | 819 | 42.8k | if (exec_status.ok()) { | 820 | 42.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 42.7k | : Status::Cancelled("force close")); | 822 | 42.7k | } else { | 823 | 110 | _writer->force_close(exec_status); | 824 | 110 | } | 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 | 42.8k | RETURN_IF_ERROR(st); | 829 | 42.8k | } | 830 | 42.7k | return Base::close(state, exec_status); | 831 | 42.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 810 | 38 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 811 | 38 | if (_closed) { | 812 | 0 | return Status::OK(); | 813 | 0 | } | 814 | 38 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 815 | 38 | 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 | 38 | if (_writer) { | 818 | 38 | Status st = _writer->get_writer_status(); | 819 | 38 | if (exec_status.ok()) { | 820 | 38 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 821 | 38 | : Status::Cancelled("force close")); | 822 | 38 | } 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 | 38 | RETURN_IF_ERROR(st); | 829 | 38 | } | 830 | 38 | return Base::close(state, exec_status); | 831 | 38 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
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(SpillIcebergTableSinkLocalState) |
850 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
851 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
852 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
853 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
854 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
855 | | DECLARE_OPERATOR(SortSinkLocalState) |
856 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
857 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
858 | | DECLARE_OPERATOR(AggSinkLocalState) |
859 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
860 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
861 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
862 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
863 | | DECLARE_OPERATOR(UnionSinkLocalState) |
864 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
865 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
866 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
867 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
868 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
869 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
870 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
871 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
872 | | DECLARE_OPERATOR(CacheSinkLocalState) |
873 | | DECLARE_OPERATOR(DictSinkLocalState) |
874 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
875 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
876 | | |
877 | | #undef DECLARE_OPERATOR |
878 | | |
879 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
880 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
881 | | DECLARE_OPERATOR(OlapScanLocalState) |
882 | | DECLARE_OPERATOR(GroupCommitLocalState) |
883 | | DECLARE_OPERATOR(JDBCScanLocalState) |
884 | | DECLARE_OPERATOR(FileScanLocalState) |
885 | | DECLARE_OPERATOR(AnalyticLocalState) |
886 | | DECLARE_OPERATOR(SortLocalState) |
887 | | DECLARE_OPERATOR(SpillSortLocalState) |
888 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
889 | | DECLARE_OPERATOR(AggLocalState) |
890 | | DECLARE_OPERATOR(BucketedAggLocalState) |
891 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
892 | | DECLARE_OPERATOR(TableFunctionLocalState) |
893 | | DECLARE_OPERATOR(ExchangeLocalState) |
894 | | DECLARE_OPERATOR(RepeatLocalState) |
895 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
896 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
897 | | DECLARE_OPERATOR(EmptySetLocalState) |
898 | | DECLARE_OPERATOR(UnionSourceLocalState) |
899 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
900 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
901 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
902 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
903 | | DECLARE_OPERATOR(DataGenLocalState) |
904 | | DECLARE_OPERATOR(SchemaScanLocalState) |
905 | | DECLARE_OPERATOR(MetaScanLocalState) |
906 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
907 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
908 | | DECLARE_OPERATOR(CacheSourceLocalState) |
909 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
910 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
911 | | |
912 | | #ifdef BE_TEST |
913 | | DECLARE_OPERATOR(MockLocalState) |
914 | | DECLARE_OPERATOR(MockScanLocalState) |
915 | | #endif |
916 | | #undef DECLARE_OPERATOR |
917 | | |
918 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
919 | | template class StreamingOperatorX<SelectLocalState>; |
920 | | |
921 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
922 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
923 | | template class StatefulOperatorX<RepeatLocalState>; |
924 | | template class StatefulOperatorX<MaterializationLocalState>; |
925 | | template class StatefulOperatorX<StreamingAggLocalState>; |
926 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
927 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
928 | | template class StatefulOperatorX<TableFunctionLocalState>; |
929 | | |
930 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
931 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
932 | | template class PipelineXSinkLocalState<SortSharedState>; |
933 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
934 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
935 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
936 | | template class PipelineXSinkLocalState<AggSharedState>; |
937 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
938 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
939 | | template class PipelineXSinkLocalState<FakeSharedState>; |
940 | | template class PipelineXSinkLocalState<UnionSharedState>; |
941 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
942 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
943 | | template class PipelineXSinkLocalState<SetSharedState>; |
944 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
945 | | template class PipelineXSinkLocalState<BasicSharedState>; |
946 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
947 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
948 | | |
949 | | template class PipelineXLocalState<HashJoinSharedState>; |
950 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
951 | | template class PipelineXLocalState<SortSharedState>; |
952 | | template class PipelineXLocalState<SpillSortSharedState>; |
953 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
954 | | template class PipelineXLocalState<AnalyticSharedState>; |
955 | | template class PipelineXLocalState<AggSharedState>; |
956 | | template class PipelineXLocalState<BucketedAggSharedState>; |
957 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
958 | | template class PipelineXLocalState<FakeSharedState>; |
959 | | template class PipelineXLocalState<UnionSharedState>; |
960 | | template class PipelineXLocalState<DataQueueSharedState>; |
961 | | template class PipelineXLocalState<MultiCastSharedState>; |
962 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
963 | | template class PipelineXLocalState<SetSharedState>; |
964 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
965 | | template class PipelineXLocalState<BasicSharedState>; |
966 | | template class PipelineXLocalState<RecCTESharedState>; |
967 | | |
968 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
969 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
970 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
971 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
972 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
973 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
974 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
975 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
976 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
977 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
978 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
979 | | |
980 | | #ifdef BE_TEST |
981 | | template class OperatorX<DummyOperatorLocalState>; |
982 | | template class DataSinkOperatorX<DummySinkLocalState>; |
983 | | #endif |
984 | | |
985 | | } // namespace doris |