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