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.26M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.26M | if (_parent->nereids_id() == -1) { |
120 | 1.17M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.17M | } else { |
122 | 1.09M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 1.09M | } |
124 | 2.26M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 104k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 104k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 104k | } else { | 122 | 104k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 104k | } | 124 | 104k | } |
_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 | 269k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 269k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 269k | } else { | 122 | 269k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 269k | } | 124 | 269k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 23 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 23 | } else { | 122 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 23 | } | 124 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.70k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.70k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.70k | } else { | 122 | 9.70k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 9.70k | } | 124 | 9.70k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 6.11k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 6.11k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 6.11k | } else { | 122 | 6.11k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 6.11k | } | 124 | 6.11k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 137k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 137k | if (_parent->nereids_id() == -1) { | 120 | 27 | return fmt::format("(id={})", _parent->node_id()); | 121 | 137k | } else { | 122 | 137k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 137k | } | 124 | 137k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 462 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 462 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 462 | } else { | 122 | 462 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 462 | } | 124 | 462 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 106 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 106 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 106 | } else { | 122 | 106 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 106 | } | 124 | 106 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 928k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 928k | if (_parent->nereids_id() == -1) { | 120 | 426k | return fmt::format("(id={})", _parent->node_id()); | 121 | 501k | } else { | 122 | 501k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 501k | } | 124 | 928k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 55.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 55.4k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 55.4k | } else { | 122 | 55.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 55.4k | } | 124 | 55.4k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 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.20k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.20k | if (_parent->nereids_id() == -1) { | 120 | 9.20k | return fmt::format("(id={})", _parent->node_id()); | 121 | 18.4E | } else { | 122 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 18.4E | } | 124 | 9.20k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 376 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 376 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 274 | } else { | 122 | 274 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 274 | } | 124 | 376 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.29k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.29k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.28k | } else { | 122 | 4.28k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.28k | } | 124 | 4.29k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 744k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 744k | if (_parent->nereids_id() == -1) { | 120 | 742k | return fmt::format("(id={})", _parent->node_id()); | 121 | 742k | } else { | 122 | 2.25k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 2.25k | } | 124 | 744k | } |
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.40M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.40M | if (_parent->nereids_id() == -1) { |
129 | 818k | return fmt::format("(id={})", _parent->node_id()); |
130 | 818k | } else { |
131 | 587k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 587k | } |
133 | 1.40M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 152k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 152k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 152k | } else { | 131 | 152k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 152k | } | 133 | 152k | } |
_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 | 271k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 271k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 271k | } else { | 131 | 271k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 271k | } | 133 | 271k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 29 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 29 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 29 | } else { | 131 | 29 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 29 | } | 133 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 9.73k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 9.73k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 9.73k | } else { | 131 | 9.73k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 9.73k | } | 133 | 9.73k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 6.15k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 6.15k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 6.14k | } else { | 131 | 6.14k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 6.14k | } | 133 | 6.15k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 138k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 138k | if (_parent->nereids_id() == -1) { | 129 | 27 | return fmt::format("(id={})", _parent->node_id()); | 130 | 138k | } else { | 131 | 138k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 138k | } | 133 | 138k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 403 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 403 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 403 | } else { | 131 | 403 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 403 | } | 133 | 403 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 116 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 116 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 116 | } else { | 131 | 116 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 116 | } | 133 | 116 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 131 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 131 | if (_parent->nereids_id() == -1) { | 129 | 131 | return fmt::format("(id={})", _parent->node_id()); | 130 | 131 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 131 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 8.24k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 8.24k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 8.23k | } else { | 131 | 8.23k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 8.23k | } | 133 | 8.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 379 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 379 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 277 | } else { | 131 | 277 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 277 | } | 133 | 379 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 12.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12.0k | if (_parent->nereids_id() == -1) { | 129 | 12.0k | return fmt::format("(id={})", _parent->node_id()); | 130 | 12.0k | } else { | 131 | 12 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 12 | } | 133 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 297k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 297k | if (_parent->nereids_id() == -1) { | 129 | 297k | 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 | 297k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 508k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 508k | if (_parent->nereids_id() == -1) { | 129 | 508k | return fmt::format("(id={})", _parent->node_id()); | 130 | 508k | } else { | 131 | 172 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 172 | } | 133 | 508k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 17 | if (_parent->nereids_id() == -1) { | 129 | 17 | return fmt::format("(id={})", _parent->node_id()); | 130 | 17 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 302 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 302 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 302 | } else { | 131 | 302 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 302 | } | 133 | 302 | } |
|
134 | | |
135 | | template <typename SharedStateArg> |
136 | 30.6k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 30.6k | if (_terminated) { |
138 | 0 | return Status::OK(); |
139 | 0 | } |
140 | 30.6k | _terminated = true; |
141 | 30.6k | return Status::OK(); |
142 | 30.6k | } _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 | 671 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 671 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 671 | _terminated = true; | 141 | 671 | return Status::OK(); | 142 | 671 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 4 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 4 | _terminated = true; | 141 | 4 | return Status::OK(); | 142 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 4.21k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 4.21k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 4.21k | _terminated = true; | 141 | 4.21k | return Status::OK(); | 142 | 4.21k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 6 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 6 | _terminated = true; | 141 | 6 | return Status::OK(); | 142 | 6 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1.27k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1.27k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1.27k | _terminated = true; | 141 | 1.27k | return Status::OK(); | 142 | 1.27k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_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_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 124 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 124 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 124 | _terminated = true; | 141 | 124 | return Status::OK(); | 142 | 124 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 173 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 173 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 173 | _terminated = true; | 141 | 173 | return Status::OK(); | 142 | 173 | } |
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 | 836k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 836k | return _child && _child->is_serial_operator() && !is_source() |
146 | 836k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 836k | : DataDistribution(ExchangeType::NOOP); |
148 | 836k | } |
149 | | |
150 | 81.9k | const RowDescriptor& OperatorBase::row_desc() const { |
151 | 81.9k | return _child->row_desc(); |
152 | 81.9k | } |
153 | | |
154 | | template <typename SharedStateArg> |
155 | 16.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
156 | 16.7k | fmt::memory_buffer debug_string_buffer; |
157 | 16.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
158 | 16.7k | return fmt::to_string(debug_string_buffer); |
159 | 16.7k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 4 | fmt::memory_buffer debug_string_buffer; | 157 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 4 | return fmt::to_string(debug_string_buffer); | 159 | 4 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 3 | fmt::memory_buffer debug_string_buffer; | 157 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 3 | return fmt::to_string(debug_string_buffer); | 159 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 2 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 2 | fmt::memory_buffer debug_string_buffer; | 157 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 2 | return fmt::to_string(debug_string_buffer); | 159 | 2 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 1 | fmt::memory_buffer debug_string_buffer; | 157 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 1 | return fmt::to_string(debug_string_buffer); | 159 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 2 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 2 | fmt::memory_buffer debug_string_buffer; | 157 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 2 | return fmt::to_string(debug_string_buffer); | 159 | 2 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 16.5k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 16.5k | fmt::memory_buffer debug_string_buffer; | 157 | 16.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 16.5k | return fmt::to_string(debug_string_buffer); | 159 | 16.5k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 1 | fmt::memory_buffer debug_string_buffer; | 157 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 1 | return fmt::to_string(debug_string_buffer); | 159 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 192 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 192 | fmt::memory_buffer debug_string_buffer; | 157 | 192 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 192 | return fmt::to_string(debug_string_buffer); | 159 | 192 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
160 | | |
161 | | template <typename SharedStateArg> |
162 | 16.4k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
163 | 16.4k | fmt::memory_buffer debug_string_buffer; |
164 | 16.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
165 | 16.4k | return fmt::to_string(debug_string_buffer); |
166 | 16.4k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 1 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 1 | fmt::memory_buffer debug_string_buffer; | 164 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 1 | return fmt::to_string(debug_string_buffer); | 166 | 1 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 2 | fmt::memory_buffer debug_string_buffer; | 164 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 2 | return fmt::to_string(debug_string_buffer); | 166 | 2 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 2 | fmt::memory_buffer debug_string_buffer; | 164 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 2 | return fmt::to_string(debug_string_buffer); | 166 | 2 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 490 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 490 | fmt::memory_buffer debug_string_buffer; | 164 | 490 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 490 | return fmt::to_string(debug_string_buffer); | 166 | 490 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 15.9k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 15.9k | fmt::memory_buffer debug_string_buffer; | 164 | 15.9k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 15.9k | return fmt::to_string(debug_string_buffer); | 166 | 15.9k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
167 | | |
168 | 16.9k | std::string OperatorXBase::debug_string(int indentation_level) const { |
169 | 16.9k | fmt::memory_buffer debug_string_buffer; |
170 | 16.9k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
171 | 16.9k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
172 | 16.9k | _is_serial_operator); |
173 | 16.9k | return fmt::to_string(debug_string_buffer); |
174 | 16.9k | } |
175 | | |
176 | 16.7k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
177 | 16.7k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
178 | 16.7k | } |
179 | | |
180 | 698k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
181 | 698k | std::string node_name = print_plan_node_type(tnode.node_type); |
182 | 698k | _nereids_id = tnode.nereids_id; |
183 | 698k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
184 | 3.57k | if (!tnode.__isset.output_tuple_id) { |
185 | 0 | return Status::InternalError("no final output tuple id"); |
186 | 0 | } |
187 | 3.57k | if (tnode.intermediate_output_tuple_id_list.size() != |
188 | 3.57k | tnode.intermediate_projections_list.size()) { |
189 | 0 | return Status::InternalError( |
190 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
191 | 0 | "intermediate_projections_list size:{}", |
192 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
193 | 0 | tnode.intermediate_projections_list.size()); |
194 | 0 | } |
195 | 3.57k | } |
196 | 698k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
197 | 698k | _op_name = substr + "_OPERATOR"; |
198 | | |
199 | 698k | if (tnode.__isset.vconjunct) { |
200 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
201 | 698k | } else if (tnode.__isset.conjuncts) { |
202 | 438k | for (const auto& conjunct : tnode.conjuncts) { |
203 | 438k | VExprContextSPtr context; |
204 | 438k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
205 | 438k | _conjuncts.emplace_back(context); |
206 | 438k | } |
207 | 139k | } |
208 | | |
209 | | // create the projections expr |
210 | 698k | if (tnode.__isset.projections) { |
211 | 305k | DCHECK(tnode.__isset.output_tuple_id); |
212 | 305k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
213 | 305k | } |
214 | 698k | if (!tnode.intermediate_projections_list.empty()) { |
215 | 3.57k | DCHECK(tnode.__isset.projections) << "no final projections"; |
216 | 3.57k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
217 | 6.86k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
218 | 6.86k | VExprContextSPtrs projections; |
219 | 6.86k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
220 | 6.86k | _intermediate_projections.push_back(projections); |
221 | 6.86k | } |
222 | 3.57k | } |
223 | 698k | return Status::OK(); |
224 | 698k | } |
225 | | |
226 | 730k | Status OperatorXBase::prepare(RuntimeState* state) { |
227 | 730k | for (auto& conjunct : _conjuncts) { |
228 | 438k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
229 | 438k | } |
230 | 730k | if (state->enable_adjust_conjunct_order_by_cost()) { |
231 | 679k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
232 | 596k | return a->execute_cost() < b->execute_cost(); |
233 | 596k | }); |
234 | 679k | }; |
235 | | |
236 | 737k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
237 | 6.86k | RETURN_IF_ERROR( |
238 | 6.86k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
239 | 6.86k | } |
240 | 730k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
241 | | |
242 | 730k | if (has_output_row_desc()) { |
243 | 305k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
244 | 305k | } |
245 | | |
246 | 730k | for (auto& conjunct : _conjuncts) { |
247 | 437k | RETURN_IF_ERROR(conjunct->open(state)); |
248 | 437k | } |
249 | 730k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
250 | 730k | for (auto& projections : _intermediate_projections) { |
251 | 6.86k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
252 | 6.86k | } |
253 | 730k | if (_child && !is_source()) { |
254 | 138k | RETURN_IF_ERROR(_child->prepare(state)); |
255 | 138k | } |
256 | | |
257 | 730k | if (VExpr::contains_blockable_function(_conjuncts) || |
258 | 730k | VExpr::contains_blockable_function(_projections)) { |
259 | 0 | _blockable = true; |
260 | 0 | } |
261 | | |
262 | 730k | return Status::OK(); |
263 | 730k | } |
264 | | |
265 | 8.03k | Status OperatorXBase::terminate(RuntimeState* state) { |
266 | 8.03k | if (_child && !is_source()) { |
267 | 1.39k | RETURN_IF_ERROR(_child->terminate(state)); |
268 | 1.39k | } |
269 | 8.03k | auto result = state->get_local_state_result(operator_id()); |
270 | 8.03k | if (!result) { |
271 | 0 | return result.error(); |
272 | 0 | } |
273 | 8.03k | return result.value()->terminate(state); |
274 | 8.03k | } |
275 | | |
276 | 6.48M | Status OperatorXBase::close(RuntimeState* state) { |
277 | 6.48M | if (_child && !is_source()) { |
278 | 1.24M | RETURN_IF_ERROR(_child->close(state)); |
279 | 1.24M | } |
280 | 6.48M | auto result = state->get_local_state_result(operator_id()); |
281 | 6.48M | if (!result) { |
282 | 0 | return result.error(); |
283 | 0 | } |
284 | 6.48M | return result.value()->close(state); |
285 | 6.48M | } |
286 | | |
287 | 314k | void PipelineXLocalStateBase::clear_origin_block() { |
288 | 314k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
289 | 314k | } |
290 | | |
291 | 653k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
292 | 653k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
293 | | |
294 | 653k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
295 | 653k | return Status::OK(); |
296 | 653k | } |
297 | | |
298 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
299 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
300 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
301 | 0 | } |
302 | | |
303 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
304 | 314k | Block* output_block) const { |
305 | 314k | auto* local_state = state->get_local_state(operator_id()); |
306 | 314k | SCOPED_TIMER(local_state->exec_time_counter()); |
307 | 314k | SCOPED_TIMER(local_state->_projection_timer); |
308 | 314k | const size_t rows = origin_block->rows(); |
309 | 314k | if (rows == 0) { |
310 | 180k | return Status::OK(); |
311 | 180k | } |
312 | 134k | Block input_block = *origin_block; |
313 | | |
314 | 134k | size_t bytes_usage = 0; |
315 | 134k | ColumnsWithTypeAndName new_columns; |
316 | 134k | for (const auto& projections : local_state->_intermediate_projections) { |
317 | 1.45k | if (projections.empty()) { |
318 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
319 | 0 | node_id()); |
320 | 0 | } |
321 | 1.45k | new_columns.resize(projections.size()); |
322 | 10.3k | for (int i = 0; i < projections.size(); i++) { |
323 | 8.92k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
324 | 8.92k | if (new_columns[i].column->size() != rows) { |
325 | 0 | return Status::InternalError( |
326 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
327 | 0 | "expr: {}", |
328 | 0 | new_columns[i].column->size(), rows, |
329 | 0 | projections[i]->root()->debug_string()); |
330 | 0 | } |
331 | 8.92k | } |
332 | 1.45k | Block tmp_block {new_columns}; |
333 | 1.45k | bytes_usage += tmp_block.allocated_bytes(); |
334 | 1.45k | input_block.swap(tmp_block); |
335 | 1.45k | } |
336 | | |
337 | 134k | if (input_block.rows() != rows) { |
338 | 0 | return Status::InternalError( |
339 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
340 | 0 | "input_block: {}", |
341 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
342 | 0 | } |
343 | 639k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
344 | 639k | if (to->is_nullable() && !from->is_nullable()) { |
345 | 0 | if (_keep_origin || !from->is_exclusive()) { |
346 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
347 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
348 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
349 | 0 | bytes_usage += null_column.allocated_bytes(); |
350 | 0 | } else { |
351 | 0 | to = make_nullable(from, false)->assume_mutable(); |
352 | 0 | } |
353 | 639k | } else { |
354 | 639k | if (_keep_origin || !from->is_exclusive()) { |
355 | 626k | to->insert_range_from(*from, 0, rows); |
356 | 626k | bytes_usage += from->allocated_bytes(); |
357 | 626k | } else { |
358 | 12.6k | to = from->assume_mutable(); |
359 | 12.6k | } |
360 | 639k | } |
361 | 639k | }; |
362 | | |
363 | 134k | MutableBlock mutable_block = |
364 | 134k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
365 | 134k | if (rows != 0) { |
366 | 134k | auto& mutable_columns = mutable_block.mutable_columns(); |
367 | 134k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
368 | 773k | for (int i = 0; i < mutable_columns.size(); ++i) { |
369 | 639k | ColumnPtr column_ptr; |
370 | 639k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
371 | 639k | if (column_ptr->size() != rows) { |
372 | 0 | return Status::InternalError( |
373 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
374 | 0 | column_ptr->size(), rows, |
375 | 0 | local_state->_projections[i]->root()->debug_string()); |
376 | 0 | } |
377 | 639k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
378 | 639k | bytes_usage += column_ptr->allocated_bytes(); |
379 | 639k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
380 | 639k | } |
381 | 134k | DCHECK(mutable_block.rows() == rows); |
382 | 134k | output_block->set_columns(std::move(mutable_columns)); |
383 | 134k | } |
384 | | |
385 | 134k | local_state->_estimate_memory_usage += bytes_usage; |
386 | | |
387 | 134k | return Status::OK(); |
388 | 134k | } |
389 | | |
390 | 4.56M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
391 | 4.56M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
392 | 4.56M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
393 | 4.56M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
394 | 4.56M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
395 | 4.56M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
396 | 4.56M | if (_debug_point_count++ % 2 == 0) { |
397 | 4.56M | return Status::OK(); |
398 | 4.56M | } |
399 | 4.56M | } |
400 | 4.56M | }); |
401 | | |
402 | 4.56M | Status status; |
403 | 4.56M | auto* local_state = state->get_local_state(operator_id()); |
404 | 4.56M | Defer defer([&]() { |
405 | 4.56M | if (status.ok()) { |
406 | 4.56M | local_state->update_output_block_counters(*block); |
407 | 4.56M | } |
408 | 4.56M | }); |
409 | 4.56M | if (_output_row_descriptor) { |
410 | 314k | local_state->clear_origin_block(); |
411 | 314k | status = get_block(state, &local_state->_origin_block, eos); |
412 | 314k | if (UNLIKELY(!status.ok())) { |
413 | 17 | return status; |
414 | 17 | } |
415 | 314k | status = do_projections(state, &local_state->_origin_block, block); |
416 | 314k | return status; |
417 | 314k | } |
418 | 4.24M | status = get_block(state, block, eos); |
419 | 4.24M | RETURN_IF_ERROR(block->check_type_and_column()); |
420 | 4.24M | return status; |
421 | 4.24M | } |
422 | | |
423 | 3.06M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
424 | 3.06M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
425 | 6.33k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
426 | 6.33k | *eos = true; |
427 | 6.33k | } |
428 | | |
429 | 3.06M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
430 | 3.06M | auto op_name = to_lower(_parent->_op_name); |
431 | 3.06M | auto arg_op_name = dp->param<std::string>("op_name"); |
432 | 3.06M | arg_op_name = to_lower(arg_op_name); |
433 | | |
434 | 3.06M | if (op_name == arg_op_name) { |
435 | 3.06M | *eos = true; |
436 | 3.06M | } |
437 | 3.06M | }); |
438 | | |
439 | 3.06M | if (auto rows = block->rows()) { |
440 | 816k | _num_rows_returned += rows; |
441 | 816k | } |
442 | 3.06M | } |
443 | | |
444 | 30.6k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
445 | 30.6k | auto result = state->get_sink_local_state_result(); |
446 | 30.6k | if (!result) { |
447 | 0 | return result.error(); |
448 | 0 | } |
449 | 30.6k | return result.value()->terminate(state); |
450 | 30.6k | } |
451 | | |
452 | 16.5k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
453 | 16.5k | fmt::memory_buffer debug_string_buffer; |
454 | | |
455 | 16.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
456 | 16.5k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
457 | 16.5k | return fmt::to_string(debug_string_buffer); |
458 | 16.5k | } |
459 | | |
460 | 16.4k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
461 | 16.4k | return state->get_sink_local_state()->debug_string(indentation_level); |
462 | 16.4k | } |
463 | | |
464 | 439k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
465 | 439k | std::string op_name = "UNKNOWN_SINK"; |
466 | 439k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
467 | | |
468 | 439k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
469 | 438k | op_name = it->second; |
470 | 438k | } |
471 | 439k | _name = op_name + "_OPERATOR"; |
472 | 439k | return Status::OK(); |
473 | 439k | } |
474 | | |
475 | 197k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
476 | 197k | std::string op_name = print_plan_node_type(tnode.node_type); |
477 | 197k | _nereids_id = tnode.nereids_id; |
478 | 197k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
479 | 197k | _name = substr + "_SINK_OPERATOR"; |
480 | 197k | return Status::OK(); |
481 | 197k | } |
482 | | |
483 | | template <typename LocalStateType> |
484 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
485 | 2.09M | LocalSinkStateInfo& info) { |
486 | 2.09M | auto local_state = LocalStateType::create_unique(this, state); |
487 | 2.09M | RETURN_IF_ERROR(local_state->init(state, info)); |
488 | 2.09M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
489 | 2.09M | return Status::OK(); |
490 | 2.09M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 152k | LocalSinkStateInfo& info) { | 486 | 152k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 152k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 152k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 152k | return Status::OK(); | 490 | 152k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 439k | LocalSinkStateInfo& info) { | 486 | 439k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 439k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 439k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 439k | return Status::OK(); | 490 | 439k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 88 | LocalSinkStateInfo& info) { | 486 | 88 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 88 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 88 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 88 | return Status::OK(); | 490 | 88 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3 | LocalSinkStateInfo& info) { | 486 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3 | return Status::OK(); | 490 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 516 | LocalSinkStateInfo& info) { | 486 | 516 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 516 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 516 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 516 | return Status::OK(); | 490 | 516 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 53.8k | LocalSinkStateInfo& info) { | 486 | 53.8k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 53.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 53.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 53.8k | return Status::OK(); | 490 | 53.8k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 5.64k | LocalSinkStateInfo& info) { | 486 | 5.64k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 5.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 5.64k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 5.64k | return Status::OK(); | 490 | 5.64k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 5.15k | LocalSinkStateInfo& info) { | 486 | 5.15k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 5.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 5.15k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 5.15k | return Status::OK(); | 490 | 5.15k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 156 | LocalSinkStateInfo& info) { | 486 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 156 | return Status::OK(); | 490 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3.38k | LocalSinkStateInfo& info) { | 486 | 3.38k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3.38k | return Status::OK(); | 490 | 3.38k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 160 | LocalSinkStateInfo& info) { | 486 | 160 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 160 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 160 | return Status::OK(); | 490 | 160 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 640 | LocalSinkStateInfo& info) { | 486 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 640 | return Status::OK(); | 490 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 6.14k | LocalSinkStateInfo& info) { | 486 | 6.14k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 6.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 6.14k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 6.14k | return Status::OK(); | 490 | 6.14k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 128 | LocalSinkStateInfo& info) { | 486 | 128 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 128 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 128 | return Status::OK(); | 490 | 128 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 272k | LocalSinkStateInfo& info) { | 486 | 272k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 272k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 272k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 272k | return Status::OK(); | 490 | 272k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 29 | LocalSinkStateInfo& info) { | 486 | 29 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 29 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 29 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 29 | return Status::OK(); | 490 | 29 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 298k | LocalSinkStateInfo& info) { | 486 | 298k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 298k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 298k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 298k | return Status::OK(); | 490 | 298k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 138k | LocalSinkStateInfo& info) { | 486 | 138k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 138k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 138k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 138k | return Status::OK(); | 490 | 138k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 402 | LocalSinkStateInfo& info) { | 486 | 402 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 402 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 402 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 402 | return Status::OK(); | 490 | 402 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 118 | LocalSinkStateInfo& info) { | 486 | 118 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 118 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 118 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 118 | return Status::OK(); | 490 | 118 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 686k | LocalSinkStateInfo& info) { | 486 | 686k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 686k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 686k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 686k | return Status::OK(); | 490 | 686k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 9.75k | LocalSinkStateInfo& info) { | 486 | 9.75k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 9.75k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 9.75k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 9.75k | return Status::OK(); | 490 | 9.75k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 8.25k | LocalSinkStateInfo& info) { | 486 | 8.25k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 8.25k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 8.25k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 8.25k | return Status::OK(); | 490 | 8.25k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3.62k | LocalSinkStateInfo& info) { | 486 | 3.62k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3.62k | return Status::OK(); | 490 | 3.62k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 275 | LocalSinkStateInfo& info) { | 486 | 275 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 275 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 275 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 275 | return Status::OK(); | 490 | 275 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 4.60k | LocalSinkStateInfo& info) { | 486 | 4.60k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 4.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 4.60k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 4.60k | return Status::OK(); | 490 | 4.60k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.50k | LocalSinkStateInfo& info) { | 486 | 2.50k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.50k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.50k | return Status::OK(); | 490 | 2.50k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.42k | LocalSinkStateInfo& info) { | 486 | 2.42k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.42k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.42k | return Status::OK(); | 490 | 2.42k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.44k | LocalSinkStateInfo& info) { | 486 | 2.44k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.44k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.44k | return Status::OK(); | 490 | 2.44k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 1 | LocalSinkStateInfo& info) { | 486 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 1 | return Status::OK(); | 490 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 165 | LocalSinkStateInfo& info) { | 486 | 165 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 165 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 165 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 165 | return Status::OK(); | 490 | 165 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 14 | LocalSinkStateInfo& info) { | 486 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 14 | return Status::OK(); | 490 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 103 | LocalSinkStateInfo& info) { | 486 | 103 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 103 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 103 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 103 | return Status::OK(); | 490 | 103 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 151 | LocalSinkStateInfo& info) { | 486 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 151 | return Status::OK(); | 490 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 151 | LocalSinkStateInfo& info) { | 486 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 151 | return Status::OK(); | 490 | 151 | } |
|
491 | | |
492 | | template <typename LocalStateType> |
493 | 1.76M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
495 | 0 | LocalExchangeSharedState>) { |
496 | 0 | return nullptr; |
497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
498 | 0 | MultiCastSharedState>) { |
499 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
500 | 1.76M | } else { |
501 | 1.76M | auto ss = LocalStateType::SharedStateType::create_shared(); |
502 | 1.76M | ss->id = operator_id(); |
503 | 1.76M | for (auto& dest : dests_id()) { |
504 | 1.75M | ss->related_op_ids.insert(dest); |
505 | 1.75M | } |
506 | 1.76M | return ss; |
507 | 1.76M | } |
508 | 1.76M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 136k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 136k | } else { | 501 | 136k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 136k | ss->id = operator_id(); | 503 | 136k | for (auto& dest : dests_id()) { | 504 | 135k | ss->related_op_ids.insert(dest); | 505 | 135k | } | 506 | 136k | return ss; | 507 | 136k | } | 508 | 136k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 439k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 439k | } else { | 501 | 439k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 439k | ss->id = operator_id(); | 503 | 439k | for (auto& dest : dests_id()) { | 504 | 437k | ss->related_op_ids.insert(dest); | 505 | 437k | } | 506 | 439k | return ss; | 507 | 439k | } | 508 | 439k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 88 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 88 | } else { | 501 | 88 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 88 | ss->id = operator_id(); | 503 | 88 | for (auto& dest : dests_id()) { | 504 | 88 | ss->related_op_ids.insert(dest); | 505 | 88 | } | 506 | 88 | return ss; | 507 | 88 | } | 508 | 88 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 3 | } else { | 501 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 3 | ss->id = operator_id(); | 503 | 3 | for (auto& dest : dests_id()) { | 504 | 3 | ss->related_op_ids.insert(dest); | 505 | 3 | } | 506 | 3 | return ss; | 507 | 3 | } | 508 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 516 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 516 | } else { | 501 | 516 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 516 | ss->id = operator_id(); | 503 | 516 | for (auto& dest : dests_id()) { | 504 | 515 | ss->related_op_ids.insert(dest); | 505 | 515 | } | 506 | 516 | return ss; | 507 | 516 | } | 508 | 516 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 53.7k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 53.7k | } else { | 501 | 53.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 53.7k | ss->id = operator_id(); | 503 | 53.7k | for (auto& dest : dests_id()) { | 504 | 53.4k | ss->related_op_ids.insert(dest); | 505 | 53.4k | } | 506 | 53.7k | return ss; | 507 | 53.7k | } | 508 | 53.7k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 5.64k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 5.64k | } else { | 501 | 5.64k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 5.64k | ss->id = operator_id(); | 503 | 5.64k | for (auto& dest : dests_id()) { | 504 | 5.64k | ss->related_op_ids.insert(dest); | 505 | 5.64k | } | 506 | 5.64k | return ss; | 507 | 5.64k | } | 508 | 5.64k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 5.15k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 5.15k | } else { | 501 | 5.15k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 5.15k | ss->id = operator_id(); | 503 | 5.15k | for (auto& dest : dests_id()) { | 504 | 5.14k | ss->related_op_ids.insert(dest); | 505 | 5.14k | } | 506 | 5.15k | return ss; | 507 | 5.15k | } | 508 | 5.15k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 156 | } else { | 501 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 156 | ss->id = operator_id(); | 503 | 156 | for (auto& dest : dests_id()) { | 504 | 156 | ss->related_op_ids.insert(dest); | 505 | 156 | } | 506 | 156 | return ss; | 507 | 156 | } | 508 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 3.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 3.38k | } else { | 501 | 3.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 3.38k | ss->id = operator_id(); | 503 | 3.38k | for (auto& dest : dests_id()) { | 504 | 3.38k | ss->related_op_ids.insert(dest); | 505 | 3.38k | } | 506 | 3.38k | return ss; | 507 | 3.38k | } | 508 | 3.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 160 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 160 | } else { | 501 | 160 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 160 | ss->id = operator_id(); | 503 | 160 | for (auto& dest : dests_id()) { | 504 | 160 | ss->related_op_ids.insert(dest); | 505 | 160 | } | 506 | 160 | return ss; | 507 | 160 | } | 508 | 160 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 640 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 640 | } else { | 501 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 640 | ss->id = operator_id(); | 503 | 640 | for (auto& dest : dests_id()) { | 504 | 640 | ss->related_op_ids.insert(dest); | 505 | 640 | } | 506 | 640 | return ss; | 507 | 640 | } | 508 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 6.16k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 6.16k | } else { | 501 | 6.16k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 6.16k | ss->id = operator_id(); | 503 | 6.16k | for (auto& dest : dests_id()) { | 504 | 6.16k | ss->related_op_ids.insert(dest); | 505 | 6.16k | } | 506 | 6.16k | return ss; | 507 | 6.16k | } | 508 | 6.16k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 128 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 128 | } else { | 501 | 128 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 128 | ss->id = operator_id(); | 503 | 128 | for (auto& dest : dests_id()) { | 504 | 128 | ss->related_op_ids.insert(dest); | 505 | 128 | } | 506 | 128 | return ss; | 507 | 128 | } | 508 | 128 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 272k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 272k | } else { | 501 | 272k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 272k | ss->id = operator_id(); | 503 | 272k | for (auto& dest : dests_id()) { | 504 | 272k | ss->related_op_ids.insert(dest); | 505 | 272k | } | 506 | 272k | return ss; | 507 | 272k | } | 508 | 272k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 31 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 31 | } else { | 501 | 31 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 31 | ss->id = operator_id(); | 503 | 31 | for (auto& dest : dests_id()) { | 504 | 30 | ss->related_op_ids.insert(dest); | 505 | 30 | } | 506 | 31 | return ss; | 507 | 31 | } | 508 | 31 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 138k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 138k | } else { | 501 | 138k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 138k | ss->id = operator_id(); | 503 | 138k | for (auto& dest : dests_id()) { | 504 | 138k | ss->related_op_ids.insert(dest); | 505 | 138k | } | 506 | 138k | return ss; | 507 | 138k | } | 508 | 138k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 117 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 117 | } else { | 501 | 117 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 117 | ss->id = operator_id(); | 503 | 117 | for (auto& dest : dests_id()) { | 504 | 117 | ss->related_op_ids.insert(dest); | 505 | 117 | } | 506 | 117 | return ss; | 507 | 117 | } | 508 | 117 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 686k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 686k | } else { | 501 | 686k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 686k | ss->id = operator_id(); | 503 | 686k | for (auto& dest : dests_id()) { | 504 | 679k | ss->related_op_ids.insert(dest); | 505 | 679k | } | 506 | 686k | return ss; | 507 | 686k | } | 508 | 686k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 9.76k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 9.76k | } else { | 501 | 9.76k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 9.76k | ss->id = operator_id(); | 503 | 9.76k | for (auto& dest : dests_id()) { | 504 | 9.74k | ss->related_op_ids.insert(dest); | 505 | 9.74k | } | 506 | 9.76k | return ss; | 507 | 9.76k | } | 508 | 9.76k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 379 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 379 | } else { | 501 | 379 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 379 | ss->id = operator_id(); | 503 | 379 | for (auto& dest : dests_id()) { | 504 | 378 | ss->related_op_ids.insert(dest); | 505 | 378 | } | 506 | 379 | return ss; | 507 | 379 | } | 508 | 379 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 493 | 2.45k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 2.45k | } else { | 501 | 2.45k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 2.45k | ss->id = operator_id(); | 503 | 2.45k | for (auto& dest : dests_id()) { | 504 | 2.44k | ss->related_op_ids.insert(dest); | 505 | 2.44k | } | 506 | 2.45k | return ss; | 507 | 2.45k | } | 508 | 2.45k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 493 | 2.48k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 2.48k | } else { | 501 | 2.48k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 2.48k | ss->id = operator_id(); | 503 | 2.48k | for (auto& dest : dests_id()) { | 504 | 2.47k | ss->related_op_ids.insert(dest); | 505 | 2.47k | } | 506 | 2.48k | return ss; | 507 | 2.48k | } | 508 | 2.48k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 165 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 165 | } else { | 501 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 165 | ss->id = operator_id(); | 503 | 165 | for (auto& dest : dests_id()) { | 504 | 165 | ss->related_op_ids.insert(dest); | 505 | 165 | } | 506 | 165 | return ss; | 507 | 165 | } | 508 | 165 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 105 | } else { | 501 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 105 | ss->id = operator_id(); | 503 | 105 | for (auto& dest : dests_id()) { | 504 | 103 | ss->related_op_ids.insert(dest); | 505 | 103 | } | 506 | 105 | return ss; | 507 | 105 | } | 508 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
509 | | |
510 | | template <typename LocalStateType> |
511 | 2.64M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
512 | 2.64M | auto local_state = LocalStateType::create_unique(state, this); |
513 | 2.64M | RETURN_IF_ERROR(local_state->init(state, info)); |
514 | 2.64M | state->emplace_local_state(operator_id(), std::move(local_state)); |
515 | 2.64M | return Status::OK(); |
516 | 2.64M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 104k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 104k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 104k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 104k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 104k | return Status::OK(); | 516 | 104k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 316k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 316k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 316k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 316k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 316k | return Status::OK(); | 516 | 316k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 77 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 77 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 77 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 77 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 77 | return Status::OK(); | 516 | 77 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 31.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 31.4k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 31.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 31.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 31.4k | return Status::OK(); | 516 | 31.4k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 6.13k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 6.13k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 6.13k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 6.13k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 6.13k | return Status::OK(); | 516 | 6.13k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 6.62k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 6.62k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 6.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 6.62k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 6.62k | return Status::OK(); | 516 | 6.62k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 21 | return Status::OK(); | 516 | 21 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 264k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 264k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 264k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 264k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 264k | return Status::OK(); | 516 | 264k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 138k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 138k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 138k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 138k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 138k | return Status::OK(); | 516 | 138k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 461 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 461 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 461 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 461 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 461 | return Status::OK(); | 516 | 461 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 106 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 106 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 106 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 106 | return Status::OK(); | 516 | 106 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 4.37k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 4.37k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 4.37k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 4.37k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 4.37k | return Status::OK(); | 516 | 4.37k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 430k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 430k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 430k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 430k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 430k | return Status::OK(); | 516 | 430k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.14k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.14k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.14k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.14k | return Status::OK(); | 516 | 1.14k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 9.73k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.73k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.73k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.73k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.73k | return Status::OK(); | 516 | 9.73k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 221 | return Status::OK(); | 516 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.61k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.61k | return Status::OK(); | 516 | 1.61k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 55.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 55.6k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 55.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 55.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 55.6k | return Status::OK(); | 516 | 55.6k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 9.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.24k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.24k | return Status::OK(); | 516 | 9.24k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 275 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 275 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 275 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 275 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 275 | return Status::OK(); | 516 | 275 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.31k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.31k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.31k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.31k | return Status::OK(); | 516 | 2.31k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.30k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.30k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.30k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.30k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.30k | return Status::OK(); | 516 | 2.30k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 459 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 459 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 459 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 459 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 459 | return Status::OK(); | 516 | 459 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.05k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.05k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.05k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.05k | return Status::OK(); | 516 | 2.05k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 5.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 5.98k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 5.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 5.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 5.98k | return Status::OK(); | 516 | 5.98k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 752k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 752k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 752k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 752k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 752k | return Status::OK(); | 516 | 752k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 14 | return Status::OK(); | 516 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 151 | return Status::OK(); | 516 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.95k | return Status::OK(); | 516 | 1.95k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.60k | return Status::OK(); | 516 | 1.60k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.32k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.32k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.32k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.32k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.32k | return Status::OK(); | 516 | 2.32k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 12.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 12.7k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 12.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 12.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 12.7k | return Status::OK(); | 516 | 12.7k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 474k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 474k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 474k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 474k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 474k | return Status::OK(); | 516 | 474k | } |
|
517 | | |
518 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
519 | | RuntimeState* state) |
520 | 2.10M | : _parent(parent), _state(state) {} |
521 | | |
522 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
523 | 2.63M | : _num_rows_returned(0), |
524 | 2.63M | _rows_returned_counter(nullptr), |
525 | 2.63M | _parent(parent), |
526 | 2.63M | _state(state), |
527 | 2.63M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
528 | | |
529 | | template <typename SharedStateArg> |
530 | 2.64M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
531 | 2.64M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
532 | 2.64M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
533 | 2.64M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
534 | 2.64M | _operator_profile->set_metadata(_parent->node_id()); |
535 | | // indent is false so that source operator will have same |
536 | | // indentation_level with its parent operator. |
537 | 2.64M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
538 | 2.64M | _operator_profile->add_child(_common_profile.get(), true); |
539 | 2.64M | _operator_profile->add_child(_custom_profile.get(), true); |
540 | 2.64M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
541 | 2.64M | if constexpr (!is_fake_shared) { |
542 | 1.35M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
543 | 764k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
544 | 764k | .first.get() |
545 | 764k | ->template cast<SharedStateArg>(); |
546 | | |
547 | 764k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
548 | 764k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
549 | 764k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
550 | 764k | } else if (info.shared_state) { |
551 | 520k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
552 | 0 | DCHECK(false); |
553 | 0 | } |
554 | | // For UnionSourceOperator without children, there is no shared state. |
555 | 520k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
556 | | |
557 | 520k | _dependency = _shared_state->create_source_dependency( |
558 | 520k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
559 | 520k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
560 | 520k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
561 | 520k | } else { |
562 | 73.4k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
563 | 8.97k | DCHECK(false); |
564 | 8.97k | } |
565 | 73.4k | } |
566 | 1.35M | } |
567 | | |
568 | 2.64M | if (must_set_shared_state() && _shared_state == nullptr) { |
569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
570 | 0 | } |
571 | | |
572 | 2.64M | _rows_returned_counter = |
573 | 2.64M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
574 | 2.64M | _blocks_returned_counter = |
575 | 2.64M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
576 | 2.64M | _output_block_bytes_counter = |
577 | 2.64M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
578 | 2.64M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
579 | 2.64M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
580 | 2.64M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
581 | 2.64M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
582 | 2.64M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
583 | 2.64M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
584 | 2.64M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
585 | 2.64M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
586 | 2.64M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
587 | 2.64M | _memory_used_counter = |
588 | 2.64M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
589 | 2.64M | _common_profile->add_info_string("IsColocate", |
590 | 2.64M | std::to_string(_parent->is_colocated_operator())); |
591 | 2.64M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
592 | 2.64M | _common_profile->add_info_string("FollowedByShuffledOperator", |
593 | 2.64M | std::to_string(_parent->followed_by_shuffled_operator())); |
594 | 2.64M | return Status::OK(); |
595 | 2.64M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 105k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 105k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 105k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 105k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 105k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 105k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 105k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 105k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 105k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 105k | if constexpr (!is_fake_shared) { | 542 | 105k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 16.9k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 16.9k | .first.get() | 545 | 16.9k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 16.9k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 16.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 16.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 88.1k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 86.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 86.3k | _dependency = _shared_state->create_source_dependency( | 558 | 86.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 86.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 86.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 86.3k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 1.76k | } | 566 | 105k | } | 567 | | | 568 | 105k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 105k | _rows_returned_counter = | 573 | 105k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 105k | _blocks_returned_counter = | 575 | 105k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 105k | _output_block_bytes_counter = | 577 | 105k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 105k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 105k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 105k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 105k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 105k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 105k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 105k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 105k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 105k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 105k | _memory_used_counter = | 588 | 105k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 105k | _common_profile->add_info_string("IsColocate", | 590 | 105k | std::to_string(_parent->is_colocated_operator())); | 591 | 105k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 105k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 105k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 105k | return Status::OK(); | 595 | 105k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 1 | if constexpr (!is_fake_shared) { | 542 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 1 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 1 | _dependency = _shared_state->create_source_dependency( | 558 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 1 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 1 | } | 567 | | | 568 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 1 | _rows_returned_counter = | 573 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 1 | _blocks_returned_counter = | 575 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 1 | _output_block_bytes_counter = | 577 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 1 | _memory_used_counter = | 588 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 1 | _common_profile->add_info_string("IsColocate", | 590 | 1 | std::to_string(_parent->is_colocated_operator())); | 591 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 1 | return Status::OK(); | 595 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 272k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 272k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 272k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 272k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 272k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 272k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 272k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 272k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 272k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 272k | if constexpr (!is_fake_shared) { | 542 | 272k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 272k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 264k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 264k | _dependency = _shared_state->create_source_dependency( | 558 | 264k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 264k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 264k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 264k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 8.05k | } | 566 | 272k | } | 567 | | | 568 | 272k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 272k | _rows_returned_counter = | 573 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 272k | _blocks_returned_counter = | 575 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 272k | _output_block_bytes_counter = | 577 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 272k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 272k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 272k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 272k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 272k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 272k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 272k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 272k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 272k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 272k | _memory_used_counter = | 588 | 272k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 272k | _common_profile->add_info_string("IsColocate", | 590 | 272k | std::to_string(_parent->is_colocated_operator())); | 591 | 272k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 272k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 272k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 272k | return Status::OK(); | 595 | 272k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 23 | if constexpr (!is_fake_shared) { | 542 | 23 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 23 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 20 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 20 | _dependency = _shared_state->create_source_dependency( | 558 | 20 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 20 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 20 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 20 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 3 | } | 566 | 23 | } | 567 | | | 568 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 23 | _rows_returned_counter = | 573 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 23 | _blocks_returned_counter = | 575 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 23 | _output_block_bytes_counter = | 577 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 23 | _memory_used_counter = | 588 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 23 | _common_profile->add_info_string("IsColocate", | 590 | 23 | std::to_string(_parent->is_colocated_operator())); | 591 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 23 | return Status::OK(); | 595 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 9.75k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 9.75k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 9.75k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 9.75k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 9.75k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 9.75k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 9.75k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 9.75k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 9.75k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 9.75k | if constexpr (!is_fake_shared) { | 542 | 9.75k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 9.75k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 9.66k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 9.66k | _dependency = _shared_state->create_source_dependency( | 558 | 9.66k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 9.66k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 9.66k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.66k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 96 | } | 566 | 9.75k | } | 567 | | | 568 | 9.75k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 9.75k | _rows_returned_counter = | 573 | 9.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.75k | _blocks_returned_counter = | 575 | 9.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 9.75k | _output_block_bytes_counter = | 577 | 9.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 9.75k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 9.75k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 9.75k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 9.75k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 9.75k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 9.75k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 9.75k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 9.75k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 9.75k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 9.75k | _memory_used_counter = | 588 | 9.75k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 9.75k | _common_profile->add_info_string("IsColocate", | 590 | 9.75k | std::to_string(_parent->is_colocated_operator())); | 591 | 9.75k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 9.75k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 9.75k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 9.75k | return Status::OK(); | 595 | 9.75k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 6.15k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 6.15k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 6.15k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 6.15k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 6.15k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 6.15k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 6.15k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 6.15k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 6.15k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 6.15k | if constexpr (!is_fake_shared) { | 542 | 6.15k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 6.15k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 6.11k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 6.11k | _dependency = _shared_state->create_source_dependency( | 558 | 6.11k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 6.11k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 6.11k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 6.11k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 37 | } | 566 | 6.15k | } | 567 | | | 568 | 6.15k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 6.15k | _rows_returned_counter = | 573 | 6.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 6.15k | _blocks_returned_counter = | 575 | 6.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 6.15k | _output_block_bytes_counter = | 577 | 6.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 6.15k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 6.15k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 6.15k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 6.15k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 6.15k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 6.15k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 6.15k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 6.15k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 6.15k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 6.15k | _memory_used_counter = | 588 | 6.15k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 6.15k | _common_profile->add_info_string("IsColocate", | 590 | 6.15k | std::to_string(_parent->is_colocated_operator())); | 591 | 6.15k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 6.15k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 6.15k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 6.15k | return Status::OK(); | 595 | 6.15k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 138k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 138k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 138k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 138k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 138k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 138k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 138k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 138k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 138k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 138k | if constexpr (!is_fake_shared) { | 542 | 138k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 138k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 136k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 136k | _dependency = _shared_state->create_source_dependency( | 558 | 136k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 136k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 136k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 136k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 1.80k | } | 566 | 138k | } | 567 | | | 568 | 138k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 138k | _rows_returned_counter = | 573 | 138k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 138k | _blocks_returned_counter = | 575 | 138k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 138k | _output_block_bytes_counter = | 577 | 138k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 138k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 138k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 138k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 138k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 138k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 138k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 138k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 138k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 138k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 138k | _memory_used_counter = | 588 | 138k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 138k | _common_profile->add_info_string("IsColocate", | 590 | 138k | std::to_string(_parent->is_colocated_operator())); | 591 | 138k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 138k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 138k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 138k | return Status::OK(); | 595 | 138k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 462 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 462 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 462 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 462 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 462 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 462 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 462 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 462 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 462 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 462 | if constexpr (!is_fake_shared) { | 542 | 462 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 458 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 458 | .first.get() | 545 | 458 | ->template cast<SharedStateArg>(); | 546 | | | 547 | 458 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 458 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 458 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 458 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | |
| 557 | 0 | _dependency = _shared_state->create_source_dependency( | 558 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 4 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 4 | } | 566 | 462 | } | 567 | | | 568 | 462 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 462 | _rows_returned_counter = | 573 | 462 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 462 | _blocks_returned_counter = | 575 | 462 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 462 | _output_block_bytes_counter = | 577 | 462 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 462 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 462 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 462 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 462 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 462 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 462 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 462 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 462 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 462 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 462 | _memory_used_counter = | 588 | 462 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 462 | _common_profile->add_info_string("IsColocate", | 590 | 462 | std::to_string(_parent->is_colocated_operator())); | 591 | 462 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 462 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 462 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 462 | return Status::OK(); | 595 | 462 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 108 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 108 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 108 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 108 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 108 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 108 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 108 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 108 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 108 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 108 | if constexpr (!is_fake_shared) { | 542 | 108 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 108 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 105 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 105 | _dependency = _shared_state->create_source_dependency( | 558 | 105 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 105 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 105 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 105 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 3 | } | 566 | 108 | } | 567 | | | 568 | 108 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 108 | _rows_returned_counter = | 573 | 108 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 108 | _blocks_returned_counter = | 575 | 108 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 108 | _output_block_bytes_counter = | 577 | 108 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 108 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 108 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 108 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 108 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 108 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 108 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 108 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 108 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 108 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 108 | _memory_used_counter = | 588 | 108 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 108 | _common_profile->add_info_string("IsColocate", | 590 | 108 | std::to_string(_parent->is_colocated_operator())); | 591 | 108 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 108 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 108 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 108 | return Status::OK(); | 595 | 108 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 1.28M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 1.28M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 1.28M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 1.28M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 1.28M | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 1.28M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 1.28M | _operator_profile->add_child(_common_profile.get(), true); | 539 | 1.28M | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 1.28M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | | if constexpr (!is_fake_shared) { | 542 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | | .first.get() | 545 | | ->template cast<SharedStateArg>(); | 546 | | | 547 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | | _dependency = _shared_state->create_source_dependency( | 558 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | } | 566 | | } | 567 | | | 568 | 1.28M | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 1.28M | _rows_returned_counter = | 573 | 1.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 1.28M | _blocks_returned_counter = | 575 | 1.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 1.28M | _output_block_bytes_counter = | 577 | 1.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 1.28M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 1.28M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 1.28M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 1.28M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 1.28M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 1.28M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 1.28M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 1.28M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 1.28M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 1.28M | _memory_used_counter = | 588 | 1.28M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 1.28M | _common_profile->add_info_string("IsColocate", | 590 | 1.28M | std::to_string(_parent->is_colocated_operator())); | 591 | 1.28M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 1.28M | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 1.28M | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 1.28M | return Status::OK(); | 595 | 1.28M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 55.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 55.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 55.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 55.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 55.5k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 55.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 55.5k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 55.5k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 55.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 55.5k | if constexpr (!is_fake_shared) { | 542 | 55.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 55.5k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 3.92k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 3.92k | _dependency = _shared_state->create_source_dependency( | 558 | 3.92k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 3.92k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 3.92k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 51.6k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 51.6k | } | 566 | 55.5k | } | 567 | | | 568 | 55.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 55.5k | _rows_returned_counter = | 573 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 55.5k | _blocks_returned_counter = | 575 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 55.5k | _output_block_bytes_counter = | 577 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 55.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 55.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 55.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 55.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 55.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 55.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 55.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 55.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 55.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 55.5k | _memory_used_counter = | 588 | 55.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 55.5k | _common_profile->add_info_string("IsColocate", | 590 | 55.5k | std::to_string(_parent->is_colocated_operator())); | 591 | 55.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 55.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 55.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 55.5k | return Status::OK(); | 595 | 55.5k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 17 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 17 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 17 | if constexpr (!is_fake_shared) { | 542 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 17 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 17 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 17 | _dependency = _shared_state->create_source_dependency( | 558 | 17 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 17 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 17 | } | 567 | | | 568 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 17 | _rows_returned_counter = | 573 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 17 | _blocks_returned_counter = | 575 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 17 | _output_block_bytes_counter = | 577 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 17 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 17 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 17 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 17 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 17 | _memory_used_counter = | 588 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 17 | _common_profile->add_info_string("IsColocate", | 590 | 17 | std::to_string(_parent->is_colocated_operator())); | 591 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 17 | return Status::OK(); | 595 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 9.27k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 9.27k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 9.27k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 9.27k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 9.27k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 9.27k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 9.27k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 9.27k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 9.27k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 9.27k | if constexpr (!is_fake_shared) { | 542 | 9.27k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 9.27k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 9.08k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 9.08k | _dependency = _shared_state->create_source_dependency( | 558 | 9.08k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 9.08k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 9.08k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.08k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 188 | } | 566 | 9.27k | } | 567 | | | 568 | 9.27k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 9.27k | _rows_returned_counter = | 573 | 9.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.27k | _blocks_returned_counter = | 575 | 9.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 9.27k | _output_block_bytes_counter = | 577 | 9.27k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 9.27k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 9.27k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 9.27k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 9.27k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 9.27k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 9.27k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 9.27k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 9.27k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 9.27k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 9.27k | _memory_used_counter = | 588 | 9.27k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 9.27k | _common_profile->add_info_string("IsColocate", | 590 | 9.27k | std::to_string(_parent->is_colocated_operator())); | 591 | 9.27k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 9.27k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 9.27k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 9.27k | return Status::OK(); | 595 | 9.27k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 380 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 380 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 380 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 380 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 380 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 380 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 380 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 380 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 380 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 380 | if constexpr (!is_fake_shared) { | 542 | 380 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 380 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 380 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 380 | _dependency = _shared_state->create_source_dependency( | 558 | 380 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 380 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 380 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 380 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 380 | } | 567 | | | 568 | 380 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 380 | _rows_returned_counter = | 573 | 380 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 380 | _blocks_returned_counter = | 575 | 380 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 380 | _output_block_bytes_counter = | 577 | 380 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 380 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 380 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 380 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 380 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 380 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 380 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 380 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 380 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 380 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 380 | _memory_used_counter = | 588 | 380 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 380 | _common_profile->add_info_string("IsColocate", | 590 | 380 | std::to_string(_parent->is_colocated_operator())); | 591 | 380 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 380 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 380 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 380 | return Status::OK(); | 595 | 380 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 4.77k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 4.77k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 4.77k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 4.77k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 4.77k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 4.77k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 4.77k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 4.77k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 4.77k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 4.77k | if constexpr (!is_fake_shared) { | 542 | 4.77k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 4.77k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 3.91k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 3.91k | _dependency = _shared_state->create_source_dependency( | 558 | 3.91k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 3.91k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 3.91k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 3.91k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 864 | } | 566 | 4.77k | } | 567 | | | 568 | 4.77k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 4.77k | _rows_returned_counter = | 573 | 4.77k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 4.77k | _blocks_returned_counter = | 575 | 4.77k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 4.77k | _output_block_bytes_counter = | 577 | 4.77k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 4.77k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 4.77k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 4.77k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 4.77k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 4.77k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 4.77k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 4.77k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 4.77k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 4.77k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 4.77k | _memory_used_counter = | 588 | 4.77k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 4.77k | _common_profile->add_info_string("IsColocate", | 590 | 4.77k | std::to_string(_parent->is_colocated_operator())); | 591 | 4.77k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 4.77k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 4.77k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 4.77k | return Status::OK(); | 595 | 4.77k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 755k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 755k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 755k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 755k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 755k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 755k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 755k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 755k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 755k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 755k | if constexpr (!is_fake_shared) { | 542 | 755k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 747k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 747k | .first.get() | 545 | 747k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 747k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 747k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 747k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 747k | } else if (info.shared_state) { | 551 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | 0 | DCHECK(false); | 553 | 0 | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | |
| 557 | 0 | _dependency = _shared_state->create_source_dependency( | 558 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 8.97k | } else { | 562 | 8.97k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | 8.97k | DCHECK(false); | 564 | 8.97k | } | 565 | 8.97k | } | 566 | 755k | } | 567 | | | 568 | 755k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 755k | _rows_returned_counter = | 573 | 755k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 755k | _blocks_returned_counter = | 575 | 755k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 755k | _output_block_bytes_counter = | 577 | 755k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 755k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 755k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 755k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 755k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 755k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 755k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 755k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 755k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 755k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 755k | _memory_used_counter = | 588 | 755k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 755k | _common_profile->add_info_string("IsColocate", | 590 | 755k | std::to_string(_parent->is_colocated_operator())); | 591 | 755k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 755k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 755k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 755k | return Status::OK(); | 595 | 755k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 151 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 151 | if constexpr (!is_fake_shared) { | 542 | 151 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 151 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 151 | _dependency = _shared_state->create_source_dependency( | 558 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 151 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 151 | } | 567 | | | 568 | 151 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 151 | _rows_returned_counter = | 573 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 151 | _blocks_returned_counter = | 575 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 151 | _output_block_bytes_counter = | 577 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 151 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 151 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 151 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 151 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 151 | _memory_used_counter = | 588 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 151 | _common_profile->add_info_string("IsColocate", | 590 | 151 | std::to_string(_parent->is_colocated_operator())); | 591 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 151 | return Status::OK(); | 595 | 151 | } |
|
596 | | |
597 | | template <typename SharedStateArg> |
598 | 2.65M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
599 | 2.65M | _conjuncts.resize(_parent->_conjuncts.size()); |
600 | 2.65M | _projections.resize(_parent->_projections.size()); |
601 | 3.15M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
602 | 501k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
603 | 501k | } |
604 | 5.56M | for (size_t i = 0; i < _projections.size(); i++) { |
605 | 2.90M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
606 | 2.90M | } |
607 | 2.65M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
608 | 2.66M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
609 | 10.3k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
610 | 68.8k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
611 | 58.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
612 | 58.5k | state, _intermediate_projections[i][j])); |
613 | 58.5k | } |
614 | 10.3k | } |
615 | 2.65M | return Status::OK(); |
616 | 2.65M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 105k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 105k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 105k | _projections.resize(_parent->_projections.size()); | 601 | 106k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 1.26k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 1.26k | } | 604 | 525k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 419k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 419k | } | 607 | 105k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 106k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 1.20k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 13.4k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 12.2k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 12.2k | state, _intermediate_projections[i][j])); | 613 | 12.2k | } | 614 | 1.20k | } | 615 | 105k | return Status::OK(); | 616 | 105k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 3 | _projections.resize(_parent->_projections.size()); | 601 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 3 | return Status::OK(); | 616 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 273k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 273k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 273k | _projections.resize(_parent->_projections.size()); | 601 | 273k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 273k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 354 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 354 | } | 607 | 273k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 273k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 273k | return Status::OK(); | 616 | 273k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 23 | _projections.resize(_parent->_projections.size()); | 601 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 23 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 23 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 23 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 23 | return Status::OK(); | 616 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 9.76k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 9.76k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 9.76k | _projections.resize(_parent->_projections.size()); | 601 | 9.83k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 69 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 69 | } | 604 | 57.5k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 47.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 47.8k | } | 607 | 9.76k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 9.91k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 146 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 925 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 779 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 779 | state, _intermediate_projections[i][j])); | 613 | 779 | } | 614 | 146 | } | 615 | 9.76k | return Status::OK(); | 616 | 9.76k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 6.16k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 6.16k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 6.16k | _projections.resize(_parent->_projections.size()); | 601 | 6.85k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 684 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 684 | } | 604 | 16.2k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 10.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 10.0k | } | 607 | 6.16k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 6.25k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 87 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 658 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 571 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 571 | state, _intermediate_projections[i][j])); | 613 | 571 | } | 614 | 87 | } | 615 | 6.16k | return Status::OK(); | 616 | 6.16k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 138k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 138k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 138k | _projections.resize(_parent->_projections.size()); | 601 | 142k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 4.15k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 4.15k | } | 604 | 401k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 262k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 262k | } | 607 | 138k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 138k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 279 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 2.12k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 1.84k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 1.84k | state, _intermediate_projections[i][j])); | 613 | 1.84k | } | 614 | 279 | } | 615 | 138k | return Status::OK(); | 616 | 138k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 464 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 464 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 464 | _projections.resize(_parent->_projections.size()); | 601 | 468 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 4 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 4 | } | 604 | 1.51k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 1.04k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 1.04k | } | 607 | 464 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 464 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 464 | return Status::OK(); | 616 | 464 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 112 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 112 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 112 | _projections.resize(_parent->_projections.size()); | 601 | 112 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 232 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 120 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 120 | } | 607 | 112 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 112 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 112 | return Status::OK(); | 616 | 112 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 1.29M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 1.29M | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 1.29M | _projections.resize(_parent->_projections.size()); | 601 | 1.78M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 491k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 491k | } | 604 | 3.36M | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 2.06M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 2.06M | } | 607 | 1.29M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 1.30M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 8.63k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 51.6k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 43.0k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 43.0k | state, _intermediate_projections[i][j])); | 613 | 43.0k | } | 614 | 8.63k | } | 615 | 1.29M | return Status::OK(); | 616 | 1.29M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 55.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 55.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 55.9k | _projections.resize(_parent->_projections.size()); | 601 | 55.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 148k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 92.3k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 92.3k | } | 607 | 55.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 55.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 55.9k | return Status::OK(); | 616 | 55.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 17 | _projections.resize(_parent->_projections.size()); | 601 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 17 | return Status::OK(); | 616 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 9.28k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 9.28k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 9.28k | _projections.resize(_parent->_projections.size()); | 601 | 12.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 3.05k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 3.05k | } | 604 | 9.28k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 9.28k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 9.28k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 9.28k | return Status::OK(); | 616 | 9.28k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 381 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 381 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 381 | _projections.resize(_parent->_projections.size()); | 601 | 381 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 381 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 381 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 381 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 381 | return Status::OK(); | 616 | 381 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 4.99k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 4.99k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 4.99k | _projections.resize(_parent->_projections.size()); | 601 | 4.99k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 4.99k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 4.99k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 4.99k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 4.99k | return Status::OK(); | 616 | 4.99k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 759k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 759k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 759k | _projections.resize(_parent->_projections.size()); | 601 | 759k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 759k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 759k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 759k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 759k | return Status::OK(); | 616 | 759k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 151 | _projections.resize(_parent->_projections.size()); | 601 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 7 | } | 604 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 296 | } | 607 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 152 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 2 | state, _intermediate_projections[i][j])); | 613 | 2 | } | 614 | 1 | } | 615 | 151 | return Status::OK(); | 616 | 151 | } |
|
617 | | |
618 | | template <typename SharedStateArg> |
619 | 8.03k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
620 | 8.03k | if (_terminated) { |
621 | 0 | return Status::OK(); |
622 | 0 | } |
623 | 8.03k | _terminated = true; |
624 | 8.03k | return Status::OK(); |
625 | 8.03k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 775 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 775 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 775 | _terminated = true; | 624 | 775 | return Status::OK(); | 625 | 775 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 128 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 128 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 128 | _terminated = true; | 624 | 128 | return Status::OK(); | 625 | 128 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 118 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 118 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 118 | _terminated = true; | 624 | 118 | return Status::OK(); | 625 | 118 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 2 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 2 | _terminated = true; | 624 | 2 | return Status::OK(); | 625 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 272 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 272 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 272 | _terminated = true; | 624 | 272 | return Status::OK(); | 625 | 272 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 5.54k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 5.54k | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 5.54k | _terminated = true; | 624 | 5.54k | return Status::OK(); | 625 | 5.54k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 9 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 9 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 9 | _terminated = true; | 624 | 9 | return Status::OK(); | 625 | 9 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 11 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 11 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 11 | _terminated = true; | 624 | 11 | return Status::OK(); | 625 | 11 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 258 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 258 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 258 | _terminated = true; | 624 | 258 | return Status::OK(); | 625 | 258 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 902 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 902 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 902 | _terminated = true; | 624 | 902 | return Status::OK(); | 625 | 902 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 15 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 15 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 15 | _terminated = true; | 624 | 15 | return Status::OK(); | 625 | 15 | } |
|
626 | | |
627 | | template <typename SharedStateArg> |
628 | 2.95M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
629 | 2.95M | if (_closed) { |
630 | 301k | return Status::OK(); |
631 | 301k | } |
632 | 2.65M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
633 | 1.36M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
634 | 1.36M | } |
635 | 2.65M | _closed = true; |
636 | 2.65M | return Status::OK(); |
637 | 2.95M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 105k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 105k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 105k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 105k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 105k | } | 635 | 105k | _closed = true; | 636 | 105k | return Status::OK(); | 637 | 105k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 3 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 3 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 3 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 3 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 3 | } | 635 | 3 | _closed = true; | 636 | 3 | return Status::OK(); | 637 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 543k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 543k | if (_closed) { | 630 | 272k | return Status::OK(); | 631 | 272k | } | 632 | 271k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 271k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 271k | } | 635 | 271k | _closed = true; | 636 | 271k | return Status::OK(); | 637 | 543k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 23 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 23 | } | 635 | 23 | _closed = true; | 636 | 23 | return Status::OK(); | 637 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 9.76k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 9.76k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 9.76k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 9.76k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 9.76k | } | 635 | 9.76k | _closed = true; | 636 | 9.76k | return Status::OK(); | 637 | 9.76k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 12.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 12.3k | if (_closed) { | 630 | 6.23k | return Status::OK(); | 631 | 6.23k | } | 632 | 6.15k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 6.15k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 6.15k | } | 635 | 6.15k | _closed = true; | 636 | 6.15k | return Status::OK(); | 637 | 12.3k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 138k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 138k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 138k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 138k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 138k | } | 635 | 138k | _closed = true; | 636 | 138k | return Status::OK(); | 637 | 138k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 464 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 464 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 464 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 464 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 464 | } | 635 | 464 | _closed = true; | 636 | 464 | return Status::OK(); | 637 | 464 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 107 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 107 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 107 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 107 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 107 | } | 635 | 107 | _closed = true; | 636 | 107 | return Status::OK(); | 637 | 107 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 1.31M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 1.31M | if (_closed) { | 630 | 17.8k | return Status::OK(); | 631 | 17.8k | } | 632 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | | } | 635 | 1.29M | _closed = true; | 636 | 1.29M | return Status::OK(); | 637 | 1.31M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 55.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 55.9k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 55.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 55.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 55.9k | } | 635 | 55.9k | _closed = true; | 636 | 55.9k | return Status::OK(); | 637 | 55.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 28 | if (_closed) { | 630 | 14 | return Status::OK(); | 631 | 14 | } | 632 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 14 | } | 635 | 14 | _closed = true; | 636 | 14 | return Status::OK(); | 637 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 9.28k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 9.28k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 9.28k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 9.28k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 9.28k | } | 635 | 9.28k | _closed = true; | 636 | 9.28k | return Status::OK(); | 637 | 9.28k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 557 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 557 | if (_closed) { | 630 | 279 | return Status::OK(); | 631 | 279 | } | 632 | 278 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 278 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 278 | } | 635 | 278 | _closed = true; | 636 | 278 | return Status::OK(); | 637 | 557 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 10.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 10.0k | if (_closed) { | 630 | 5.03k | return Status::OK(); | 631 | 5.03k | } | 632 | 4.97k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 4.97k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 4.97k | } | 635 | 4.97k | _closed = true; | 636 | 4.97k | return Status::OK(); | 637 | 10.0k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 760k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 760k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 760k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 760k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 760k | } | 635 | 760k | _closed = true; | 636 | 760k | return Status::OK(); | 637 | 760k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 304 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 304 | if (_closed) { | 630 | 162 | return Status::OK(); | 631 | 162 | } | 632 | 142 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 142 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 142 | } | 635 | 142 | _closed = true; | 636 | 142 | return Status::OK(); | 637 | 304 | } |
|
638 | | |
639 | | template <typename SharedState> |
640 | 2.10M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
641 | | // create profile |
642 | 2.10M | _operator_profile = |
643 | 2.10M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
644 | 2.10M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
645 | 2.10M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
646 | | |
647 | | // indentation is true |
648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
649 | | // So we should set the indentation to true. |
650 | 2.10M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
651 | 2.10M | _operator_profile->add_child(_common_profile, true); |
652 | 2.10M | _operator_profile->add_child(_custom_profile, true); |
653 | | |
654 | 2.10M | _operator_profile->set_metadata(_parent->node_id()); |
655 | 2.10M | _wait_for_finish_dependency_timer = |
656 | 2.10M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
657 | 2.10M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
658 | 2.10M | if constexpr (!is_fake_shared) { |
659 | 1.41M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
660 | 1.41M | info.shared_state_map.end()) { |
661 | 315k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
662 | 298k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
663 | 298k | } |
664 | 315k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
665 | 315k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
666 | 315k | ? 0 |
667 | 315k | : info.task_idx] |
668 | 315k | .get(); |
669 | 315k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
670 | 1.09M | } else { |
671 | 1.09M | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
672 | 197 | DCHECK(false); |
673 | 197 | } |
674 | 1.09M | _shared_state = info.shared_state->template cast<SharedState>(); |
675 | 1.09M | _dependency = _shared_state->create_sink_dependency( |
676 | 1.09M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
677 | 1.09M | } |
678 | 1.41M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
679 | 1.41M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
680 | 1.41M | } |
681 | | |
682 | 2.10M | if (must_set_shared_state() && _shared_state == nullptr) { |
683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
684 | 0 | } |
685 | | |
686 | 2.10M | _rows_input_counter = |
687 | 2.10M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
688 | 2.10M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
689 | 2.10M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
690 | 2.10M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
691 | 2.10M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
692 | 2.10M | _memory_used_counter = |
693 | 2.10M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
694 | 2.10M | _common_profile->add_info_string("IsColocate", |
695 | 2.10M | std::to_string(_parent->is_colocated_operator())); |
696 | 2.10M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
697 | 2.10M | _common_profile->add_info_string("FollowedByShuffledOperator", |
698 | 2.10M | std::to_string(_parent->followed_by_shuffled_operator())); |
699 | 2.10M | return Status::OK(); |
700 | 2.10M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 153k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 153k | _operator_profile = | 643 | 153k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 153k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 153k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 153k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 153k | _operator_profile->add_child(_common_profile, true); | 652 | 153k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 153k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 153k | _wait_for_finish_dependency_timer = | 656 | 153k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 153k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 153k | if constexpr (!is_fake_shared) { | 659 | 153k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 153k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 16.9k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 16.9k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 16.9k | ? 0 | 667 | 16.9k | : info.task_idx] | 668 | 16.9k | .get(); | 669 | 16.9k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 136k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 136k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 136k | _dependency = _shared_state->create_sink_dependency( | 676 | 136k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 136k | } | 678 | 153k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 153k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 153k | } | 681 | | | 682 | 153k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 153k | _rows_input_counter = | 687 | 153k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 153k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 153k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 153k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 153k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 153k | _memory_used_counter = | 693 | 153k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 153k | _common_profile->add_info_string("IsColocate", | 695 | 153k | std::to_string(_parent->is_colocated_operator())); | 696 | 153k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 153k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 153k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 153k | return Status::OK(); | 700 | 153k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 2 | _operator_profile = | 643 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 2 | _operator_profile->add_child(_common_profile, true); | 652 | 2 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 2 | _wait_for_finish_dependency_timer = | 656 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 2 | if constexpr (!is_fake_shared) { | 659 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 2 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 2 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 2 | _dependency = _shared_state->create_sink_dependency( | 676 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 2 | } | 678 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 2 | } | 681 | | | 682 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 2 | _rows_input_counter = | 687 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 2 | _memory_used_counter = | 693 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 2 | _common_profile->add_info_string("IsColocate", | 695 | 2 | std::to_string(_parent->is_colocated_operator())); | 696 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 2 | return Status::OK(); | 700 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 272k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 272k | _operator_profile = | 643 | 272k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 272k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 272k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 272k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 272k | _operator_profile->add_child(_common_profile, true); | 652 | 272k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 272k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 272k | _wait_for_finish_dependency_timer = | 656 | 272k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 272k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 272k | if constexpr (!is_fake_shared) { | 659 | 272k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 272k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 272k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 272k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 272k | _dependency = _shared_state->create_sink_dependency( | 676 | 272k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 272k | } | 678 | 272k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 272k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 272k | } | 681 | | | 682 | 272k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 272k | _rows_input_counter = | 687 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 272k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 272k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 272k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 272k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 272k | _memory_used_counter = | 693 | 272k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 272k | _common_profile->add_info_string("IsColocate", | 695 | 272k | std::to_string(_parent->is_colocated_operator())); | 696 | 272k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 272k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 272k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 272k | return Status::OK(); | 700 | 272k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 29 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 29 | _operator_profile = | 643 | 29 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 29 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 29 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 29 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 29 | _operator_profile->add_child(_common_profile, true); | 652 | 29 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 29 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 29 | _wait_for_finish_dependency_timer = | 656 | 29 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 29 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 29 | if constexpr (!is_fake_shared) { | 659 | 29 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 29 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 29 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 29 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 29 | _dependency = _shared_state->create_sink_dependency( | 676 | 29 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 29 | } | 678 | 29 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 29 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 29 | } | 681 | | | 682 | 29 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 29 | _rows_input_counter = | 687 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 29 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 29 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 29 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 29 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 29 | _memory_used_counter = | 693 | 29 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 29 | _common_profile->add_info_string("IsColocate", | 695 | 29 | std::to_string(_parent->is_colocated_operator())); | 696 | 29 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 29 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 29 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 29 | return Status::OK(); | 700 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 9.75k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 9.75k | _operator_profile = | 643 | 9.75k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 9.75k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 9.75k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 9.75k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 9.75k | _operator_profile->add_child(_common_profile, true); | 652 | 9.75k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 9.75k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 9.75k | _wait_for_finish_dependency_timer = | 656 | 9.75k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 9.75k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 9.75k | if constexpr (!is_fake_shared) { | 659 | 9.75k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 9.75k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 9.75k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 9.75k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 9.75k | _dependency = _shared_state->create_sink_dependency( | 676 | 9.75k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 9.75k | } | 678 | 9.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 9.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 9.75k | } | 681 | | | 682 | 9.75k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 9.75k | _rows_input_counter = | 687 | 9.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 9.75k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 9.75k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 9.75k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 9.75k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 9.75k | _memory_used_counter = | 693 | 9.75k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 9.75k | _common_profile->add_info_string("IsColocate", | 695 | 9.75k | std::to_string(_parent->is_colocated_operator())); | 696 | 9.75k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 9.75k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 9.75k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 9.75k | return Status::OK(); | 700 | 9.75k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 6.16k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 6.16k | _operator_profile = | 643 | 6.16k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 6.16k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 6.16k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 6.16k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 6.16k | _operator_profile->add_child(_common_profile, true); | 652 | 6.16k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 6.16k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 6.16k | _wait_for_finish_dependency_timer = | 656 | 6.16k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 6.16k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 6.16k | if constexpr (!is_fake_shared) { | 659 | 6.16k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 6.16k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 6.16k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 6.16k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 6.16k | _dependency = _shared_state->create_sink_dependency( | 676 | 6.16k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 6.16k | } | 678 | 6.16k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 6.16k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 6.16k | } | 681 | | | 682 | 6.16k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 6.16k | _rows_input_counter = | 687 | 6.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 6.16k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 6.16k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 6.16k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 6.16k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 6.16k | _memory_used_counter = | 693 | 6.16k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 6.16k | _common_profile->add_info_string("IsColocate", | 695 | 6.16k | std::to_string(_parent->is_colocated_operator())); | 696 | 6.16k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 6.16k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 6.16k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 6.16k | return Status::OK(); | 700 | 6.16k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 138k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 138k | _operator_profile = | 643 | 138k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 138k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 138k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 138k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 138k | _operator_profile->add_child(_common_profile, true); | 652 | 138k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 138k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 138k | _wait_for_finish_dependency_timer = | 656 | 138k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 138k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 138k | if constexpr (!is_fake_shared) { | 659 | 138k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 138k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 138k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 138k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 138k | _dependency = _shared_state->create_sink_dependency( | 676 | 138k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 138k | } | 678 | 138k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 138k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 138k | } | 681 | | | 682 | 138k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 138k | _rows_input_counter = | 687 | 138k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 138k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 138k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 138k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 138k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 138k | _memory_used_counter = | 693 | 138k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 138k | _common_profile->add_info_string("IsColocate", | 695 | 138k | std::to_string(_parent->is_colocated_operator())); | 696 | 138k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 138k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 138k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 138k | return Status::OK(); | 700 | 138k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 403 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 403 | _operator_profile = | 643 | 403 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 403 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 403 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 403 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 403 | _operator_profile->add_child(_common_profile, true); | 652 | 403 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 403 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 403 | _wait_for_finish_dependency_timer = | 656 | 403 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 403 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 403 | if constexpr (!is_fake_shared) { | 659 | 403 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 403 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 399 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 399 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 399 | ? 0 | 667 | 399 | : info.task_idx] | 668 | 399 | .get(); | 669 | 399 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 399 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 4 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 4 | _dependency = _shared_state->create_sink_dependency( | 676 | 4 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 4 | } | 678 | 403 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 403 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 403 | } | 681 | | | 682 | 403 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 403 | _rows_input_counter = | 687 | 403 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 403 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 403 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 403 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 403 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 403 | _memory_used_counter = | 693 | 403 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 403 | _common_profile->add_info_string("IsColocate", | 695 | 403 | std::to_string(_parent->is_colocated_operator())); | 696 | 403 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 403 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 403 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 403 | return Status::OK(); | 700 | 403 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 118 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 118 | _operator_profile = | 643 | 118 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 118 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 118 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 118 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 118 | _operator_profile->add_child(_common_profile, true); | 652 | 118 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 118 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 118 | _wait_for_finish_dependency_timer = | 656 | 118 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 118 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 118 | if constexpr (!is_fake_shared) { | 659 | 118 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 118 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 118 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 118 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 118 | _dependency = _shared_state->create_sink_dependency( | 676 | 118 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 118 | } | 678 | 118 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 118 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 118 | } | 681 | | | 682 | 118 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 118 | _rows_input_counter = | 687 | 118 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 118 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 118 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 118 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 118 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 118 | _memory_used_counter = | 693 | 118 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 118 | _common_profile->add_info_string("IsColocate", | 695 | 118 | std::to_string(_parent->is_colocated_operator())); | 696 | 118 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 118 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 118 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 118 | return Status::OK(); | 700 | 118 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 689k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 689k | _operator_profile = | 643 | 689k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 689k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 689k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 689k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 689k | _operator_profile->add_child(_common_profile, true); | 652 | 689k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 689k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 689k | _wait_for_finish_dependency_timer = | 656 | 689k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 689k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | | if constexpr (!is_fake_shared) { | 659 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | | ? 0 | 667 | | : info.task_idx] | 668 | | .get(); | 669 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | | _dependency = _shared_state->create_sink_dependency( | 676 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | | } | 678 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | | } | 681 | | | 682 | 689k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 689k | _rows_input_counter = | 687 | 689k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 689k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 689k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 689k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 689k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 689k | _memory_used_counter = | 693 | 689k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 689k | _common_profile->add_info_string("IsColocate", | 695 | 689k | std::to_string(_parent->is_colocated_operator())); | 696 | 689k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 689k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 689k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 689k | return Status::OK(); | 700 | 689k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 8.28k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 8.28k | _operator_profile = | 643 | 8.28k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 8.28k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 8.28k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 8.28k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 8.28k | _operator_profile->add_child(_common_profile, true); | 652 | 8.28k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 8.28k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 8.28k | _wait_for_finish_dependency_timer = | 656 | 8.28k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 8.28k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 8.28k | if constexpr (!is_fake_shared) { | 659 | 8.28k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 8.28k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 8.28k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 8.28k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 8.28k | _dependency = _shared_state->create_sink_dependency( | 676 | 8.28k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 8.28k | } | 678 | 8.28k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 8.28k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 8.28k | } | 681 | | | 682 | 8.28k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 8.28k | _rows_input_counter = | 687 | 8.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 8.28k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 8.28k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 8.28k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 8.28k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 8.28k | _memory_used_counter = | 693 | 8.28k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 8.28k | _common_profile->add_info_string("IsColocate", | 695 | 8.28k | std::to_string(_parent->is_colocated_operator())); | 696 | 8.28k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 8.28k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 8.28k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 8.28k | return Status::OK(); | 700 | 8.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 381 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 381 | _operator_profile = | 643 | 381 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 381 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 381 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 381 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 381 | _operator_profile->add_child(_common_profile, true); | 652 | 381 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 381 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 381 | _wait_for_finish_dependency_timer = | 656 | 381 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 381 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 381 | if constexpr (!is_fake_shared) { | 659 | 381 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 381 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 381 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 381 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 381 | _dependency = _shared_state->create_sink_dependency( | 676 | 381 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 381 | } | 678 | 381 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 381 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 381 | } | 681 | | | 682 | 381 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 381 | _rows_input_counter = | 687 | 381 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 381 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 381 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 381 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 381 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 381 | _memory_used_counter = | 693 | 381 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 381 | _common_profile->add_info_string("IsColocate", | 695 | 381 | std::to_string(_parent->is_colocated_operator())); | 696 | 381 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 381 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 381 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 381 | return Status::OK(); | 700 | 381 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 3.63k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 3.63k | _operator_profile = | 643 | 3.63k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 3.63k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 3.63k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 3.63k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 3.63k | _operator_profile->add_child(_common_profile, true); | 652 | 3.63k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 3.63k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 3.63k | _wait_for_finish_dependency_timer = | 656 | 3.63k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 3.63k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 3.63k | if constexpr (!is_fake_shared) { | 659 | 3.63k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 3.63k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 3.63k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 3.63k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 3.63k | _dependency = _shared_state->create_sink_dependency( | 676 | 3.63k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 3.63k | } | 678 | 3.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 3.63k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 3.63k | } | 681 | | | 682 | 3.63k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 3.63k | _rows_input_counter = | 687 | 3.63k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 3.63k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 3.63k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 3.63k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 3.63k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 3.63k | _memory_used_counter = | 693 | 3.63k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 3.63k | _common_profile->add_info_string("IsColocate", | 695 | 3.63k | std::to_string(_parent->is_colocated_operator())); | 696 | 3.63k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 3.63k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 3.63k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 3.63k | return Status::OK(); | 700 | 3.63k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 12.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 12.1k | _operator_profile = | 643 | 12.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 12.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 12.1k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 12.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 12.1k | _operator_profile->add_child(_common_profile, true); | 652 | 12.1k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 12.1k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 12.1k | _wait_for_finish_dependency_timer = | 656 | 12.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 12.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 12.1k | if constexpr (!is_fake_shared) { | 659 | 12.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 12.1k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 12.1k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 12.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 12.1k | _dependency = _shared_state->create_sink_dependency( | 676 | 12.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 12.1k | } | 678 | 12.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 12.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 12.1k | } | 681 | | | 682 | 12.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 12.1k | _rows_input_counter = | 687 | 12.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 12.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 12.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 12.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 12.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 12.1k | _memory_used_counter = | 693 | 12.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 12.1k | _common_profile->add_info_string("IsColocate", | 695 | 12.1k | std::to_string(_parent->is_colocated_operator())); | 696 | 12.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 12.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 12.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 12.1k | return Status::OK(); | 700 | 12.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 298k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 298k | _operator_profile = | 643 | 298k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 298k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 298k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 298k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 298k | _operator_profile->add_child(_common_profile, true); | 652 | 298k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 298k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 298k | _wait_for_finish_dependency_timer = | 656 | 298k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 298k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 298k | if constexpr (!is_fake_shared) { | 659 | 298k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 298k | info.shared_state_map.end()) { | 661 | 298k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | 298k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | 298k | } | 664 | 298k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 298k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 298k | ? 0 | 667 | 298k | : info.task_idx] | 668 | 298k | .get(); | 669 | 298k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 298k | } else { | 671 | 197 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | 197 | DCHECK(false); | 673 | 197 | } | 674 | 197 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 197 | _dependency = _shared_state->create_sink_dependency( | 676 | 197 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 197 | } | 678 | 298k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 298k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 298k | } | 681 | | | 682 | 298k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 298k | _rows_input_counter = | 687 | 298k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 298k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 298k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 298k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 298k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 298k | _memory_used_counter = | 693 | 298k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 298k | _common_profile->add_info_string("IsColocate", | 695 | 298k | std::to_string(_parent->is_colocated_operator())); | 696 | 298k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 298k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 298k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 298k | return Status::OK(); | 700 | 298k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 510k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 510k | _operator_profile = | 643 | 510k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 510k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 510k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 510k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 510k | _operator_profile->add_child(_common_profile, true); | 652 | 510k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 510k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 510k | _wait_for_finish_dependency_timer = | 656 | 510k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 510k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 510k | if constexpr (!is_fake_shared) { | 659 | 510k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 510k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 510k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 510k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 510k | _dependency = _shared_state->create_sink_dependency( | 676 | 510k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 510k | } | 678 | 510k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 510k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 510k | } | 681 | | | 682 | 510k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 510k | _rows_input_counter = | 687 | 510k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 510k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 510k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 510k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 510k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 510k | _memory_used_counter = | 693 | 510k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 510k | _common_profile->add_info_string("IsColocate", | 695 | 510k | std::to_string(_parent->is_colocated_operator())); | 696 | 510k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 510k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 510k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 510k | return Status::OK(); | 700 | 510k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 17 | _operator_profile = | 643 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 17 | _operator_profile->add_child(_common_profile, true); | 652 | 17 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 17 | _wait_for_finish_dependency_timer = | 656 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 17 | if constexpr (!is_fake_shared) { | 659 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 17 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 17 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 17 | _dependency = _shared_state->create_sink_dependency( | 676 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 17 | } | 678 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 17 | } | 681 | | | 682 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 17 | _rows_input_counter = | 687 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 17 | _memory_used_counter = | 693 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 17 | _common_profile->add_info_string("IsColocate", | 695 | 17 | std::to_string(_parent->is_colocated_operator())); | 696 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 17 | return Status::OK(); | 700 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 302 | _operator_profile = | 643 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 302 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 302 | _operator_profile->add_child(_common_profile, true); | 652 | 302 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 302 | _wait_for_finish_dependency_timer = | 656 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 302 | if constexpr (!is_fake_shared) { | 659 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 302 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 302 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 302 | _dependency = _shared_state->create_sink_dependency( | 676 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 302 | } | 678 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 302 | } | 681 | | | 682 | 302 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 302 | _rows_input_counter = | 687 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 302 | _memory_used_counter = | 693 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 302 | _common_profile->add_info_string("IsColocate", | 695 | 302 | std::to_string(_parent->is_colocated_operator())); | 696 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 302 | return Status::OK(); | 700 | 302 | } |
|
701 | | |
702 | | template <typename SharedState> |
703 | 2.11M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
704 | 2.11M | if (_closed) { |
705 | 2 | return Status::OK(); |
706 | 2 | } |
707 | 2.11M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
708 | 1.41M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
709 | 1.41M | } |
710 | 2.11M | _closed = true; |
711 | 2.11M | return Status::OK(); |
712 | 2.11M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 152k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 152k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 152k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 152k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 152k | } | 710 | 152k | _closed = true; | 711 | 152k | return Status::OK(); | 712 | 152k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 1 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 1 | } | 710 | 1 | _closed = true; | 711 | 1 | return Status::OK(); | 712 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 272k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 272k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 272k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 272k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 272k | } | 710 | 272k | _closed = true; | 711 | 272k | return Status::OK(); | 712 | 272k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 21 | if (_closed) { | 705 | 2 | return Status::OK(); | 706 | 2 | } | 707 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 19 | } | 710 | 19 | _closed = true; | 711 | 19 | return Status::OK(); | 712 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 9.72k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 9.72k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 9.72k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 9.72k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 9.72k | } | 710 | 9.72k | _closed = true; | 711 | 9.72k | return Status::OK(); | 712 | 9.72k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 6.14k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 6.14k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 6.14k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 6.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 6.14k | } | 710 | 6.14k | _closed = true; | 711 | 6.14k | return Status::OK(); | 712 | 6.14k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 138k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 138k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 138k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 138k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 138k | } | 710 | 138k | _closed = true; | 711 | 138k | return Status::OK(); | 712 | 138k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 401 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 401 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 401 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 401 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 401 | } | 710 | 401 | _closed = true; | 711 | 401 | return Status::OK(); | 712 | 401 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 107 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 107 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 107 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 107 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 107 | } | 710 | 107 | _closed = true; | 711 | 107 | return Status::OK(); | 712 | 107 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 691k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 691k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | | } | 710 | 691k | _closed = true; | 711 | 691k | return Status::OK(); | 712 | 691k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 8.28k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 8.28k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 8.28k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 8.28k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 8.28k | } | 710 | 8.28k | _closed = true; | 711 | 8.28k | return Status::OK(); | 712 | 8.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 277 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 277 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 277 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 277 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 277 | } | 710 | 277 | _closed = true; | 711 | 277 | return Status::OK(); | 712 | 277 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 3.67k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 3.67k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 3.67k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 3.67k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 3.67k | } | 710 | 3.67k | _closed = true; | 711 | 3.67k | return Status::OK(); | 712 | 3.67k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 12.2k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 12.2k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 12.2k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 12.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 12.2k | } | 710 | 12.2k | _closed = true; | 711 | 12.2k | return Status::OK(); | 712 | 12.2k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 300k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 300k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 300k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 300k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 300k | } | 710 | 300k | _closed = true; | 711 | 300k | return Status::OK(); | 712 | 300k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 514k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 514k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 514k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 514k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 514k | } | 710 | 514k | _closed = true; | 711 | 514k | return Status::OK(); | 712 | 514k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 14 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 14 | } | 710 | 14 | _closed = true; | 711 | 14 | return Status::OK(); | 712 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 302 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 302 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 302 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 302 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 302 | } | 710 | 302 | _closed = true; | 711 | 302 | return Status::OK(); | 712 | 302 | } |
|
713 | | |
714 | | template <typename LocalStateType> |
715 | 6.98k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
716 | 6.98k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
717 | 6.97k | return pull(state, block, eos); |
718 | 6.98k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 715 | 432 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 716 | 432 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 717 | 432 | return pull(state, block, eos); | 718 | 432 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 715 | 6.55k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 716 | 6.55k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 717 | 6.54k | return pull(state, block, eos); | 718 | 6.55k | } |
|
719 | | |
720 | | template <typename LocalStateType> |
721 | 771k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
722 | 771k | auto& local_state = get_local_state(state); |
723 | 771k | if (need_more_input_data(state)) { |
724 | 720k | local_state._child_block->clear_column_data( |
725 | 720k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
726 | 720k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
727 | 720k | state, local_state._child_block.get(), &local_state._child_eos)); |
728 | 720k | *eos = local_state._child_eos; |
729 | 720k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
730 | 56.4k | return Status::OK(); |
731 | 56.4k | } |
732 | 664k | { |
733 | 664k | SCOPED_TIMER(local_state.exec_time_counter()); |
734 | 664k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
735 | 664k | } |
736 | 664k | } |
737 | | |
738 | 714k | if (!need_more_input_data(state)) { |
739 | 665k | SCOPED_TIMER(local_state.exec_time_counter()); |
740 | 665k | bool new_eos = false; |
741 | 665k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
742 | 665k | if (new_eos) { |
743 | 585k | *eos = true; |
744 | 585k | } else if (!need_more_input_data(state)) { |
745 | 24.5k | *eos = false; |
746 | 24.5k | } |
747 | 665k | } |
748 | 714k | return Status::OK(); |
749 | 714k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 164k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 164k | auto& local_state = get_local_state(state); | 723 | 164k | if (need_more_input_data(state)) { | 724 | 127k | local_state._child_block->clear_column_data( | 725 | 127k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 127k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 127k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 127k | *eos = local_state._child_eos; | 729 | 127k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 29.1k | return Status::OK(); | 731 | 29.1k | } | 732 | 97.8k | { | 733 | 97.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 97.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 97.8k | } | 736 | 97.8k | } | 737 | | | 738 | 135k | if (!need_more_input_data(state)) { | 739 | 135k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 135k | bool new_eos = false; | 741 | 135k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 135k | if (new_eos) { | 743 | 80.7k | *eos = true; | 744 | 80.7k | } else if (!need_more_input_data(state)) { | 745 | 10.2k | *eos = false; | 746 | 10.2k | } | 747 | 135k | } | 748 | 135k | return Status::OK(); | 749 | 135k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 2.98k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 2.98k | auto& local_state = get_local_state(state); | 723 | 2.98k | if (need_more_input_data(state)) { | 724 | 1.62k | local_state._child_block->clear_column_data( | 725 | 1.62k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 1.62k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 1.62k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 1.62k | *eos = local_state._child_eos; | 729 | 1.62k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 166 | return Status::OK(); | 731 | 166 | } | 732 | 1.46k | { | 733 | 1.46k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 1.46k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 1.46k | } | 736 | 1.46k | } | 737 | | | 738 | 2.82k | if (!need_more_input_data(state)) { | 739 | 2.82k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 2.82k | bool new_eos = false; | 741 | 2.82k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 2.82k | if (new_eos) { | 743 | 1.13k | *eos = true; | 744 | 1.69k | } else if (!need_more_input_data(state)) { | 745 | 1.35k | *eos = false; | 746 | 1.35k | } | 747 | 2.82k | } | 748 | 2.81k | return Status::OK(); | 749 | 2.81k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 4.47k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 4.47k | auto& local_state = get_local_state(state); | 723 | 4.47k | if (need_more_input_data(state)) { | 724 | 4.47k | local_state._child_block->clear_column_data( | 725 | 4.47k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 4.47k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 4.47k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 4.47k | *eos = local_state._child_eos; | 729 | 4.47k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 1.56k | return Status::OK(); | 731 | 1.56k | } | 732 | 2.90k | { | 733 | 2.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 2.90k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 2.90k | } | 736 | 2.90k | } | 737 | | | 738 | 2.90k | if (!need_more_input_data(state)) { | 739 | 2.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 2.90k | bool new_eos = false; | 741 | 2.90k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 2.90k | if (new_eos) { | 743 | 1.59k | *eos = true; | 744 | 1.59k | } else if (!need_more_input_data(state)) { | 745 | 0 | *eos = false; | 746 | 0 | } | 747 | 2.90k | } | 748 | 2.90k | return Status::OK(); | 749 | 2.90k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 34.9k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 34.9k | auto& local_state = get_local_state(state); | 723 | 34.9k | if (need_more_input_data(state)) { | 724 | 34.9k | local_state._child_block->clear_column_data( | 725 | 34.9k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 34.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 34.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 34.9k | *eos = local_state._child_eos; | 729 | 34.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 3.82k | return Status::OK(); | 731 | 3.82k | } | 732 | 31.0k | { | 733 | 31.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 31.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 31.0k | } | 736 | 31.0k | } | 737 | | | 738 | 31.0k | if (!need_more_input_data(state)) { | 739 | 12.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 12.7k | bool new_eos = false; | 741 | 12.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 12.7k | if (new_eos) { | 743 | 12.6k | *eos = true; | 744 | 12.6k | } else if (!need_more_input_data(state)) { | 745 | 7 | *eos = false; | 746 | 7 | } | 747 | 12.7k | } | 748 | 31.0k | return Status::OK(); | 749 | 31.0k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 526k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 526k | auto& local_state = get_local_state(state); | 723 | 527k | if (need_more_input_data(state)) { | 724 | 527k | local_state._child_block->clear_column_data( | 725 | 527k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 527k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 527k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 527k | *eos = local_state._child_eos; | 729 | 527k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 19.1k | return Status::OK(); | 731 | 19.1k | } | 732 | 508k | { | 733 | 508k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 508k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 508k | } | 736 | 508k | } | 737 | | | 738 | 507k | if (!need_more_input_data(state)) { | 739 | 476k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 476k | bool new_eos = false; | 741 | 476k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 476k | if (new_eos) { | 743 | 475k | *eos = true; | 744 | 475k | } else if (!need_more_input_data(state)) { | 745 | 0 | *eos = false; | 746 | 0 | } | 747 | 476k | } | 748 | 507k | return Status::OK(); | 749 | 507k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 30.7k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 30.7k | auto& local_state = get_local_state(state); | 723 | 30.7k | if (need_more_input_data(state)) { | 724 | 18.1k | local_state._child_block->clear_column_data( | 725 | 18.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 18.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 18.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 18.1k | *eos = local_state._child_eos; | 729 | 18.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 2.07k | return Status::OK(); | 731 | 2.07k | } | 732 | 16.0k | { | 733 | 16.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 16.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 16.0k | } | 736 | 16.0k | } | 737 | | | 738 | 28.6k | if (!need_more_input_data(state)) { | 739 | 28.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 28.0k | bool new_eos = false; | 741 | 28.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 28.0k | if (new_eos) { | 743 | 9.73k | *eos = true; | 744 | 18.3k | } else if (!need_more_input_data(state)) { | 745 | 12.6k | *eos = false; | 746 | 12.6k | } | 747 | 28.0k | } | 748 | 28.6k | return Status::OK(); | 749 | 28.6k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 6.85k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 6.85k | auto& local_state = get_local_state(state); | 723 | 6.85k | if (need_more_input_data(state)) { | 724 | 6.49k | local_state._child_block->clear_column_data( | 725 | 6.49k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 6.49k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 6.49k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 6.49k | *eos = local_state._child_eos; | 729 | 6.49k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 438 | return Status::OK(); | 731 | 438 | } | 732 | 6.05k | { | 733 | 6.05k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 6.05k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 6.05k | } | 736 | 6.05k | } | 737 | | | 738 | 6.41k | if (!need_more_input_data(state)) { | 739 | 6.41k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 6.41k | bool new_eos = false; | 741 | 6.41k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 6.41k | if (new_eos) { | 743 | 4.37k | *eos = true; | 744 | 4.37k | } else if (!need_more_input_data(state)) { | 745 | 366 | *eos = false; | 746 | 366 | } | 747 | 6.41k | } | 748 | 6.41k | return Status::OK(); | 749 | 6.41k | } |
|
750 | | |
751 | | template <typename Writer, typename Parent> |
752 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
753 | 69.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
754 | 69.3k | RETURN_IF_ERROR(Base::init(state, info)); |
755 | 69.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
756 | 69.3k | "AsyncWriterDependency", true); |
757 | 69.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
758 | 69.3k | _finish_dependency)); |
759 | | |
760 | 69.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
761 | 69.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
762 | 69.3k | return Status::OK(); |
763 | 69.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 516 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 516 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 516 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 516 | "AsyncWriterDependency", true); | 757 | 516 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 516 | _finish_dependency)); | 759 | | | 760 | 516 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 516 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 516 | return Status::OK(); | 763 | 516 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 88 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 88 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 88 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 88 | "AsyncWriterDependency", true); | 757 | 88 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 88 | _finish_dependency)); | 759 | | | 760 | 88 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 88 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 88 | return Status::OK(); | 763 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 53.6k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 53.6k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 53.6k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 53.6k | "AsyncWriterDependency", true); | 757 | 53.6k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 53.6k | _finish_dependency)); | 759 | | | 760 | 53.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 53.6k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 53.6k | return Status::OK(); | 763 | 53.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 5.64k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 5.64k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 5.64k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 5.64k | "AsyncWriterDependency", true); | 757 | 5.64k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 5.64k | _finish_dependency)); | 759 | | | 760 | 5.64k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 5.64k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 5.64k | return Status::OK(); | 763 | 5.64k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 5.15k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 5.15k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 5.15k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 5.15k | "AsyncWriterDependency", true); | 757 | 5.15k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 5.15k | _finish_dependency)); | 759 | | | 760 | 5.15k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 5.15k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 5.15k | return Status::OK(); | 763 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 3.38k | "AsyncWriterDependency", true); | 757 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 3.38k | _finish_dependency)); | 759 | | | 760 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 3.38k | return Status::OK(); | 763 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 160 | "AsyncWriterDependency", true); | 757 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 160 | _finish_dependency)); | 759 | | | 760 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 160 | return Status::OK(); | 763 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 640 | "AsyncWriterDependency", true); | 757 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 640 | _finish_dependency)); | 759 | | | 760 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 640 | return Status::OK(); | 763 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 156 | "AsyncWriterDependency", true); | 757 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 156 | _finish_dependency)); | 759 | | | 760 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 156 | return Status::OK(); | 763 | 156 | } |
|
764 | | |
765 | | template <typename Writer, typename Parent> |
766 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
767 | 69.8k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
768 | 69.8k | RETURN_IF_ERROR(Base::open(state)); |
769 | 69.8k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
770 | 608k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
771 | 538k | RETURN_IF_ERROR( |
772 | 538k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
773 | 538k | } |
774 | 69.8k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
775 | 69.8k | return Status::OK(); |
776 | 69.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 516 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 516 | RETURN_IF_ERROR(Base::open(state)); | 769 | 516 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 2.77k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 2.25k | RETURN_IF_ERROR( | 772 | 2.25k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 2.25k | } | 774 | 516 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 516 | return Status::OK(); | 776 | 516 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 88 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 88 | RETURN_IF_ERROR(Base::open(state)); | 769 | 88 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 412 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 324 | RETURN_IF_ERROR( | 772 | 324 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 324 | } | 774 | 88 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 88 | return Status::OK(); | 776 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 54.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 54.1k | RETURN_IF_ERROR(Base::open(state)); | 769 | 54.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 380k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 326k | RETURN_IF_ERROR( | 772 | 326k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 326k | } | 774 | 54.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 54.1k | return Status::OK(); | 776 | 54.1k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 5.62k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 5.62k | RETURN_IF_ERROR(Base::open(state)); | 769 | 5.62k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 39.3k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 33.7k | RETURN_IF_ERROR( | 772 | 33.7k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 33.7k | } | 774 | 5.62k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 5.62k | return Status::OK(); | 776 | 5.62k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 5.14k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 5.14k | RETURN_IF_ERROR(Base::open(state)); | 769 | 5.14k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 137k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 132k | RETURN_IF_ERROR( | 772 | 132k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 132k | } | 774 | 5.14k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 5.14k | return Status::OK(); | 776 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 769 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 41.9k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 38.5k | RETURN_IF_ERROR( | 772 | 38.5k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 38.5k | } | 774 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 3.38k | return Status::OK(); | 776 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 160 | RETURN_IF_ERROR(Base::open(state)); | 769 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 480 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 320 | RETURN_IF_ERROR( | 772 | 320 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 320 | } | 774 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 160 | return Status::OK(); | 776 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 640 | RETURN_IF_ERROR(Base::open(state)); | 769 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 4.39k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 3.75k | RETURN_IF_ERROR( | 772 | 3.75k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 3.75k | } | 774 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 640 | return Status::OK(); | 776 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 156 | RETURN_IF_ERROR(Base::open(state)); | 769 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 630 | RETURN_IF_ERROR( | 772 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 630 | } | 774 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 156 | return Status::OK(); | 776 | 156 | } |
|
777 | | |
778 | | template <typename Writer, typename Parent> |
779 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
780 | 90.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
781 | 90.8k | return _writer->sink(block, eos); |
782 | 90.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 2.52k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 2.52k | return _writer->sink(block, eos); | 782 | 2.52k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 112 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 112 | return _writer->sink(block, eos); | 782 | 112 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 67.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 67.4k | return _writer->sink(block, eos); | 782 | 67.4k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 6.66k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 6.66k | return _writer->sink(block, eos); | 782 | 6.66k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 7.49k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 7.49k | return _writer->sink(block, eos); | 782 | 7.49k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 5.33k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 5.33k | return _writer->sink(block, eos); | 782 | 5.33k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 180 | return _writer->sink(block, eos); | 782 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 792 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 792 | return _writer->sink(block, eos); | 782 | 792 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 310 | return _writer->sink(block, eos); | 782 | 310 | } |
|
783 | | |
784 | | template <typename Writer, typename Parent> |
785 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
786 | 69.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
787 | 69.9k | if (_closed) { |
788 | 0 | return Status::OK(); |
789 | 0 | } |
790 | 69.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
791 | 69.9k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
792 | | // if the init failed, the _writer may be nullptr. so here need check |
793 | 69.9k | if (_writer) { |
794 | 69.9k | Status st = _writer->get_writer_status(); |
795 | 69.9k | if (exec_status.ok()) { |
796 | 69.8k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
797 | 69.8k | : Status::Cancelled("force close")); |
798 | 69.8k | } else { |
799 | 145 | _writer->force_close(exec_status); |
800 | 145 | } |
801 | | // If there is an error in process_block thread, then we should get the writer |
802 | | // status before call force_close. For example, the thread may failed in commit |
803 | | // transaction. |
804 | 69.9k | RETURN_IF_ERROR(st); |
805 | 69.9k | } |
806 | 69.8k | return Base::close(state, exec_status); |
807 | 69.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 504 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 504 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 504 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 504 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 504 | if (_writer) { | 794 | 504 | Status st = _writer->get_writer_status(); | 795 | 504 | if (exec_status.ok()) { | 796 | 504 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 504 | : Status::Cancelled("force close")); | 798 | 504 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 504 | RETURN_IF_ERROR(st); | 805 | 504 | } | 806 | 504 | return Base::close(state, exec_status); | 807 | 504 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 88 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 88 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 88 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 88 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 88 | if (_writer) { | 794 | 88 | Status st = _writer->get_writer_status(); | 795 | 88 | if (exec_status.ok()) { | 796 | 88 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 88 | : Status::Cancelled("force close")); | 798 | 88 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 88 | RETURN_IF_ERROR(st); | 805 | 88 | } | 806 | 80 | return Base::close(state, exec_status); | 807 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 54.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 54.2k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 54.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 54.2k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 54.2k | if (_writer) { | 794 | 54.2k | Status st = _writer->get_writer_status(); | 795 | 54.2k | if (exec_status.ok()) { | 796 | 54.1k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 54.1k | : Status::Cancelled("force close")); | 798 | 54.1k | } else { | 799 | 97 | _writer->force_close(exec_status); | 800 | 97 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 54.2k | RETURN_IF_ERROR(st); | 805 | 54.2k | } | 806 | 54.1k | return Base::close(state, exec_status); | 807 | 54.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 5.64k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 5.64k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 5.64k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 5.64k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 5.64k | if (_writer) { | 794 | 5.64k | Status st = _writer->get_writer_status(); | 795 | 5.64k | if (exec_status.ok()) { | 796 | 5.59k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 5.59k | : Status::Cancelled("force close")); | 798 | 5.59k | } else { | 799 | 48 | _writer->force_close(exec_status); | 800 | 48 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 5.64k | RETURN_IF_ERROR(st); | 805 | 5.64k | } | 806 | 5.64k | return Base::close(state, exec_status); | 807 | 5.64k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 5.14k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 5.14k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 5.14k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 5.15k | if (_writer) { | 794 | 5.15k | Status st = _writer->get_writer_status(); | 795 | 5.15k | if (exec_status.ok()) { | 796 | 5.15k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 5.15k | : Status::Cancelled("force close")); | 798 | 5.15k | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 5.15k | RETURN_IF_ERROR(st); | 805 | 5.15k | } | 806 | 5.14k | return Base::close(state, exec_status); | 807 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 3.38k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 3.38k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 3.38k | if (_writer) { | 794 | 3.38k | Status st = _writer->get_writer_status(); | 795 | 3.38k | if (exec_status.ok()) { | 796 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 3.38k | : Status::Cancelled("force close")); | 798 | 3.38k | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 3.38k | RETURN_IF_ERROR(st); | 805 | 3.38k | } | 806 | 3.38k | return Base::close(state, exec_status); | 807 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 160 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 160 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 160 | if (_writer) { | 794 | 160 | Status st = _writer->get_writer_status(); | 795 | 160 | if (exec_status.ok()) { | 796 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 160 | : Status::Cancelled("force close")); | 798 | 160 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 160 | RETURN_IF_ERROR(st); | 805 | 160 | } | 806 | 160 | return Base::close(state, exec_status); | 807 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 640 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 640 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 640 | if (_writer) { | 794 | 640 | Status st = _writer->get_writer_status(); | 795 | 640 | if (exec_status.ok()) { | 796 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 640 | : Status::Cancelled("force close")); | 798 | 640 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 640 | RETURN_IF_ERROR(st); | 805 | 640 | } | 806 | 640 | return Base::close(state, exec_status); | 807 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 156 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 156 | if (_writer) { | 794 | 156 | Status st = _writer->get_writer_status(); | 795 | 156 | if (exec_status.ok()) { | 796 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 156 | : Status::Cancelled("force close")); | 798 | 156 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 156 | RETURN_IF_ERROR(st); | 805 | 156 | } | 806 | 156 | return Base::close(state, exec_status); | 807 | 156 | } |
|
808 | | |
809 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
810 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
811 | | DECLARE_OPERATOR(ResultSinkLocalState) |
812 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
813 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
814 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
815 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
816 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
817 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
818 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
819 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
820 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
821 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
822 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
823 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
824 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
825 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
826 | | DECLARE_OPERATOR(SortSinkLocalState) |
827 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
828 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
829 | | DECLARE_OPERATOR(AggSinkLocalState) |
830 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
831 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
832 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
833 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
834 | | DECLARE_OPERATOR(UnionSinkLocalState) |
835 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
836 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
837 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
838 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
839 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
840 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
841 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
842 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
843 | | DECLARE_OPERATOR(CacheSinkLocalState) |
844 | | DECLARE_OPERATOR(DictSinkLocalState) |
845 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
846 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
847 | | |
848 | | #undef DECLARE_OPERATOR |
849 | | |
850 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
851 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
852 | | DECLARE_OPERATOR(OlapScanLocalState) |
853 | | DECLARE_OPERATOR(GroupCommitLocalState) |
854 | | DECLARE_OPERATOR(JDBCScanLocalState) |
855 | | DECLARE_OPERATOR(FileScanLocalState) |
856 | | DECLARE_OPERATOR(AnalyticLocalState) |
857 | | DECLARE_OPERATOR(SortLocalState) |
858 | | DECLARE_OPERATOR(SpillSortLocalState) |
859 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
860 | | DECLARE_OPERATOR(AggLocalState) |
861 | | DECLARE_OPERATOR(BucketedAggLocalState) |
862 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
863 | | DECLARE_OPERATOR(TableFunctionLocalState) |
864 | | DECLARE_OPERATOR(ExchangeLocalState) |
865 | | DECLARE_OPERATOR(RepeatLocalState) |
866 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
867 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
868 | | DECLARE_OPERATOR(EmptySetLocalState) |
869 | | DECLARE_OPERATOR(UnionSourceLocalState) |
870 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
871 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
872 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
873 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
874 | | DECLARE_OPERATOR(DataGenLocalState) |
875 | | DECLARE_OPERATOR(SchemaScanLocalState) |
876 | | DECLARE_OPERATOR(MetaScanLocalState) |
877 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
878 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
879 | | DECLARE_OPERATOR(CacheSourceLocalState) |
880 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
881 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
882 | | |
883 | | #ifdef BE_TEST |
884 | | DECLARE_OPERATOR(MockLocalState) |
885 | | DECLARE_OPERATOR(MockScanLocalState) |
886 | | #endif |
887 | | #undef DECLARE_OPERATOR |
888 | | |
889 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
890 | | template class StreamingOperatorX<SelectLocalState>; |
891 | | |
892 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
893 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
894 | | template class StatefulOperatorX<RepeatLocalState>; |
895 | | template class StatefulOperatorX<MaterializationLocalState>; |
896 | | template class StatefulOperatorX<StreamingAggLocalState>; |
897 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
898 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
899 | | template class StatefulOperatorX<TableFunctionLocalState>; |
900 | | |
901 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
902 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
903 | | template class PipelineXSinkLocalState<SortSharedState>; |
904 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
905 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
906 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
907 | | template class PipelineXSinkLocalState<AggSharedState>; |
908 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
909 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
910 | | template class PipelineXSinkLocalState<FakeSharedState>; |
911 | | template class PipelineXSinkLocalState<UnionSharedState>; |
912 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
913 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
914 | | template class PipelineXSinkLocalState<SetSharedState>; |
915 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
916 | | template class PipelineXSinkLocalState<BasicSharedState>; |
917 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
918 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
919 | | |
920 | | template class PipelineXLocalState<HashJoinSharedState>; |
921 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
922 | | template class PipelineXLocalState<SortSharedState>; |
923 | | template class PipelineXLocalState<SpillSortSharedState>; |
924 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
925 | | template class PipelineXLocalState<AnalyticSharedState>; |
926 | | template class PipelineXLocalState<AggSharedState>; |
927 | | template class PipelineXLocalState<BucketedAggSharedState>; |
928 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
929 | | template class PipelineXLocalState<FakeSharedState>; |
930 | | template class PipelineXLocalState<UnionSharedState>; |
931 | | template class PipelineXLocalState<DataQueueSharedState>; |
932 | | template class PipelineXLocalState<MultiCastSharedState>; |
933 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
934 | | template class PipelineXLocalState<SetSharedState>; |
935 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
936 | | template class PipelineXLocalState<BasicSharedState>; |
937 | | template class PipelineXLocalState<RecCTESharedState>; |
938 | | |
939 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
940 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
941 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
942 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
943 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
944 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
945 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
946 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
947 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
948 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
949 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
950 | | |
951 | | #ifdef BE_TEST |
952 | | template class OperatorX<DummyOperatorLocalState>; |
953 | | template class DataSinkOperatorX<DummySinkLocalState>; |
954 | | #endif |
955 | | |
956 | | } // namespace doris |