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