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.99M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 1.99M | if (_parent->nereids_id() == -1) { |
120 | 1.00M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.00M | } else { |
122 | 986k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 986k | } |
124 | 1.99M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 98.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 98.0k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 98.0k | } else { | 122 | 98.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 98.0k | } | 124 | 98.0k | } |
_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 | 169k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 169k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 169k | } else { | 122 | 169k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 169k | } | 124 | 169k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 37 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 37 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 37 | } else { | 122 | 37 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 37 | } | 124 | 37 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 5.20k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 5.20k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 5.20k | } else { | 122 | 5.20k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 5.20k | } | 124 | 5.20k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 8.27k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 8.27k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 8.26k | } else { | 122 | 8.26k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 8.26k | } | 124 | 8.27k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 90.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 90.6k | if (_parent->nereids_id() == -1) { | 120 | 27 | return fmt::format("(id={})", _parent->node_id()); | 121 | 90.6k | } else { | 122 | 90.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 90.6k | } | 124 | 90.6k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 552 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 552 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 552 | } else { | 122 | 552 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 552 | } | 124 | 552 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 54 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 54 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 54 | } else { | 122 | 54 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 54 | } | 124 | 54 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 961k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 961k | if (_parent->nereids_id() == -1) { | 120 | 403k | return fmt::format("(id={})", _parent->node_id()); | 121 | 557k | } else { | 122 | 557k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 557k | } | 124 | 961k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 50.1k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 50.1k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 50.1k | } else { | 122 | 50.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 50.1k | } | 124 | 50.1k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 16 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 16 | if (_parent->nereids_id() == -1) { | 120 | 16 | return fmt::format("(id={})", _parent->node_id()); | 121 | 16 | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 16 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 3.49k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 3.49k | if (_parent->nereids_id() == -1) { | 120 | 3.49k | return fmt::format("(id={})", _parent->node_id()); | 121 | 3.49k | } else { | 122 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 1 | } | 124 | 3.49k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 745 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 745 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 643 | } else { | 122 | 643 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 643 | } | 124 | 745 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.52k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.52k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.51k | } else { | 122 | 4.51k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.51k | } | 124 | 4.52k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 599k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 599k | if (_parent->nereids_id() == -1) { | 120 | 598k | return fmt::format("(id={})", _parent->node_id()); | 121 | 598k | } else { | 122 | 776 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 776 | } | 124 | 599k | } |
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.12M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.12M | if (_parent->nereids_id() == -1) { |
129 | 693k | return fmt::format("(id={})", _parent->node_id()); |
130 | 693k | } else { |
131 | 431k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 431k | } |
133 | 1.12M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 146k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 146k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 146k | } else { | 131 | 146k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 146k | } | 133 | 146k | } |
_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 | 172k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 172k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 172k | } else { | 131 | 172k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 172k | } | 133 | 172k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 43 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 43 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 43 | } else { | 131 | 43 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 43 | } | 133 | 43 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 5.28k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 5.28k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 5.28k | } else { | 131 | 5.28k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 5.28k | } | 133 | 5.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 8.28k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 8.28k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 8.27k | } else { | 131 | 8.27k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 8.27k | } | 133 | 8.28k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 91.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 91.1k | if (_parent->nereids_id() == -1) { | 129 | 27 | return fmt::format("(id={})", _parent->node_id()); | 130 | 91.1k | } else { | 131 | 91.1k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 91.1k | } | 133 | 91.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 477 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 477 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 477 | } else { | 131 | 477 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 477 | } | 133 | 477 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 66 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 66 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 66 | } else { | 131 | 66 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 66 | } | 133 | 66 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12 | if (_parent->nereids_id() == -1) { | 129 | 12 | return fmt::format("(id={})", _parent->node_id()); | 130 | 12 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 5.60k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 5.60k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 5.59k | } else { | 131 | 5.59k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 5.59k | } | 133 | 5.60k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 748 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 748 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 646 | } else { | 131 | 646 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 646 | } | 133 | 748 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 11.8k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 11.8k | if (_parent->nereids_id() == -1) { | 129 | 11.8k | 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.8k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 228k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 229k | if (_parent->nereids_id() == -1) { | 129 | 229k | 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 | 228k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 453k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 453k | if (_parent->nereids_id() == -1) { | 129 | 452k | return fmt::format("(id={})", _parent->node_id()); | 130 | 452k | } else { | 131 | 619 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 619 | } | 133 | 453k | } |
_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 | 29.4k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 29.4k | if (_terminated) { |
138 | 0 | return Status::OK(); |
139 | 0 | } |
140 | 29.4k | _terminated = true; |
141 | 29.4k | return Status::OK(); |
142 | 29.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 | 760 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 760 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 760 | _terminated = true; | 141 | 760 | return Status::OK(); | 142 | 760 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 8 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 8 | _terminated = true; | 141 | 8 | return Status::OK(); | 142 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 3.24k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 3.24k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 3.24k | _terminated = true; | 141 | 3.24k | return Status::OK(); | 142 | 3.24k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1.06k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1.06k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1.06k | _terminated = true; | 141 | 1.06k | return Status::OK(); | 142 | 1.06k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 11 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 11 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 11 | _terminated = true; | 141 | 11 | return Status::OK(); | 142 | 11 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 17 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 17 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 17 | _terminated = true; | 141 | 17 | return Status::OK(); | 142 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_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_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 208 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 208 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 208 | _terminated = true; | 141 | 208 | return Status::OK(); | 142 | 208 | } |
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 | 647k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 647k | return _child && _child->is_serial_operator() && !is_source() |
146 | 647k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 647k | : DataDistribution(ExchangeType::NOOP); |
148 | 647k | } |
149 | | |
150 | 81.1k | const RowDescriptor& OperatorBase::row_desc() const { |
151 | 81.1k | return _child->row_desc(); |
152 | 81.1k | } |
153 | | |
154 | | template <typename SharedStateArg> |
155 | 17.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
156 | 17.4k | fmt::memory_buffer debug_string_buffer; |
157 | 17.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
158 | 17.4k | return fmt::to_string(debug_string_buffer); |
159 | 17.4k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 44 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 44 | fmt::memory_buffer debug_string_buffer; | 157 | 44 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 44 | return fmt::to_string(debug_string_buffer); | 159 | 44 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 3 | fmt::memory_buffer debug_string_buffer; | 157 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 3 | return fmt::to_string(debug_string_buffer); | 159 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 18 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 18 | fmt::memory_buffer debug_string_buffer; | 157 | 18 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 18 | return fmt::to_string(debug_string_buffer); | 159 | 18 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 13 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 13 | fmt::memory_buffer debug_string_buffer; | 157 | 13 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 13 | return fmt::to_string(debug_string_buffer); | 159 | 13 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 32 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 32 | fmt::memory_buffer debug_string_buffer; | 157 | 32 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 32 | return fmt::to_string(debug_string_buffer); | 159 | 32 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 17.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 17.0k | fmt::memory_buffer debug_string_buffer; | 157 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 17.0k | return fmt::to_string(debug_string_buffer); | 159 | 17.0k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 1 | fmt::memory_buffer debug_string_buffer; | 157 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 1 | return fmt::to_string(debug_string_buffer); | 159 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 239 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 239 | fmt::memory_buffer debug_string_buffer; | 157 | 239 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 239 | return fmt::to_string(debug_string_buffer); | 159 | 239 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
160 | | |
161 | | template <typename SharedStateArg> |
162 | 17.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
163 | 17.3k | fmt::memory_buffer debug_string_buffer; |
164 | 17.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
165 | 17.3k | return fmt::to_string(debug_string_buffer); |
166 | 17.3k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 12 | fmt::memory_buffer debug_string_buffer; | 164 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 12 | return fmt::to_string(debug_string_buffer); | 166 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 18 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 18 | fmt::memory_buffer debug_string_buffer; | 164 | 18 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 18 | return fmt::to_string(debug_string_buffer); | 166 | 18 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 12 | fmt::memory_buffer debug_string_buffer; | 164 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 12 | return fmt::to_string(debug_string_buffer); | 166 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 32 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 32 | fmt::memory_buffer debug_string_buffer; | 164 | 32 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 32 | return fmt::to_string(debug_string_buffer); | 166 | 32 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 235 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 235 | fmt::memory_buffer debug_string_buffer; | 164 | 235 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 235 | return fmt::to_string(debug_string_buffer); | 166 | 235 | } |
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 | 162 | 29 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 29 | fmt::memory_buffer debug_string_buffer; | 164 | 29 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 29 | return fmt::to_string(debug_string_buffer); | 166 | 29 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 17.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 17.0k | fmt::memory_buffer debug_string_buffer; | 164 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 17.0k | return fmt::to_string(debug_string_buffer); | 166 | 17.0k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
167 | | |
168 | 17.6k | std::string OperatorXBase::debug_string(int indentation_level) const { |
169 | 17.6k | fmt::memory_buffer debug_string_buffer; |
170 | 17.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
171 | 17.6k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
172 | 17.6k | _is_serial_operator); |
173 | 17.6k | return fmt::to_string(debug_string_buffer); |
174 | 17.6k | } |
175 | | |
176 | 17.4k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
177 | 17.4k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
178 | 17.4k | } |
179 | | |
180 | 543k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
181 | 543k | std::string node_name = print_plan_node_type(tnode.node_type); |
182 | 543k | _nereids_id = tnode.nereids_id; |
183 | 543k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
184 | 2.92k | if (!tnode.__isset.output_tuple_id) { |
185 | 0 | return Status::InternalError("no final output tuple id"); |
186 | 0 | } |
187 | 2.92k | if (tnode.intermediate_output_tuple_id_list.size() != |
188 | 2.92k | tnode.intermediate_projections_list.size()) { |
189 | 0 | return Status::InternalError( |
190 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
191 | 0 | "intermediate_projections_list size:{}", |
192 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
193 | 0 | tnode.intermediate_projections_list.size()); |
194 | 0 | } |
195 | 2.92k | } |
196 | 543k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
197 | 543k | _op_name = substr + "_OPERATOR"; |
198 | | |
199 | 543k | if (tnode.__isset.vconjunct) { |
200 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
201 | 543k | } else if (tnode.__isset.conjuncts) { |
202 | 251k | for (const auto& conjunct : tnode.conjuncts) { |
203 | 251k | VExprContextSPtr context; |
204 | 251k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
205 | 251k | _conjuncts.emplace_back(context); |
206 | 251k | } |
207 | 86.1k | } |
208 | | |
209 | | // create the projections expr |
210 | 543k | if (tnode.__isset.projections) { |
211 | 231k | DCHECK(tnode.__isset.output_tuple_id); |
212 | 231k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
213 | 231k | } |
214 | 543k | if (!tnode.intermediate_projections_list.empty()) { |
215 | 2.93k | DCHECK(tnode.__isset.projections) << "no final projections"; |
216 | 2.93k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
217 | 3.85k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
218 | 3.85k | VExprContextSPtrs projections; |
219 | 3.85k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
220 | 3.85k | _intermediate_projections.push_back(projections); |
221 | 3.85k | } |
222 | 2.93k | } |
223 | 543k | return Status::OK(); |
224 | 543k | } |
225 | | |
226 | 570k | Status OperatorXBase::prepare(RuntimeState* state) { |
227 | 570k | for (auto& conjunct : _conjuncts) { |
228 | 251k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
229 | 251k | } |
230 | 570k | if (state->enable_adjust_conjunct_order_by_cost()) { |
231 | 520k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
232 | 330k | return a->execute_cost() < b->execute_cost(); |
233 | 330k | }); |
234 | 520k | }; |
235 | | |
236 | 573k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
237 | 3.86k | RETURN_IF_ERROR( |
238 | 3.86k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
239 | 3.86k | } |
240 | 570k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
241 | | |
242 | 570k | if (has_output_row_desc()) { |
243 | 231k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
244 | 231k | } |
245 | | |
246 | 570k | for (auto& conjunct : _conjuncts) { |
247 | 251k | RETURN_IF_ERROR(conjunct->open(state)); |
248 | 251k | } |
249 | 570k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
250 | 570k | for (auto& projections : _intermediate_projections) { |
251 | 3.86k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
252 | 3.86k | } |
253 | 570k | if (_child && !is_source()) { |
254 | 129k | RETURN_IF_ERROR(_child->prepare(state)); |
255 | 129k | } |
256 | | |
257 | 570k | if (VExpr::contains_blockable_function(_conjuncts) || |
258 | 570k | VExpr::contains_blockable_function(_projections)) { |
259 | 0 | _blockable = true; |
260 | 0 | } |
261 | | |
262 | 570k | return Status::OK(); |
263 | 570k | } |
264 | | |
265 | 7.16k | Status OperatorXBase::terminate(RuntimeState* state) { |
266 | 7.16k | if (_child && !is_source()) { |
267 | 1.68k | RETURN_IF_ERROR(_child->terminate(state)); |
268 | 1.68k | } |
269 | 7.16k | auto result = state->get_local_state_result(operator_id()); |
270 | 7.16k | if (!result) { |
271 | 0 | return result.error(); |
272 | 0 | } |
273 | 7.16k | return result.value()->terminate(state); |
274 | 7.16k | } |
275 | | |
276 | 5.82M | Status OperatorXBase::close(RuntimeState* state) { |
277 | 5.82M | if (_child && !is_source()) { |
278 | 1.32M | RETURN_IF_ERROR(_child->close(state)); |
279 | 1.32M | } |
280 | 5.82M | auto result = state->get_local_state_result(operator_id()); |
281 | 5.82M | if (!result) { |
282 | 0 | return result.error(); |
283 | 0 | } |
284 | 5.82M | return result.value()->close(state); |
285 | 5.82M | } |
286 | | |
287 | 287k | void PipelineXLocalStateBase::clear_origin_block() { |
288 | 287k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
289 | 287k | } |
290 | | |
291 | 564k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
292 | 564k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
293 | | |
294 | 564k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
295 | 564k | return Status::OK(); |
296 | 564k | } |
297 | | |
298 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
299 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
300 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
301 | 0 | } |
302 | | |
303 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
304 | 287k | Block* output_block) const { |
305 | 287k | auto* local_state = state->get_local_state(operator_id()); |
306 | 287k | SCOPED_TIMER(local_state->exec_time_counter()); |
307 | 287k | SCOPED_TIMER(local_state->_projection_timer); |
308 | 287k | const size_t rows = origin_block->rows(); |
309 | 287k | if (rows == 0) { |
310 | 173k | return Status::OK(); |
311 | 173k | } |
312 | 113k | Block input_block = *origin_block; |
313 | | |
314 | 113k | size_t bytes_usage = 0; |
315 | 113k | ColumnsWithTypeAndName new_columns; |
316 | 113k | for (const auto& projections : local_state->_intermediate_projections) { |
317 | 927 | if (projections.empty()) { |
318 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
319 | 0 | node_id()); |
320 | 0 | } |
321 | 927 | new_columns.resize(projections.size()); |
322 | 6.07k | for (int i = 0; i < projections.size(); i++) { |
323 | 5.15k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
324 | 5.15k | if (new_columns[i].column->size() != rows) { |
325 | 0 | return Status::InternalError( |
326 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
327 | 0 | "expr: {}", |
328 | 0 | new_columns[i].column->size(), rows, |
329 | 0 | projections[i]->root()->debug_string()); |
330 | 0 | } |
331 | 5.15k | } |
332 | 927 | Block tmp_block {new_columns}; |
333 | 927 | bytes_usage += tmp_block.allocated_bytes(); |
334 | 927 | input_block.swap(tmp_block); |
335 | 927 | } |
336 | | |
337 | 113k | if (input_block.rows() != rows) { |
338 | 0 | return Status::InternalError( |
339 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
340 | 0 | "input_block: {}", |
341 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
342 | 0 | } |
343 | 528k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
344 | 528k | if (to->is_nullable() && !from->is_nullable()) { |
345 | 0 | if (_keep_origin || !from->is_exclusive()) { |
346 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
347 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
348 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
349 | 0 | bytes_usage += null_column.allocated_bytes(); |
350 | 0 | } else { |
351 | 0 | to = make_nullable(from, false)->assume_mutable(); |
352 | 0 | } |
353 | 528k | } else { |
354 | 528k | if (_keep_origin || !from->is_exclusive()) { |
355 | 517k | to->insert_range_from(*from, 0, rows); |
356 | 517k | bytes_usage += from->allocated_bytes(); |
357 | 517k | } else { |
358 | 10.6k | to = from->assume_mutable(); |
359 | 10.6k | } |
360 | 528k | } |
361 | 528k | }; |
362 | | |
363 | 113k | MutableBlock mutable_block = |
364 | 113k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
365 | 113k | if (rows != 0) { |
366 | 113k | auto& mutable_columns = mutable_block.mutable_columns(); |
367 | 113k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
368 | 642k | for (int i = 0; i < mutable_columns.size(); ++i) { |
369 | 528k | ColumnPtr column_ptr; |
370 | 528k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
371 | 528k | if (column_ptr->size() != rows) { |
372 | 0 | return Status::InternalError( |
373 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
374 | 0 | column_ptr->size(), rows, |
375 | 0 | local_state->_projections[i]->root()->debug_string()); |
376 | 0 | } |
377 | 528k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
378 | 528k | bytes_usage += column_ptr->allocated_bytes(); |
379 | 528k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
380 | 528k | } |
381 | 113k | DCHECK(mutable_block.rows() == rows); |
382 | 113k | output_block->set_columns(std::move(mutable_columns)); |
383 | 113k | } |
384 | | |
385 | 113k | local_state->_estimate_memory_usage += bytes_usage; |
386 | | |
387 | 113k | return Status::OK(); |
388 | 113k | } |
389 | | |
390 | 4.23M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
391 | 4.23M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
392 | 4.23M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
393 | 4.23M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
394 | 4.23M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
395 | 4.23M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
396 | 4.23M | if (_debug_point_count++ % 2 == 0) { |
397 | 4.23M | return Status::OK(); |
398 | 4.23M | } |
399 | 4.23M | } |
400 | 4.23M | }); |
401 | | |
402 | 4.23M | Status status; |
403 | 4.23M | auto* local_state = state->get_local_state(operator_id()); |
404 | 4.23M | Defer defer([&]() { |
405 | 4.23M | if (status.ok()) { |
406 | 4.22M | if (auto rows = block->rows()) { |
407 | 678k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
408 | 678k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
409 | 678k | } |
410 | 4.22M | } |
411 | 4.23M | }); |
412 | 4.23M | if (_output_row_descriptor) { |
413 | 287k | local_state->clear_origin_block(); |
414 | 287k | status = get_block(state, &local_state->_origin_block, eos); |
415 | 287k | if (UNLIKELY(!status.ok())) { |
416 | 19 | return status; |
417 | 19 | } |
418 | 287k | status = do_projections(state, &local_state->_origin_block, block); |
419 | 287k | return status; |
420 | 287k | } |
421 | 3.94M | status = get_block(state, block, eos); |
422 | 3.94M | RETURN_IF_ERROR(block->check_type_and_column()); |
423 | 3.94M | return status; |
424 | 3.94M | } |
425 | | |
426 | 2.25M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
427 | 2.25M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
428 | 3.98k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
429 | 3.98k | *eos = true; |
430 | 3.98k | } |
431 | | |
432 | 2.25M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
433 | 2.25M | auto op_name = to_lower(_parent->_op_name); |
434 | 2.25M | auto arg_op_name = dp->param<std::string>("op_name"); |
435 | 2.25M | arg_op_name = to_lower(arg_op_name); |
436 | | |
437 | 2.25M | if (op_name == arg_op_name) { |
438 | 2.25M | *eos = true; |
439 | 2.25M | } |
440 | 2.25M | }); |
441 | | |
442 | 2.25M | if (auto rows = block->rows()) { |
443 | 642k | _num_rows_returned += rows; |
444 | 642k | } |
445 | 2.25M | } |
446 | | |
447 | 29.4k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
448 | 29.4k | auto result = state->get_sink_local_state_result(); |
449 | 29.4k | if (!result) { |
450 | 0 | return result.error(); |
451 | 0 | } |
452 | 29.4k | return result.value()->terminate(state); |
453 | 29.4k | } |
454 | | |
455 | 17.5k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
456 | 17.5k | fmt::memory_buffer debug_string_buffer; |
457 | | |
458 | 17.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
459 | 17.5k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
460 | 17.5k | return fmt::to_string(debug_string_buffer); |
461 | 17.5k | } |
462 | | |
463 | 17.3k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
464 | 17.3k | return state->get_sink_local_state()->debug_string(indentation_level); |
465 | 17.3k | } |
466 | | |
467 | 325k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
468 | 325k | std::string op_name = "UNKNOWN_SINK"; |
469 | 325k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
470 | | |
471 | 325k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
472 | 325k | op_name = it->second; |
473 | 325k | } |
474 | 325k | _name = op_name + "_OPERATOR"; |
475 | 325k | return Status::OK(); |
476 | 325k | } |
477 | | |
478 | 160k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
479 | 160k | std::string op_name = print_plan_node_type(tnode.node_type); |
480 | 160k | _nereids_id = tnode.nereids_id; |
481 | 160k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
482 | 160k | _name = substr + "_SINK_OPERATOR"; |
483 | 160k | return Status::OK(); |
484 | 160k | } |
485 | | |
486 | | template <typename LocalStateType> |
487 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
488 | 1.68M | LocalSinkStateInfo& info) { |
489 | 1.68M | auto local_state = LocalStateType::create_unique(this, state); |
490 | 1.68M | RETURN_IF_ERROR(local_state->init(state, info)); |
491 | 1.68M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
492 | 1.68M | return Status::OK(); |
493 | 1.68M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 146k | LocalSinkStateInfo& info) { | 489 | 146k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 146k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 146k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 146k | return Status::OK(); | 493 | 146k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 403k | LocalSinkStateInfo& info) { | 489 | 403k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 403k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 403k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 403k | return Status::OK(); | 493 | 403k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 3 | LocalSinkStateInfo& info) { | 489 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 3 | return Status::OK(); | 493 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 356 | LocalSinkStateInfo& info) { | 489 | 356 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 356 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 356 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 356 | return Status::OK(); | 493 | 356 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 52.6k | LocalSinkStateInfo& info) { | 489 | 52.6k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 52.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 52.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 52.6k | return Status::OK(); | 493 | 52.6k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 4 | LocalSinkStateInfo& info) { | 489 | 4 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 4 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 4 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 4 | return Status::OK(); | 493 | 4 | } |
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 | 488 | 8.29k | LocalSinkStateInfo& info) { | 489 | 8.29k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 8.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 8.29k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 8.29k | return Status::OK(); | 493 | 8.29k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 9 | LocalSinkStateInfo& info) { | 489 | 9 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 9 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 9 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 9 | return Status::OK(); | 493 | 9 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 173k | LocalSinkStateInfo& info) { | 489 | 173k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 173k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 173k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 173k | return Status::OK(); | 493 | 173k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 43 | LocalSinkStateInfo& info) { | 489 | 43 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 43 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 43 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 43 | return Status::OK(); | 493 | 43 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 229k | LocalSinkStateInfo& info) { | 489 | 229k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 229k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 229k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 229k | return Status::OK(); | 493 | 229k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 91.3k | LocalSinkStateInfo& info) { | 489 | 91.3k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 91.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 91.3k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 91.3k | return Status::OK(); | 493 | 91.3k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 477 | LocalSinkStateInfo& info) { | 489 | 477 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 477 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 477 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 477 | return Status::OK(); | 493 | 477 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 66 | LocalSinkStateInfo& info) { | 489 | 66 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 66 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 66 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 66 | return Status::OK(); | 493 | 66 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 552k | LocalSinkStateInfo& info) { | 489 | 552k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 552k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 552k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 552k | return Status::OK(); | 493 | 552k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 5.29k | LocalSinkStateInfo& info) { | 489 | 5.29k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 5.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 5.29k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 5.29k | return Status::OK(); | 493 | 5.29k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 5.60k | LocalSinkStateInfo& info) { | 489 | 5.60k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 5.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 5.60k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 5.60k | return Status::OK(); | 493 | 5.60k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 1.31k | LocalSinkStateInfo& info) { | 489 | 1.31k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 1.31k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 1.31k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 1.31k | return Status::OK(); | 493 | 1.31k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 643 | LocalSinkStateInfo& info) { | 489 | 643 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 643 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 643 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 643 | return Status::OK(); | 493 | 643 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 4.62k | LocalSinkStateInfo& info) { | 489 | 4.62k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 4.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 4.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 4.62k | return Status::OK(); | 493 | 4.62k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 2.46k | LocalSinkStateInfo& info) { | 489 | 2.46k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 2.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 2.46k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 2.46k | return Status::OK(); | 493 | 2.46k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 2.38k | LocalSinkStateInfo& info) { | 489 | 2.38k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 2.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 2.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 2.38k | return Status::OK(); | 493 | 2.38k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 2.39k | LocalSinkStateInfo& info) { | 489 | 2.39k | auto local_state = LocalStateType::create_unique(this, state); | 490 | 2.39k | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 2.39k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 2.39k | return Status::OK(); | 493 | 2.39k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 1 | LocalSinkStateInfo& info) { | 489 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 1 | return Status::OK(); | 493 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 165 | LocalSinkStateInfo& info) { | 489 | 165 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 165 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 165 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 165 | return Status::OK(); | 493 | 165 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 14 | LocalSinkStateInfo& info) { | 489 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 14 | return Status::OK(); | 493 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 103 | LocalSinkStateInfo& info) { | 489 | 103 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 103 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 103 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 103 | return Status::OK(); | 493 | 103 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 151 | LocalSinkStateInfo& info) { | 489 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 151 | return Status::OK(); | 493 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 488 | 151 | LocalSinkStateInfo& info) { | 489 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 490 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 491 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 492 | 151 | return Status::OK(); | 493 | 151 | } |
|
494 | | |
495 | | template <typename LocalStateType> |
496 | 1.42M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
498 | 0 | LocalExchangeSharedState>) { |
499 | 0 | return nullptr; |
500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
501 | 0 | MultiCastSharedState>) { |
502 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
503 | 1.42M | } else { |
504 | 1.42M | auto ss = LocalStateType::SharedStateType::create_shared(); |
505 | 1.42M | ss->id = operator_id(); |
506 | 1.42M | for (auto& dest : dests_id()) { |
507 | 1.41M | ss->related_op_ids.insert(dest); |
508 | 1.41M | } |
509 | 1.42M | return ss; |
510 | 1.42M | } |
511 | 1.42M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 134k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 134k | } else { | 504 | 134k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 134k | ss->id = operator_id(); | 506 | 134k | for (auto& dest : dests_id()) { | 507 | 134k | ss->related_op_ids.insert(dest); | 508 | 134k | } | 509 | 134k | return ss; | 510 | 134k | } | 511 | 134k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 402k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 402k | } else { | 504 | 402k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 402k | ss->id = operator_id(); | 506 | 402k | for (auto& dest : dests_id()) { | 507 | 400k | ss->related_op_ids.insert(dest); | 508 | 400k | } | 509 | 402k | return ss; | 510 | 402k | } | 511 | 402k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 3 | } else { | 504 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 3 | ss->id = operator_id(); | 506 | 3 | for (auto& dest : dests_id()) { | 507 | 3 | ss->related_op_ids.insert(dest); | 508 | 3 | } | 509 | 3 | return ss; | 510 | 3 | } | 511 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 358 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 358 | } else { | 504 | 358 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 358 | ss->id = operator_id(); | 506 | 358 | for (auto& dest : dests_id()) { | 507 | 358 | ss->related_op_ids.insert(dest); | 508 | 358 | } | 509 | 358 | return ss; | 510 | 358 | } | 511 | 358 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 52.5k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 52.5k | } else { | 504 | 52.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 52.5k | ss->id = operator_id(); | 506 | 52.5k | for (auto& dest : dests_id()) { | 507 | 52.3k | ss->related_op_ids.insert(dest); | 508 | 52.3k | } | 509 | 52.5k | return ss; | 510 | 52.5k | } | 511 | 52.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 4 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 4 | } else { | 504 | 4 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 4 | ss->id = operator_id(); | 506 | 4 | for (auto& dest : dests_id()) { | 507 | 4 | ss->related_op_ids.insert(dest); | 508 | 4 | } | 509 | 4 | return ss; | 510 | 4 | } | 511 | 4 | } |
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 | 496 | 8.30k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 8.30k | } else { | 504 | 8.30k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 8.30k | ss->id = operator_id(); | 506 | 8.30k | for (auto& dest : dests_id()) { | 507 | 8.29k | ss->related_op_ids.insert(dest); | 508 | 8.29k | } | 509 | 8.30k | return ss; | 510 | 8.30k | } | 511 | 8.30k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 9 | } else { | 504 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 9 | ss->id = operator_id(); | 506 | 9 | for (auto& dest : dests_id()) { | 507 | 9 | ss->related_op_ids.insert(dest); | 508 | 9 | } | 509 | 9 | return ss; | 510 | 9 | } | 511 | 9 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 173k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 173k | } else { | 504 | 173k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 173k | ss->id = operator_id(); | 506 | 173k | for (auto& dest : dests_id()) { | 507 | 173k | ss->related_op_ids.insert(dest); | 508 | 173k | } | 509 | 173k | return ss; | 510 | 173k | } | 511 | 173k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 45 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 45 | } else { | 504 | 45 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 45 | ss->id = operator_id(); | 506 | 45 | for (auto& dest : dests_id()) { | 507 | 45 | ss->related_op_ids.insert(dest); | 508 | 45 | } | 509 | 45 | return ss; | 510 | 45 | } | 511 | 45 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 91.4k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 91.4k | } else { | 504 | 91.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 91.4k | ss->id = operator_id(); | 506 | 91.4k | for (auto& dest : dests_id()) { | 507 | 91.4k | ss->related_op_ids.insert(dest); | 508 | 91.4k | } | 509 | 91.4k | return ss; | 510 | 91.4k | } | 511 | 91.4k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 65 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 65 | } else { | 504 | 65 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 65 | ss->id = operator_id(); | 506 | 65 | for (auto& dest : dests_id()) { | 507 | 65 | ss->related_op_ids.insert(dest); | 508 | 65 | } | 509 | 65 | return ss; | 510 | 65 | } | 511 | 65 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 551k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 551k | } else { | 504 | 551k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 551k | ss->id = operator_id(); | 506 | 551k | for (auto& dest : dests_id()) { | 507 | 546k | ss->related_op_ids.insert(dest); | 508 | 546k | } | 509 | 551k | return ss; | 510 | 551k | } | 511 | 551k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 5.29k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 5.29k | } else { | 504 | 5.29k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 5.29k | ss->id = operator_id(); | 506 | 5.29k | for (auto& dest : dests_id()) { | 507 | 5.28k | ss->related_op_ids.insert(dest); | 508 | 5.28k | } | 509 | 5.29k | return ss; | 510 | 5.29k | } | 511 | 5.29k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 746 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 746 | } else { | 504 | 746 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 746 | ss->id = operator_id(); | 506 | 747 | for (auto& dest : dests_id()) { | 507 | 747 | ss->related_op_ids.insert(dest); | 508 | 747 | } | 509 | 746 | return ss; | 510 | 746 | } | 511 | 746 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 496 | 2.39k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 2.39k | } else { | 504 | 2.39k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 2.39k | ss->id = operator_id(); | 506 | 2.39k | for (auto& dest : dests_id()) { | 507 | 2.38k | ss->related_op_ids.insert(dest); | 508 | 2.38k | } | 509 | 2.39k | return ss; | 510 | 2.39k | } | 511 | 2.39k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 496 | 2.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 2.38k | } else { | 504 | 2.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 2.38k | ss->id = operator_id(); | 506 | 2.39k | for (auto& dest : dests_id()) { | 507 | 2.39k | ss->related_op_ids.insert(dest); | 508 | 2.39k | } | 509 | 2.38k | return ss; | 510 | 2.38k | } | 511 | 2.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 165 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 165 | } else { | 504 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 165 | ss->id = operator_id(); | 506 | 165 | for (auto& dest : dests_id()) { | 507 | 165 | ss->related_op_ids.insert(dest); | 508 | 165 | } | 509 | 165 | return ss; | 510 | 165 | } | 511 | 165 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 496 | 105 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 497 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | LocalExchangeSharedState>) { | 499 | | return nullptr; | 500 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 501 | | MultiCastSharedState>) { | 502 | | throw Exception(Status::FatalError("should not reach here!")); | 503 | 105 | } else { | 504 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 505 | 105 | ss->id = operator_id(); | 506 | 105 | for (auto& dest : dests_id()) { | 507 | 105 | ss->related_op_ids.insert(dest); | 508 | 105 | } | 509 | 105 | return ss; | 510 | 105 | } | 511 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
512 | | |
513 | | template <typename LocalStateType> |
514 | 2.26M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
515 | 2.26M | auto local_state = LocalStateType::create_unique(state, this); |
516 | 2.26M | RETURN_IF_ERROR(local_state->init(state, info)); |
517 | 2.26M | state->emplace_local_state(operator_id(), std::move(local_state)); |
518 | 2.26M | return Status::OK(); |
519 | 2.26M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 98.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 98.3k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 98.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 98.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 98.3k | return Status::OK(); | 519 | 98.3k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 255k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 255k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 255k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 255k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 255k | return Status::OK(); | 519 | 255k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 79 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 79 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 79 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 79 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 79 | return Status::OK(); | 519 | 79 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.67k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.67k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.67k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.67k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.67k | return Status::OK(); | 519 | 2.67k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 8.28k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 8.28k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 8.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 8.28k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 8.28k | return Status::OK(); | 519 | 8.28k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 8.48k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 8.48k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 8.48k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 8.48k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 8.48k | return Status::OK(); | 519 | 8.48k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 37 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 37 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 37 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 37 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 37 | return Status::OK(); | 519 | 37 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 163k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 163k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 163k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 163k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 163k | return Status::OK(); | 519 | 163k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 90.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 90.9k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 90.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 90.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 90.9k | return Status::OK(); | 519 | 90.9k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 551 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 551 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 551 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 551 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 551 | return Status::OK(); | 519 | 551 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 55 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 55 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 55 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 55 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 55 | return Status::OK(); | 519 | 55 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.78k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.78k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.78k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.78k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.78k | return Status::OK(); | 519 | 2.78k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 405k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 405k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 405k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 405k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 405k | return Status::OK(); | 519 | 405k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.06k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.06k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.06k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.06k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.06k | return Status::OK(); | 519 | 1.06k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 5.25k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 5.25k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 5.25k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 5.25k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 5.25k | return Status::OK(); | 519 | 5.25k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 21 | return Status::OK(); | 519 | 21 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.46k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.46k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.46k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.46k | return Status::OK(); | 519 | 1.46k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 50.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 50.4k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 50.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 50.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 50.4k | return Status::OK(); | 519 | 50.4k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 3.49k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 3.49k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 3.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 3.49k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 3.49k | return Status::OK(); | 519 | 3.49k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 640 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 640 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 640 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 640 | return Status::OK(); | 519 | 640 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.27k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.27k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.27k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.27k | return Status::OK(); | 519 | 2.27k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 2.24k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 2.24k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 2.24k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 2.24k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 2.24k | return Status::OK(); | 519 | 2.24k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 269 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 269 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 269 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 269 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 269 | return Status::OK(); | 519 | 269 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.53k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.53k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.53k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.53k | return Status::OK(); | 519 | 1.53k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 4.88k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 4.88k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 4.88k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 4.88k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 4.88k | return Status::OK(); | 519 | 4.88k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 605k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 605k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 605k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 605k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 605k | return Status::OK(); | 519 | 605k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 14 | return Status::OK(); | 519 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 151 | return Status::OK(); | 519 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 1.95k | return Status::OK(); | 519 | 1.95k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 681 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 681 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 681 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 681 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 681 | return Status::OK(); | 519 | 681 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 703 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 703 | auto local_state = LocalStateType::create_unique(state, this); | 516 | 703 | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 703 | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 703 | return Status::OK(); | 519 | 703 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 4.97k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 4.97k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 4.97k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 4.97k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 4.97k | return Status::OK(); | 519 | 4.97k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 514 | 542k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 515 | 542k | auto local_state = LocalStateType::create_unique(state, this); | 516 | 542k | RETURN_IF_ERROR(local_state->init(state, info)); | 517 | 542k | state->emplace_local_state(operator_id(), std::move(local_state)); | 518 | 542k | return Status::OK(); | 519 | 542k | } |
|
520 | | |
521 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
522 | | RuntimeState* state) |
523 | 1.68M | : _parent(parent), _state(state) {} |
524 | | |
525 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
526 | 2.26M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
527 | | |
528 | | template <typename SharedStateArg> |
529 | 2.26M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
530 | 2.26M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
531 | 2.26M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
532 | 2.26M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
533 | 2.26M | _operator_profile->set_metadata(_parent->node_id()); |
534 | | // indent is false so that source operator will have same |
535 | | // indentation_level with its parent operator. |
536 | 2.26M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
537 | 2.26M | _operator_profile->add_child(_common_profile.get(), true); |
538 | 2.26M | _operator_profile->add_child(_custom_profile.get(), true); |
539 | 2.26M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
540 | 2.26M | if constexpr (!is_fake_shared) { |
541 | 1.03M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
542 | 615k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
543 | 615k | .first.get() |
544 | 615k | ->template cast<SharedStateArg>(); |
545 | | |
546 | 615k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
547 | 615k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
548 | 615k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
549 | 615k | } else if (info.shared_state) { |
550 | 367k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
551 | 0 | DCHECK(false); |
552 | 0 | } |
553 | | // For UnionSourceOperator without children, there is no shared state. |
554 | 367k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
555 | | |
556 | 367k | _dependency = _shared_state->create_source_dependency( |
557 | 367k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
558 | 367k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
559 | 367k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
560 | 367k | } else { |
561 | 54.6k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
562 | 96 | DCHECK(false); |
563 | 96 | } |
564 | 54.6k | } |
565 | 1.03M | } |
566 | | |
567 | 2.26M | if (must_set_shared_state() && _shared_state == nullptr) { |
568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
569 | 0 | } |
570 | | |
571 | 2.26M | _rows_returned_counter = |
572 | 2.26M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
573 | 2.26M | _blocks_returned_counter = |
574 | 2.26M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
575 | 2.26M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
576 | 2.26M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
577 | 2.26M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
578 | 2.26M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
579 | 2.26M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
580 | 2.26M | _memory_used_counter = |
581 | 2.26M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
582 | 2.26M | _common_profile->add_info_string("IsColocate", |
583 | 2.26M | std::to_string(_parent->is_colocated_operator())); |
584 | 2.26M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
585 | 2.26M | _common_profile->add_info_string("FollowedByShuffledOperator", |
586 | 2.26M | std::to_string(_parent->followed_by_shuffled_operator())); |
587 | 2.26M | return Status::OK(); |
588 | 2.26M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 98.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 98.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 98.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 98.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 98.5k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 98.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 98.5k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 98.5k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 98.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 98.5k | if constexpr (!is_fake_shared) { | 541 | 98.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 11.6k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 11.6k | .first.get() | 544 | 11.6k | ->template cast<SharedStateArg>(); | 545 | | | 546 | 11.6k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 11.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 11.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 86.8k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 86.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 86.1k | _dependency = _shared_state->create_source_dependency( | 557 | 86.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 86.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 86.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 86.1k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 680 | } | 565 | 98.5k | } | 566 | | | 567 | 98.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 98.5k | _rows_returned_counter = | 572 | 98.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 98.5k | _blocks_returned_counter = | 574 | 98.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 98.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 98.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 98.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 98.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 98.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 98.5k | _memory_used_counter = | 581 | 98.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 98.5k | _common_profile->add_info_string("IsColocate", | 583 | 98.5k | std::to_string(_parent->is_colocated_operator())); | 584 | 98.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 98.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 98.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 98.5k | return Status::OK(); | 588 | 98.5k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 1 | if constexpr (!is_fake_shared) { | 541 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 1 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 1 | _dependency = _shared_state->create_source_dependency( | 557 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 1 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 1 | } | 566 | | | 567 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 1 | _rows_returned_counter = | 572 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 1 | _blocks_returned_counter = | 574 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 1 | _memory_used_counter = | 581 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 1 | _common_profile->add_info_string("IsColocate", | 583 | 1 | std::to_string(_parent->is_colocated_operator())); | 584 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 1 | return Status::OK(); | 588 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 171k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 171k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 171k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 171k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 171k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 171k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 171k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 171k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 171k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 171k | if constexpr (!is_fake_shared) { | 541 | 171k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 171k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 166k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 166k | _dependency = _shared_state->create_source_dependency( | 557 | 166k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 166k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 166k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 166k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 4.78k | } | 565 | 171k | } | 566 | | | 567 | 171k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 171k | _rows_returned_counter = | 572 | 171k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 171k | _blocks_returned_counter = | 574 | 171k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 171k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 171k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 171k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 171k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 171k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 171k | _memory_used_counter = | 581 | 171k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 171k | _common_profile->add_info_string("IsColocate", | 583 | 171k | std::to_string(_parent->is_colocated_operator())); | 584 | 171k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 171k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 171k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 171k | return Status::OK(); | 588 | 171k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 36 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 36 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 36 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 36 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 36 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 36 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 36 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 36 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 36 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 36 | if constexpr (!is_fake_shared) { | 541 | 36 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 37 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 37 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 37 | _dependency = _shared_state->create_source_dependency( | 557 | 37 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 37 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 37 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 18.4E | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 18.4E | } | 565 | 36 | } | 566 | | | 567 | 37 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 36 | _rows_returned_counter = | 572 | 36 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 36 | _blocks_returned_counter = | 574 | 36 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 36 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 36 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 36 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 36 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 36 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 36 | _memory_used_counter = | 581 | 36 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 36 | _common_profile->add_info_string("IsColocate", | 583 | 36 | std::to_string(_parent->is_colocated_operator())); | 584 | 36 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 36 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 36 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 36 | return Status::OK(); | 588 | 36 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 5.21k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 5.21k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 5.21k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 5.21k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 5.21k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 5.21k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 5.21k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 5.21k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 5.21k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 5.21k | if constexpr (!is_fake_shared) { | 541 | 5.21k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 5.21k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 5.21k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 5.21k | _dependency = _shared_state->create_source_dependency( | 557 | 5.21k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 5.21k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 5.21k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 18.4E | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 18.4E | } | 565 | 5.21k | } | 566 | | | 567 | 5.21k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 5.21k | _rows_returned_counter = | 572 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 5.21k | _blocks_returned_counter = | 574 | 5.21k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 5.21k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 5.21k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 5.21k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 5.21k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 5.21k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 5.21k | _memory_used_counter = | 581 | 5.21k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 5.21k | _common_profile->add_info_string("IsColocate", | 583 | 5.21k | std::to_string(_parent->is_colocated_operator())); | 584 | 5.21k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 5.21k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 5.21k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 5.21k | return Status::OK(); | 588 | 5.21k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 8.28k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 8.28k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 8.28k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 8.28k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 8.28k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 8.28k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 8.28k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 8.28k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 8.28k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 8.28k | if constexpr (!is_fake_shared) { | 541 | 8.28k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 8.28k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 8.24k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 8.24k | _dependency = _shared_state->create_source_dependency( | 557 | 8.24k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 8.24k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 8.24k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 8.24k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 40 | } | 565 | 8.28k | } | 566 | | | 567 | 8.28k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 8.28k | _rows_returned_counter = | 572 | 8.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 8.28k | _blocks_returned_counter = | 574 | 8.28k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 8.28k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 8.28k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 8.28k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 8.28k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 8.28k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 8.28k | _memory_used_counter = | 581 | 8.28k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 8.28k | _common_profile->add_info_string("IsColocate", | 583 | 8.28k | std::to_string(_parent->is_colocated_operator())); | 584 | 8.28k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 8.28k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 8.28k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 8.28k | return Status::OK(); | 588 | 8.28k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 91.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 91.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 91.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 91.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 91.0k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 91.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 91.0k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 91.0k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 91.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 91.0k | if constexpr (!is_fake_shared) { | 541 | 91.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 91.0k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 90.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 90.2k | _dependency = _shared_state->create_source_dependency( | 557 | 90.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 90.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 90.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 90.2k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 792 | } | 565 | 91.0k | } | 566 | | | 567 | 91.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 91.0k | _rows_returned_counter = | 572 | 91.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 91.0k | _blocks_returned_counter = | 574 | 91.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 91.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 91.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 91.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 91.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 91.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 91.0k | _memory_used_counter = | 581 | 91.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 91.0k | _common_profile->add_info_string("IsColocate", | 583 | 91.0k | std::to_string(_parent->is_colocated_operator())); | 584 | 91.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 91.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 91.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 91.0k | return Status::OK(); | 588 | 91.0k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 551 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 551 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 551 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 551 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 551 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 551 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 551 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 551 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 551 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 551 | if constexpr (!is_fake_shared) { | 541 | 553 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 553 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 553 | .first.get() | 544 | 553 | ->template cast<SharedStateArg>(); | 545 | | | 546 | 553 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 553 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 553 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 18.4E | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | |
| 556 | 0 | _dependency = _shared_state->create_source_dependency( | 557 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 18.4E | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 18.4E | } | 565 | 551 | } | 566 | | | 567 | 553 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 551 | _rows_returned_counter = | 572 | 551 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 551 | _blocks_returned_counter = | 574 | 551 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 551 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 551 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 551 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 551 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 551 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 551 | _memory_used_counter = | 581 | 551 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 551 | _common_profile->add_info_string("IsColocate", | 583 | 551 | std::to_string(_parent->is_colocated_operator())); | 584 | 551 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 551 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 551 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 551 | return Status::OK(); | 588 | 551 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 54 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 54 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 54 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 54 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 54 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 54 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 54 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 54 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 54 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 54 | if constexpr (!is_fake_shared) { | 541 | 54 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 54 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 54 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 54 | _dependency = _shared_state->create_source_dependency( | 557 | 54 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 54 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 54 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 54 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 54 | } | 566 | | | 567 | 55 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 54 | _rows_returned_counter = | 572 | 54 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 54 | _blocks_returned_counter = | 574 | 54 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 54 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 54 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 54 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 54 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 54 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 54 | _memory_used_counter = | 581 | 54 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 54 | _common_profile->add_info_string("IsColocate", | 583 | 54 | std::to_string(_parent->is_colocated_operator())); | 584 | 54 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 54 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 54 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 54 | return Status::OK(); | 588 | 54 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 1.22M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 1.22M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 1.22M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 1.22M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 1.22M | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 1.22M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 1.22M | _operator_profile->add_child(_common_profile.get(), true); | 538 | 1.22M | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 1.22M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | | if constexpr (!is_fake_shared) { | 541 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | | .first.get() | 544 | | ->template cast<SharedStateArg>(); | 545 | | | 546 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | | _dependency = _shared_state->create_source_dependency( | 557 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | | } | 565 | | } | 566 | | | 567 | 1.22M | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 1.22M | _rows_returned_counter = | 572 | 1.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 1.22M | _blocks_returned_counter = | 574 | 1.22M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 1.22M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 1.22M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 1.22M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 1.22M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 1.22M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 1.22M | _memory_used_counter = | 581 | 1.22M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 1.22M | _common_profile->add_info_string("IsColocate", | 583 | 1.22M | std::to_string(_parent->is_colocated_operator())); | 584 | 1.22M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 1.22M | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 1.22M | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 1.22M | return Status::OK(); | 588 | 1.22M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 50.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 50.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 50.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 50.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 50.2k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 50.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 50.2k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 50.2k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 50.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 50.2k | if constexpr (!is_fake_shared) { | 541 | 50.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 50.2k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 2.63k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 2.63k | _dependency = _shared_state->create_source_dependency( | 557 | 2.63k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 2.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 2.63k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 47.6k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 47.6k | } | 565 | 50.2k | } | 566 | | | 567 | 50.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 50.2k | _rows_returned_counter = | 572 | 50.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 50.2k | _blocks_returned_counter = | 574 | 50.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 50.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 50.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 50.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 50.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 50.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 50.2k | _memory_used_counter = | 581 | 50.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 50.2k | _common_profile->add_info_string("IsColocate", | 583 | 50.2k | std::to_string(_parent->is_colocated_operator())); | 584 | 50.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 50.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 50.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 50.2k | return Status::OK(); | 588 | 50.2k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 16 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 16 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 16 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 16 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 16 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 16 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 16 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 16 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 16 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 16 | if constexpr (!is_fake_shared) { | 541 | 16 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 16 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 16 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 16 | _dependency = _shared_state->create_source_dependency( | 557 | 16 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 16 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 16 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 16 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 16 | } | 566 | | | 567 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 16 | _rows_returned_counter = | 572 | 16 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 16 | _blocks_returned_counter = | 574 | 16 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 16 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 16 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 16 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 16 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 16 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 16 | _memory_used_counter = | 581 | 16 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 16 | _common_profile->add_info_string("IsColocate", | 583 | 16 | std::to_string(_parent->is_colocated_operator())); | 584 | 16 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 16 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 16 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 16 | return Status::OK(); | 588 | 16 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 3.49k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 3.49k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 3.49k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 3.49k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 3.49k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 3.49k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 3.49k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 3.49k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 3.49k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 3.49k | if constexpr (!is_fake_shared) { | 541 | 3.49k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 3.49k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 3.49k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 3.49k | _dependency = _shared_state->create_source_dependency( | 557 | 3.49k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 3.49k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 3.49k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 3.49k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 3 | } | 565 | 3.49k | } | 566 | | | 567 | 3.49k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 3.49k | _rows_returned_counter = | 572 | 3.49k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 3.49k | _blocks_returned_counter = | 574 | 3.49k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 3.49k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 3.49k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 3.49k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 3.49k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 3.49k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 3.49k | _memory_used_counter = | 581 | 3.49k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 3.49k | _common_profile->add_info_string("IsColocate", | 583 | 3.49k | std::to_string(_parent->is_colocated_operator())); | 584 | 3.49k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 3.49k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 3.49k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 3.49k | return Status::OK(); | 588 | 3.49k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 741 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 741 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 741 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 741 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 741 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 741 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 741 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 741 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 741 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 741 | if constexpr (!is_fake_shared) { | 541 | 741 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 743 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 743 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 743 | _dependency = _shared_state->create_source_dependency( | 557 | 743 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 743 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 743 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 18.4E | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 18.4E | } | 565 | 741 | } | 566 | | | 567 | 745 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 741 | _rows_returned_counter = | 572 | 741 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 741 | _blocks_returned_counter = | 574 | 741 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 741 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 741 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 741 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 741 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 741 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 741 | _memory_used_counter = | 581 | 741 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 741 | _common_profile->add_info_string("IsColocate", | 583 | 741 | std::to_string(_parent->is_colocated_operator())); | 584 | 741 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 741 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 741 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 741 | return Status::OK(); | 588 | 741 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 4.68k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 4.68k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 4.68k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 4.68k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 4.68k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 4.68k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 4.68k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 4.68k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 4.68k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 4.68k | if constexpr (!is_fake_shared) { | 541 | 4.68k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 4.68k | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 4.06k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 4.06k | _dependency = _shared_state->create_source_dependency( | 557 | 4.06k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 4.06k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 4.06k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 4.06k | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 619 | } | 565 | 4.68k | } | 566 | | | 567 | 4.68k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 4.68k | _rows_returned_counter = | 572 | 4.68k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 4.68k | _blocks_returned_counter = | 574 | 4.68k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 4.68k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 4.68k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 4.68k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 4.68k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 4.68k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 4.68k | _memory_used_counter = | 581 | 4.68k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 4.68k | _common_profile->add_info_string("IsColocate", | 583 | 4.68k | std::to_string(_parent->is_colocated_operator())); | 584 | 4.68k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 4.68k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 4.68k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 4.68k | return Status::OK(); | 588 | 4.68k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 603k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 603k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 603k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 603k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 603k | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 603k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 603k | _operator_profile->add_child(_common_profile.get(), true); | 538 | 603k | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 603k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 603k | if constexpr (!is_fake_shared) { | 541 | 603k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 602k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 602k | .first.get() | 544 | 602k | ->template cast<SharedStateArg>(); | 545 | | | 546 | 602k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 602k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 602k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 602k | } else if (info.shared_state) { | 550 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | 0 | DCHECK(false); | 552 | 0 | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | |
| 556 | 0 | _dependency = _shared_state->create_source_dependency( | 557 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 96 | } else { | 561 | 96 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | 96 | DCHECK(false); | 563 | 96 | } | 564 | 96 | } | 565 | 603k | } | 566 | | | 567 | 603k | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 603k | _rows_returned_counter = | 572 | 603k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 603k | _blocks_returned_counter = | 574 | 603k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 603k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 603k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 603k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 603k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 603k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 603k | _memory_used_counter = | 581 | 603k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 603k | _common_profile->add_info_string("IsColocate", | 583 | 603k | std::to_string(_parent->is_colocated_operator())); | 584 | 603k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 603k | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 603k | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 603k | return Status::OK(); | 588 | 603k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 529 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 530 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 531 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 532 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 533 | 151 | _operator_profile->set_metadata(_parent->node_id()); | 534 | | // indent is false so that source operator will have same | 535 | | // indentation_level with its parent operator. | 536 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 537 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 538 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 539 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 540 | 151 | if constexpr (!is_fake_shared) { | 541 | 151 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 542 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 543 | 0 | .first.get() | 544 | 0 | ->template cast<SharedStateArg>(); | 545 | |
| 546 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 547 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 548 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 549 | 151 | } else if (info.shared_state) { | 550 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 551 | | DCHECK(false); | 552 | | } | 553 | | // For UnionSourceOperator without children, there is no shared state. | 554 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 555 | | | 556 | 151 | _dependency = _shared_state->create_source_dependency( | 557 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 558 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 559 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 560 | 151 | } else { | 561 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 562 | | DCHECK(false); | 563 | | } | 564 | 0 | } | 565 | 151 | } | 566 | | | 567 | 151 | if (must_set_shared_state() && _shared_state == nullptr) { | 568 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 569 | 0 | } | 570 | | | 571 | 151 | _rows_returned_counter = | 572 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 573 | 151 | _blocks_returned_counter = | 574 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 575 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 576 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 577 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 578 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 579 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 580 | 151 | _memory_used_counter = | 581 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 582 | 151 | _common_profile->add_info_string("IsColocate", | 583 | 151 | std::to_string(_parent->is_colocated_operator())); | 584 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 585 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 586 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 587 | 151 | return Status::OK(); | 588 | 151 | } |
|
589 | | |
590 | | template <typename SharedStateArg> |
591 | 2.28M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
592 | 2.28M | _conjuncts.resize(_parent->_conjuncts.size()); |
593 | 2.28M | _projections.resize(_parent->_projections.size()); |
594 | 2.58M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
595 | 299k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
596 | 299k | } |
597 | 4.29M | for (size_t i = 0; i < _projections.size(); i++) { |
598 | 2.00M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
599 | 2.00M | } |
600 | 2.28M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
601 | 2.28M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
602 | 6.40k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
603 | 41.9k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
604 | 35.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
605 | 35.5k | state, _intermediate_projections[i][j])); |
606 | 35.5k | } |
607 | 6.40k | } |
608 | 2.28M | return Status::OK(); |
609 | 2.28M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 98.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 98.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 98.6k | _projections.resize(_parent->_projections.size()); | 594 | 99.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 1.14k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 1.14k | } | 597 | 497k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 399k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 399k | } | 600 | 98.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 99.3k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 773 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 7.70k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 6.93k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 6.93k | state, _intermediate_projections[i][j])); | 606 | 6.93k | } | 607 | 773 | } | 608 | 98.6k | return Status::OK(); | 609 | 98.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 3 | _projections.resize(_parent->_projections.size()); | 594 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 3 | return Status::OK(); | 609 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 174k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 174k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 174k | _projections.resize(_parent->_projections.size()); | 594 | 174k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 174k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 282 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 282 | } | 600 | 174k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 174k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 174k | return Status::OK(); | 609 | 174k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 37 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 37 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 37 | _projections.resize(_parent->_projections.size()); | 594 | 37 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 37 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 37 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 37 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 37 | return Status::OK(); | 609 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 5.30k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 5.30k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 5.30k | _projections.resize(_parent->_projections.size()); | 594 | 5.37k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 65 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 65 | } | 597 | 21.2k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 15.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 15.9k | } | 600 | 5.30k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 5.32k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 16 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 107 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 91 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 91 | state, _intermediate_projections[i][j])); | 606 | 91 | } | 607 | 16 | } | 608 | 5.30k | return Status::OK(); | 609 | 5.30k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 8.32k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 8.32k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 8.32k | _projections.resize(_parent->_projections.size()); | 594 | 9.39k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 1.06k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 1.06k | } | 597 | 23.2k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 14.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 14.9k | } | 600 | 8.32k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 8.40k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 87 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 651 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 564 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 564 | state, _intermediate_projections[i][j])); | 606 | 564 | } | 607 | 87 | } | 608 | 8.32k | return Status::OK(); | 609 | 8.32k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 91.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 91.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 91.4k | _projections.resize(_parent->_projections.size()); | 594 | 93.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 1.69k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 1.69k | } | 597 | 311k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 220k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 220k | } | 600 | 91.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 91.5k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 117 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 757 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 640 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 640 | state, _intermediate_projections[i][j])); | 606 | 640 | } | 607 | 117 | } | 608 | 91.4k | return Status::OK(); | 609 | 91.4k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 548 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 548 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 548 | _projections.resize(_parent->_projections.size()); | 594 | 552 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 4 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 4 | } | 597 | 2.22k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 1.68k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 1.68k | } | 600 | 548 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 548 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 548 | return Status::OK(); | 609 | 548 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 60 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 60 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 60 | _projections.resize(_parent->_projections.size()); | 594 | 60 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 80 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 20 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 20 | } | 600 | 60 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 60 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 60 | return Status::OK(); | 609 | 60 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 1.23M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 1.23M | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 1.23M | _projections.resize(_parent->_projections.size()); | 594 | 1.52M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 295k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 295k | } | 597 | 2.50M | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 1.27M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 1.27M | } | 600 | 1.23M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 1.23M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 5.40k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 32.7k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 27.3k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 27.3k | state, _intermediate_projections[i][j])); | 606 | 27.3k | } | 607 | 5.40k | } | 608 | 1.23M | return Status::OK(); | 609 | 1.23M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 50.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 50.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 50.6k | _projections.resize(_parent->_projections.size()); | 594 | 50.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 134k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 83.6k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 83.6k | } | 600 | 50.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 50.6k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 50.6k | return Status::OK(); | 609 | 50.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 17 | _projections.resize(_parent->_projections.size()); | 594 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 17 | return Status::OK(); | 609 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 3.49k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 3.49k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 3.49k | _projections.resize(_parent->_projections.size()); | 594 | 3.91k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 416 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 416 | } | 597 | 3.49k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 3.49k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 3.49k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 3.49k | return Status::OK(); | 609 | 3.49k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 747 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 747 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 747 | _projections.resize(_parent->_projections.size()); | 594 | 747 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 747 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 747 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 747 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 747 | return Status::OK(); | 609 | 747 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 4.84k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 4.84k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 4.84k | _projections.resize(_parent->_projections.size()); | 594 | 4.84k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 4.84k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 4.84k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 4.84k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 4.84k | return Status::OK(); | 609 | 4.84k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 611k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 611k | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 611k | _projections.resize(_parent->_projections.size()); | 594 | 611k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 0 | } | 597 | 611k | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 0 | } | 600 | 611k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 611k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 0 | state, _intermediate_projections[i][j])); | 606 | 0 | } | 607 | 0 | } | 608 | 611k | return Status::OK(); | 609 | 611k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 591 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 592 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 593 | 151 | _projections.resize(_parent->_projections.size()); | 594 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 595 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 596 | 7 | } | 597 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 598 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 599 | 296 | } | 600 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 601 | 152 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 602 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 603 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 604 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 605 | 2 | state, _intermediate_projections[i][j])); | 606 | 2 | } | 607 | 1 | } | 608 | 151 | return Status::OK(); | 609 | 151 | } |
|
610 | | |
611 | | template <typename SharedStateArg> |
612 | 7.16k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
613 | 7.16k | if (_terminated) { |
614 | 0 | return Status::OK(); |
615 | 0 | } |
616 | 7.16k | _terminated = true; |
617 | 7.16k | return Status::OK(); |
618 | 7.16k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 1.11k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 1.11k | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 1.11k | _terminated = true; | 617 | 1.11k | return Status::OK(); | 618 | 1.11k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 82 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 82 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 82 | _terminated = true; | 617 | 82 | return Status::OK(); | 618 | 82 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 181 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 181 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 181 | _terminated = true; | 617 | 181 | return Status::OK(); | 618 | 181 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 3 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 3 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 3 | _terminated = true; | 617 | 3 | return Status::OK(); | 618 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 87 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 87 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 87 | _terminated = true; | 617 | 87 | return Status::OK(); | 618 | 87 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 4.65k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 4.65k | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 4.65k | _terminated = true; | 617 | 4.65k | return Status::OK(); | 618 | 4.65k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 7 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 7 | _terminated = true; | 617 | 7 | return Status::OK(); | 618 | 7 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 6 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 6 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 6 | _terminated = true; | 617 | 6 | return Status::OK(); | 618 | 6 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 343 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 343 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 343 | _terminated = true; | 617 | 343 | return Status::OK(); | 618 | 343 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 672 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 672 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 672 | _terminated = true; | 617 | 672 | return Status::OK(); | 618 | 672 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 612 | 17 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 613 | 17 | if (_terminated) { | 614 | 0 | return Status::OK(); | 615 | 0 | } | 616 | 17 | _terminated = true; | 617 | 17 | return Status::OK(); | 618 | 17 | } |
|
619 | | |
620 | | template <typename SharedStateArg> |
621 | 2.48M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
622 | 2.48M | if (_closed) { |
623 | 199k | return Status::OK(); |
624 | 199k | } |
625 | 2.28M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
626 | 1.04M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
627 | 1.04M | } |
628 | 2.28M | _closed = true; |
629 | 2.28M | return Status::OK(); |
630 | 2.48M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 98.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 98.6k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 98.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 98.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 98.6k | } | 628 | 98.6k | _closed = true; | 629 | 98.6k | return Status::OK(); | 630 | 98.6k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 3 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 3 | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 3 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 3 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 3 | } | 628 | 3 | _closed = true; | 629 | 3 | return Status::OK(); | 630 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 345k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 345k | if (_closed) { | 623 | 172k | return Status::OK(); | 624 | 172k | } | 625 | 172k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 172k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 172k | } | 628 | 172k | _closed = true; | 629 | 172k | return Status::OK(); | 630 | 345k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 37 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 37 | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 37 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 37 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 37 | } | 628 | 37 | _closed = true; | 629 | 37 | return Status::OK(); | 630 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 5.30k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 5.30k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 5.30k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 5.30k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 5.30k | } | 628 | 5.30k | _closed = true; | 629 | 5.30k | return Status::OK(); | 630 | 5.30k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 16.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 16.7k | if (_closed) { | 623 | 8.45k | return Status::OK(); | 624 | 8.45k | } | 625 | 8.29k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 8.29k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 8.29k | } | 628 | 8.29k | _closed = true; | 629 | 8.29k | return Status::OK(); | 630 | 16.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 91.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 91.4k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 91.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 91.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 91.4k | } | 628 | 91.4k | _closed = true; | 629 | 91.4k | return Status::OK(); | 630 | 91.4k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 551 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 551 | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 551 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 551 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 551 | } | 628 | 551 | _closed = true; | 629 | 551 | return Status::OK(); | 630 | 551 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 55 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 55 | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 55 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 55 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 55 | } | 628 | 55 | _closed = true; | 629 | 55 | return Status::OK(); | 630 | 55 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 1.24M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 1.24M | if (_closed) { | 623 | 12.1k | return Status::OK(); | 624 | 12.1k | } | 625 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | | } | 628 | 1.23M | _closed = true; | 629 | 1.23M | return Status::OK(); | 630 | 1.24M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 50.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 50.6k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 50.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 50.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 50.6k | } | 628 | 50.6k | _closed = true; | 629 | 50.6k | return Status::OK(); | 630 | 50.6k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 28 | if (_closed) { | 623 | 14 | return Status::OK(); | 624 | 14 | } | 625 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 14 | } | 628 | 14 | _closed = true; | 629 | 14 | return Status::OK(); | 630 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 3.48k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 3.48k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 3.48k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 3.48k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 3.48k | } | 628 | 3.48k | _closed = true; | 629 | 3.48k | return Status::OK(); | 630 | 3.48k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 1.28k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 1.28k | if (_closed) { | 623 | 646 | return Status::OK(); | 624 | 646 | } | 625 | 642 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 642 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 642 | } | 628 | 642 | _closed = true; | 629 | 642 | return Status::OK(); | 630 | 1.28k | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 9.69k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 9.69k | if (_closed) { | 623 | 4.86k | return Status::OK(); | 624 | 4.86k | } | 625 | 4.83k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 4.83k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 4.83k | } | 628 | 4.83k | _closed = true; | 629 | 4.83k | return Status::OK(); | 630 | 9.69k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 612k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 612k | if (_closed) { | 623 | 0 | return Status::OK(); | 624 | 0 | } | 625 | 612k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 612k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 612k | } | 628 | 612k | _closed = true; | 629 | 612k | return Status::OK(); | 630 | 612k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 621 | 307 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 622 | 307 | if (_closed) { | 623 | 164 | return Status::OK(); | 624 | 164 | } | 625 | 143 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 626 | 143 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 627 | 143 | } | 628 | 143 | _closed = true; | 629 | 143 | return Status::OK(); | 630 | 307 | } |
|
631 | | |
632 | | template <typename SharedState> |
633 | 1.68M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
634 | | // create profile |
635 | 1.68M | _operator_profile = |
636 | 1.68M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
637 | 1.68M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
638 | 1.68M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
639 | | |
640 | | // indentation is true |
641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
642 | | // So we should set the indentation to true. |
643 | 1.68M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
644 | 1.68M | _operator_profile->add_child(_common_profile, true); |
645 | 1.68M | _operator_profile->add_child(_custom_profile, true); |
646 | | |
647 | 1.68M | _operator_profile->set_metadata(_parent->node_id()); |
648 | 1.68M | _wait_for_finish_dependency_timer = |
649 | 1.68M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
650 | 1.68M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
651 | 1.68M | if constexpr (!is_fake_shared) { |
652 | 1.13M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
653 | 1.13M | info.shared_state_map.end()) { |
654 | 241k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
655 | 229k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
656 | 229k | } |
657 | 241k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
658 | 241k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
659 | 241k | ? 0 |
660 | 241k | : info.task_idx] |
661 | 241k | .get(); |
662 | 241k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
663 | 888k | } else { |
664 | 888k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
665 | 252 | DCHECK(false); |
666 | 252 | } |
667 | 888k | _shared_state = info.shared_state->template cast<SharedState>(); |
668 | 888k | _dependency = _shared_state->create_sink_dependency( |
669 | 888k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
670 | 888k | } |
671 | 1.13M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
672 | 1.13M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
673 | 1.13M | } |
674 | | |
675 | 1.68M | if (must_set_shared_state() && _shared_state == nullptr) { |
676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
677 | 0 | } |
678 | | |
679 | 1.68M | _rows_input_counter = |
680 | 1.68M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
681 | 1.68M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
682 | 1.68M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
683 | 1.68M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
684 | 1.68M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
685 | 1.68M | _memory_used_counter = |
686 | 1.68M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
687 | 1.68M | _common_profile->add_info_string("IsColocate", |
688 | 1.68M | std::to_string(_parent->is_colocated_operator())); |
689 | 1.68M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
690 | 1.68M | _common_profile->add_info_string("FollowedByShuffledOperator", |
691 | 1.68M | std::to_string(_parent->followed_by_shuffled_operator())); |
692 | 1.68M | return Status::OK(); |
693 | 1.68M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 146k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 146k | _operator_profile = | 636 | 146k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 146k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 146k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 146k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 146k | _operator_profile->add_child(_common_profile, true); | 645 | 146k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 146k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 146k | _wait_for_finish_dependency_timer = | 649 | 146k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 146k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 146k | if constexpr (!is_fake_shared) { | 652 | 146k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 146k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 11.7k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 11.7k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 11.7k | ? 0 | 660 | 11.7k | : info.task_idx] | 661 | 11.7k | .get(); | 662 | 11.7k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 134k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 134k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 134k | _dependency = _shared_state->create_sink_dependency( | 669 | 134k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 134k | } | 671 | 146k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 146k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 146k | } | 674 | | | 675 | 146k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 146k | _rows_input_counter = | 680 | 146k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 146k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 146k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 146k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 146k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 146k | _memory_used_counter = | 686 | 146k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 146k | _common_profile->add_info_string("IsColocate", | 688 | 146k | std::to_string(_parent->is_colocated_operator())); | 689 | 146k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 146k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 146k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 146k | return Status::OK(); | 693 | 146k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 2 | _operator_profile = | 636 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 2 | _operator_profile->add_child(_common_profile, true); | 645 | 2 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 2 | _wait_for_finish_dependency_timer = | 649 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 2 | if constexpr (!is_fake_shared) { | 652 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 2 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 2 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 2 | _dependency = _shared_state->create_sink_dependency( | 669 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 2 | } | 671 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 2 | } | 674 | | | 675 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 2 | _rows_input_counter = | 680 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 2 | _memory_used_counter = | 686 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 2 | _common_profile->add_info_string("IsColocate", | 688 | 2 | std::to_string(_parent->is_colocated_operator())); | 689 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 2 | return Status::OK(); | 693 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 173k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 173k | _operator_profile = | 636 | 173k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 173k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 173k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 173k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 173k | _operator_profile->add_child(_common_profile, true); | 645 | 173k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 173k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 173k | _wait_for_finish_dependency_timer = | 649 | 173k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 173k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 173k | if constexpr (!is_fake_shared) { | 652 | 173k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 173k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 173k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 173k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 173k | _dependency = _shared_state->create_sink_dependency( | 669 | 173k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 173k | } | 671 | 173k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 173k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 173k | } | 674 | | | 675 | 173k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 173k | _rows_input_counter = | 680 | 173k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 173k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 173k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 173k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 173k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 173k | _memory_used_counter = | 686 | 173k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 173k | _common_profile->add_info_string("IsColocate", | 688 | 173k | std::to_string(_parent->is_colocated_operator())); | 689 | 173k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 173k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 173k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 173k | return Status::OK(); | 693 | 173k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 43 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 43 | _operator_profile = | 636 | 43 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 43 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 43 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 43 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 43 | _operator_profile->add_child(_common_profile, true); | 645 | 43 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 43 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 43 | _wait_for_finish_dependency_timer = | 649 | 43 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 43 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 43 | if constexpr (!is_fake_shared) { | 652 | 43 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 43 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 43 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 43 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 43 | _dependency = _shared_state->create_sink_dependency( | 669 | 43 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 43 | } | 671 | 43 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 43 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 43 | } | 674 | | | 675 | 43 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 43 | _rows_input_counter = | 680 | 43 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 43 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 43 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 43 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 43 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 43 | _memory_used_counter = | 686 | 43 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 43 | _common_profile->add_info_string("IsColocate", | 688 | 43 | std::to_string(_parent->is_colocated_operator())); | 689 | 43 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 43 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 43 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 43 | return Status::OK(); | 693 | 43 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 5.30k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 5.30k | _operator_profile = | 636 | 5.30k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 5.30k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 5.30k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 5.30k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 5.30k | _operator_profile->add_child(_common_profile, true); | 645 | 5.30k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 5.30k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 5.30k | _wait_for_finish_dependency_timer = | 649 | 5.30k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 5.30k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 5.30k | if constexpr (!is_fake_shared) { | 652 | 5.30k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 5.30k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 5.30k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 5.30k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 5.30k | _dependency = _shared_state->create_sink_dependency( | 669 | 5.30k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 5.30k | } | 671 | 5.30k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 5.30k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 5.30k | } | 674 | | | 675 | 5.30k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 5.30k | _rows_input_counter = | 680 | 5.30k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 5.30k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 5.30k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 5.30k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 5.30k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 5.30k | _memory_used_counter = | 686 | 5.30k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 5.30k | _common_profile->add_info_string("IsColocate", | 688 | 5.30k | std::to_string(_parent->is_colocated_operator())); | 689 | 5.30k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 5.30k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 5.30k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 5.30k | return Status::OK(); | 693 | 5.30k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 8.30k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 8.30k | _operator_profile = | 636 | 8.30k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 8.30k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 8.30k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 8.30k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 8.30k | _operator_profile->add_child(_common_profile, true); | 645 | 8.30k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 8.30k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 8.30k | _wait_for_finish_dependency_timer = | 649 | 8.30k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 8.30k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 8.30k | if constexpr (!is_fake_shared) { | 652 | 8.30k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 8.30k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 8.30k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 8.30k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 8.30k | _dependency = _shared_state->create_sink_dependency( | 669 | 8.30k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 8.30k | } | 671 | 8.30k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 8.30k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 8.30k | } | 674 | | | 675 | 8.30k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 8.30k | _rows_input_counter = | 680 | 8.30k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 8.30k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 8.30k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 8.30k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 8.30k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 8.30k | _memory_used_counter = | 686 | 8.30k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 8.30k | _common_profile->add_info_string("IsColocate", | 688 | 8.30k | std::to_string(_parent->is_colocated_operator())); | 689 | 8.30k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 8.30k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 8.30k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 8.30k | return Status::OK(); | 693 | 8.30k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 91.3k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 91.3k | _operator_profile = | 636 | 91.3k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 91.3k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 91.3k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 91.3k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 91.3k | _operator_profile->add_child(_common_profile, true); | 645 | 91.3k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 91.3k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 91.3k | _wait_for_finish_dependency_timer = | 649 | 91.3k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 91.3k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 91.3k | if constexpr (!is_fake_shared) { | 652 | 91.3k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 91.3k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 91.3k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 91.3k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 91.3k | _dependency = _shared_state->create_sink_dependency( | 669 | 91.3k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 91.3k | } | 671 | 91.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 91.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 91.3k | } | 674 | | | 675 | 91.3k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 91.3k | _rows_input_counter = | 680 | 91.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 91.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 91.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 91.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 91.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 91.3k | _memory_used_counter = | 686 | 91.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 91.3k | _common_profile->add_info_string("IsColocate", | 688 | 91.3k | std::to_string(_parent->is_colocated_operator())); | 689 | 91.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 91.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 91.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 91.3k | return Status::OK(); | 693 | 91.3k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 477 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 477 | _operator_profile = | 636 | 477 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 477 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 477 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 477 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 477 | _operator_profile->add_child(_common_profile, true); | 645 | 477 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 477 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 477 | _wait_for_finish_dependency_timer = | 649 | 477 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 477 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 477 | if constexpr (!is_fake_shared) { | 652 | 477 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 477 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 476 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 476 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 476 | ? 0 | 660 | 476 | : info.task_idx] | 661 | 476 | .get(); | 662 | 476 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 476 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 1 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 1 | _dependency = _shared_state->create_sink_dependency( | 669 | 1 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 1 | } | 671 | 477 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 477 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 477 | } | 674 | | | 675 | 477 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 477 | _rows_input_counter = | 680 | 477 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 477 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 477 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 477 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 477 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 477 | _memory_used_counter = | 686 | 477 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 477 | _common_profile->add_info_string("IsColocate", | 688 | 477 | std::to_string(_parent->is_colocated_operator())); | 689 | 477 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 477 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 477 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 477 | return Status::OK(); | 693 | 477 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 66 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 66 | _operator_profile = | 636 | 66 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 66 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 66 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 66 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 66 | _operator_profile->add_child(_common_profile, true); | 645 | 66 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 66 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 66 | _wait_for_finish_dependency_timer = | 649 | 66 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 66 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 66 | if constexpr (!is_fake_shared) { | 652 | 66 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 66 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 66 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 66 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 66 | _dependency = _shared_state->create_sink_dependency( | 669 | 66 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 66 | } | 671 | 66 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 66 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 66 | } | 674 | | | 675 | 66 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 66 | _rows_input_counter = | 680 | 66 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 66 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 66 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 66 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 66 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 66 | _memory_used_counter = | 686 | 66 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 66 | _common_profile->add_info_string("IsColocate", | 688 | 66 | std::to_string(_parent->is_colocated_operator())); | 689 | 66 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 66 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 66 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 66 | return Status::OK(); | 693 | 66 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 554k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 554k | _operator_profile = | 636 | 554k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 554k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 554k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 554k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 554k | _operator_profile->add_child(_common_profile, true); | 645 | 554k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 554k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 554k | _wait_for_finish_dependency_timer = | 649 | 554k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 554k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | | if constexpr (!is_fake_shared) { | 652 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | | ? 0 | 660 | | : info.task_idx] | 661 | | .get(); | 662 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | | _dependency = _shared_state->create_sink_dependency( | 669 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | | } | 671 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | | } | 674 | | | 675 | 554k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 554k | _rows_input_counter = | 680 | 554k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 554k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 554k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 554k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 554k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 554k | _memory_used_counter = | 686 | 554k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 554k | _common_profile->add_info_string("IsColocate", | 688 | 554k | std::to_string(_parent->is_colocated_operator())); | 689 | 554k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 554k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 554k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 554k | return Status::OK(); | 693 | 554k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 5.61k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 5.61k | _operator_profile = | 636 | 5.61k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 5.61k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 5.61k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 5.61k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 5.61k | _operator_profile->add_child(_common_profile, true); | 645 | 5.61k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 5.61k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 5.61k | _wait_for_finish_dependency_timer = | 649 | 5.61k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 5.61k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 5.61k | if constexpr (!is_fake_shared) { | 652 | 5.61k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 5.61k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 5.61k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 5.61k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 5.61k | _dependency = _shared_state->create_sink_dependency( | 669 | 5.61k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 5.61k | } | 671 | 5.61k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 5.61k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 5.61k | } | 674 | | | 675 | 5.61k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 5.61k | _rows_input_counter = | 680 | 5.61k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 5.61k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 5.61k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 5.61k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 5.61k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 5.61k | _memory_used_counter = | 686 | 5.61k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 5.61k | _common_profile->add_info_string("IsColocate", | 688 | 5.61k | std::to_string(_parent->is_colocated_operator())); | 689 | 5.61k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 5.61k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 5.61k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 5.61k | return Status::OK(); | 693 | 5.61k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 748 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 748 | _operator_profile = | 636 | 748 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 748 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 748 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 748 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 748 | _operator_profile->add_child(_common_profile, true); | 645 | 748 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 748 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 748 | _wait_for_finish_dependency_timer = | 649 | 748 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 748 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 748 | if constexpr (!is_fake_shared) { | 652 | 748 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 748 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 748 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 748 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 748 | _dependency = _shared_state->create_sink_dependency( | 669 | 748 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 748 | } | 671 | 748 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 748 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 748 | } | 674 | | | 675 | 748 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 748 | _rows_input_counter = | 680 | 748 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 748 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 748 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 748 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 748 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 748 | _memory_used_counter = | 686 | 748 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 748 | _common_profile->add_info_string("IsColocate", | 688 | 748 | std::to_string(_parent->is_colocated_operator())); | 689 | 748 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 748 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 748 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 748 | return Status::OK(); | 693 | 748 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 1.31k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 1.31k | _operator_profile = | 636 | 1.31k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 1.31k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 1.31k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 1.31k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 1.31k | _operator_profile->add_child(_common_profile, true); | 645 | 1.31k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 1.31k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 1.31k | _wait_for_finish_dependency_timer = | 649 | 1.31k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 1.31k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 1.31k | if constexpr (!is_fake_shared) { | 652 | 1.31k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 1.31k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 1.31k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 1.31k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 1.31k | _dependency = _shared_state->create_sink_dependency( | 669 | 1.31k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 1.31k | } | 671 | 1.31k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 1.31k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 1.31k | } | 674 | | | 675 | 1.31k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 1.31k | _rows_input_counter = | 680 | 1.31k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 1.31k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 1.31k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 1.31k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 1.31k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 1.31k | _memory_used_counter = | 686 | 1.31k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 1.31k | _common_profile->add_info_string("IsColocate", | 688 | 1.31k | std::to_string(_parent->is_colocated_operator())); | 689 | 1.31k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 1.31k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 1.31k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 1.31k | return Status::OK(); | 693 | 1.31k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 11.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 11.9k | _operator_profile = | 636 | 11.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 11.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 11.9k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 11.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 11.9k | _operator_profile->add_child(_common_profile, true); | 645 | 11.9k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 11.9k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 11.9k | _wait_for_finish_dependency_timer = | 649 | 11.9k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 11.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 11.9k | if constexpr (!is_fake_shared) { | 652 | 11.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 11.9k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 11.9k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 11.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 11.9k | _dependency = _shared_state->create_sink_dependency( | 669 | 11.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 11.9k | } | 671 | 11.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 11.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 11.9k | } | 674 | | | 675 | 11.9k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 11.9k | _rows_input_counter = | 680 | 11.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 11.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 11.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 11.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 11.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 11.9k | _memory_used_counter = | 686 | 11.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 11.9k | _common_profile->add_info_string("IsColocate", | 688 | 11.9k | std::to_string(_parent->is_colocated_operator())); | 689 | 11.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 11.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 11.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 11.9k | return Status::OK(); | 693 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 229k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 229k | _operator_profile = | 636 | 229k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 229k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 229k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 229k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 229k | _operator_profile->add_child(_common_profile, true); | 645 | 229k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 229k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 229k | _wait_for_finish_dependency_timer = | 649 | 229k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 229k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 229k | if constexpr (!is_fake_shared) { | 652 | 229k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 229k | info.shared_state_map.end()) { | 654 | 229k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | 229k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | 229k | } | 657 | 229k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 229k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 229k | ? 0 | 660 | 229k | : info.task_idx] | 661 | 229k | .get(); | 662 | 229k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 229k | } else { | 664 | 252 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | 252 | DCHECK(false); | 666 | 252 | } | 667 | 252 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 252 | _dependency = _shared_state->create_sink_dependency( | 669 | 252 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 252 | } | 671 | 229k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 229k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 229k | } | 674 | | | 675 | 229k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 229k | _rows_input_counter = | 680 | 229k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 229k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 229k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 229k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 229k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 229k | _memory_used_counter = | 686 | 229k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 229k | _common_profile->add_info_string("IsColocate", | 688 | 229k | std::to_string(_parent->is_colocated_operator())); | 689 | 229k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 229k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 229k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 229k | return Status::OK(); | 693 | 229k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 455k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 455k | _operator_profile = | 636 | 455k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 455k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 455k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 455k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 455k | _operator_profile->add_child(_common_profile, true); | 645 | 455k | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 455k | _operator_profile->set_metadata(_parent->node_id()); | 648 | 455k | _wait_for_finish_dependency_timer = | 649 | 455k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 455k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 455k | if constexpr (!is_fake_shared) { | 652 | 455k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 455k | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 455k | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 455k | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 455k | _dependency = _shared_state->create_sink_dependency( | 669 | 455k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 455k | } | 671 | 455k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 455k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 455k | } | 674 | | | 675 | 455k | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 455k | _rows_input_counter = | 680 | 455k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 455k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 455k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 455k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 455k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 455k | _memory_used_counter = | 686 | 455k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 455k | _common_profile->add_info_string("IsColocate", | 688 | 455k | std::to_string(_parent->is_colocated_operator())); | 689 | 455k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 455k | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 455k | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 455k | return Status::OK(); | 693 | 455k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 17 | _operator_profile = | 636 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 17 | _operator_profile->add_child(_common_profile, true); | 645 | 17 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 17 | _wait_for_finish_dependency_timer = | 649 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 17 | if constexpr (!is_fake_shared) { | 652 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 17 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 17 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 17 | _dependency = _shared_state->create_sink_dependency( | 669 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 17 | } | 671 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 17 | } | 674 | | | 675 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 17 | _rows_input_counter = | 680 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 17 | _memory_used_counter = | 686 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 17 | _common_profile->add_info_string("IsColocate", | 688 | 17 | std::to_string(_parent->is_colocated_operator())); | 689 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 17 | return Status::OK(); | 693 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 633 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 634 | | // create profile | 635 | 302 | _operator_profile = | 636 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 637 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 638 | 302 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 639 | | | 640 | | // indentation is true | 641 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 642 | | // So we should set the indentation to true. | 643 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 644 | 302 | _operator_profile->add_child(_common_profile, true); | 645 | 302 | _operator_profile->add_child(_custom_profile, true); | 646 | | | 647 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 648 | 302 | _wait_for_finish_dependency_timer = | 649 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 650 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 651 | 302 | if constexpr (!is_fake_shared) { | 652 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 653 | 302 | info.shared_state_map.end()) { | 654 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 655 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 656 | | } | 657 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 658 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 659 | 0 | ? 0 | 660 | 0 | : info.task_idx] | 661 | 0 | .get(); | 662 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 663 | 302 | } else { | 664 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 665 | | DCHECK(false); | 666 | | } | 667 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 668 | 302 | _dependency = _shared_state->create_sink_dependency( | 669 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 670 | 302 | } | 671 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 672 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 673 | 302 | } | 674 | | | 675 | 302 | if (must_set_shared_state() && _shared_state == nullptr) { | 676 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 677 | 0 | } | 678 | | | 679 | 302 | _rows_input_counter = | 680 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 681 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 682 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 683 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 684 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 685 | 302 | _memory_used_counter = | 686 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 687 | 302 | _common_profile->add_info_string("IsColocate", | 688 | 302 | std::to_string(_parent->is_colocated_operator())); | 689 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 690 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 691 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 692 | 302 | return Status::OK(); | 693 | 302 | } |
|
694 | | |
695 | | template <typename SharedState> |
696 | 1.69M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
697 | 1.69M | if (_closed) { |
698 | 2 | return Status::OK(); |
699 | 2 | } |
700 | 1.69M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
701 | 1.13M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
702 | 1.13M | } |
703 | 1.69M | _closed = true; |
704 | 1.69M | return Status::OK(); |
705 | 1.69M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 146k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 146k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 146k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 146k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 146k | } | 703 | 146k | _closed = true; | 704 | 146k | return Status::OK(); | 705 | 146k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 1 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 1 | } | 703 | 1 | _closed = true; | 704 | 1 | return Status::OK(); | 705 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 173k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 173k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 173k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 173k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 173k | } | 703 | 173k | _closed = true; | 704 | 173k | return Status::OK(); | 705 | 173k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 35 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 35 | if (_closed) { | 698 | 2 | return Status::OK(); | 699 | 2 | } | 700 | 33 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 33 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 33 | } | 703 | 33 | _closed = true; | 704 | 33 | return Status::OK(); | 705 | 35 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 5.27k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 5.27k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 5.27k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 5.27k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 5.27k | } | 703 | 5.27k | _closed = true; | 704 | 5.27k | return Status::OK(); | 705 | 5.27k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 8.29k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 8.29k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 8.29k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 8.29k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 8.29k | } | 703 | 8.29k | _closed = true; | 704 | 8.29k | return Status::OK(); | 705 | 8.29k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 91.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 91.1k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 91.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 91.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 91.1k | } | 703 | 91.1k | _closed = true; | 704 | 91.1k | return Status::OK(); | 705 | 91.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 475 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 475 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 475 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 475 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 475 | } | 703 | 475 | _closed = true; | 704 | 475 | return Status::OK(); | 705 | 475 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 55 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 55 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 55 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 55 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 55 | } | 703 | 55 | _closed = true; | 704 | 55 | return Status::OK(); | 705 | 55 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 557k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 557k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | | } | 703 | 557k | _closed = true; | 704 | 557k | return Status::OK(); | 705 | 557k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 5.61k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 5.61k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 5.61k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 5.61k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 5.61k | } | 703 | 5.61k | _closed = true; | 704 | 5.61k | return Status::OK(); | 705 | 5.61k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 644 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 644 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 644 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 644 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 644 | } | 703 | 644 | _closed = true; | 704 | 644 | return Status::OK(); | 705 | 644 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 1.31k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 1.31k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 1.31k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 1.31k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 1.31k | } | 703 | 1.31k | _closed = true; | 704 | 1.31k | return Status::OK(); | 705 | 1.31k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 11.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 11.9k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 11.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 11.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 11.9k | } | 703 | 11.9k | _closed = true; | 704 | 11.9k | return Status::OK(); | 705 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 229k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 229k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 229k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 229k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 229k | } | 703 | 229k | _closed = true; | 704 | 229k | return Status::OK(); | 705 | 229k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 459k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 459k | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 459k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 459k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 459k | } | 703 | 459k | _closed = true; | 704 | 459k | return Status::OK(); | 705 | 459k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 14 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 14 | } | 703 | 14 | _closed = true; | 704 | 14 | return Status::OK(); | 705 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 696 | 302 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 697 | 302 | if (_closed) { | 698 | 0 | return Status::OK(); | 699 | 0 | } | 700 | 302 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 701 | 302 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 702 | 302 | } | 703 | 302 | _closed = true; | 704 | 302 | return Status::OK(); | 705 | 302 | } |
|
706 | | |
707 | | template <typename LocalStateType> |
708 | 2.54k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
709 | 2.54k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
710 | 2.53k | return pull(state, block, eos); |
711 | 2.54k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 708 | 32 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 709 | 32 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 710 | 32 | return pull(state, block, eos); | 711 | 32 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 708 | 2.50k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 709 | 2.50k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 710 | 2.50k | return pull(state, block, eos); | 711 | 2.50k | } |
|
712 | | |
713 | | template <typename LocalStateType> |
714 | 834k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
715 | 834k | auto& local_state = get_local_state(state); |
716 | 834k | if (need_more_input_data(state)) { |
717 | 783k | local_state._child_block->clear_column_data( |
718 | 783k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
719 | 783k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
720 | 783k | state, local_state._child_block.get(), &local_state._child_eos)); |
721 | 783k | *eos = local_state._child_eos; |
722 | 783k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
723 | 90.7k | return Status::OK(); |
724 | 90.7k | } |
725 | 692k | { |
726 | 692k | SCOPED_TIMER(local_state.exec_time_counter()); |
727 | 692k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
728 | 692k | } |
729 | 692k | } |
730 | | |
731 | 743k | if (!need_more_input_data(state)) { |
732 | 704k | SCOPED_TIMER(local_state.exec_time_counter()); |
733 | 704k | bool new_eos = false; |
734 | 704k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
735 | 704k | if (new_eos) { |
736 | 631k | *eos = true; |
737 | 631k | } else if (!need_more_input_data(state)) { |
738 | 23.4k | *eos = false; |
739 | 23.4k | } |
740 | 704k | } |
741 | 743k | return Status::OK(); |
742 | 743k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 155k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 155k | auto& local_state = get_local_state(state); | 716 | 155k | if (need_more_input_data(state)) { | 717 | 117k | local_state._child_block->clear_column_data( | 718 | 117k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 117k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 117k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 117k | *eos = local_state._child_eos; | 722 | 117k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 32.2k | return Status::OK(); | 724 | 32.2k | } | 725 | 84.9k | { | 726 | 84.9k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 84.9k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 84.9k | } | 729 | 84.9k | } | 730 | | | 731 | 123k | if (!need_more_input_data(state)) { | 732 | 123k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 123k | bool new_eos = false; | 734 | 123k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 123k | if (new_eos) { | 736 | 74.2k | *eos = true; | 737 | 74.2k | } else if (!need_more_input_data(state)) { | 738 | 9.78k | *eos = false; | 739 | 9.78k | } | 740 | 123k | } | 741 | 123k | return Status::OK(); | 742 | 123k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 2.89k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 2.89k | auto& local_state = get_local_state(state); | 716 | 2.89k | if (need_more_input_data(state)) { | 717 | 1.58k | local_state._child_block->clear_column_data( | 718 | 1.58k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 1.58k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 1.58k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 1.58k | *eos = local_state._child_eos; | 722 | 1.58k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 233 | return Status::OK(); | 724 | 233 | } | 725 | 1.34k | { | 726 | 1.34k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 1.34k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 1.34k | } | 729 | 1.34k | } | 730 | | | 731 | 2.66k | if (!need_more_input_data(state)) { | 732 | 2.66k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 2.66k | bool new_eos = false; | 734 | 2.66k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 2.66k | if (new_eos) { | 736 | 1.06k | *eos = true; | 737 | 1.60k | } else if (!need_more_input_data(state)) { | 738 | 1.31k | *eos = false; | 739 | 1.31k | } | 740 | 2.66k | } | 741 | 2.66k | return Status::OK(); | 742 | 2.66k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 1.61k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 1.61k | auto& local_state = get_local_state(state); | 716 | 1.61k | if (need_more_input_data(state)) { | 717 | 1.61k | local_state._child_block->clear_column_data( | 718 | 1.61k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 1.61k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 1.61k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 1.61k | *eos = local_state._child_eos; | 722 | 1.61k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 642 | return Status::OK(); | 724 | 642 | } | 725 | 970 | { | 726 | 970 | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 970 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 970 | } | 729 | 970 | } | 730 | | | 731 | 970 | if (!need_more_input_data(state)) { | 732 | 970 | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 970 | bool new_eos = false; | 734 | 970 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 970 | if (new_eos) { | 736 | 676 | *eos = true; | 737 | 676 | } else if (!need_more_input_data(state)) { | 738 | 0 | *eos = false; | 739 | 0 | } | 740 | 970 | } | 741 | 970 | return Status::OK(); | 742 | 970 | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 16.8k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 16.8k | auto& local_state = get_local_state(state); | 716 | 16.9k | if (need_more_input_data(state)) { | 717 | 16.9k | local_state._child_block->clear_column_data( | 718 | 16.9k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 16.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 16.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 16.9k | *eos = local_state._child_eos; | 722 | 16.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 6.99k | return Status::OK(); | 724 | 6.99k | } | 725 | 9.90k | { | 726 | 9.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 9.90k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 9.90k | } | 729 | 9.90k | } | 730 | | | 731 | 9.89k | if (!need_more_input_data(state)) { | 732 | 5.01k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 5.01k | bool new_eos = false; | 734 | 5.01k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 5.01k | if (new_eos) { | 736 | 4.92k | *eos = true; | 737 | 4.92k | } else if (!need_more_input_data(state)) { | 738 | 2 | *eos = false; | 739 | 2 | } | 740 | 5.01k | } | 741 | 9.89k | return Status::OK(); | 742 | 9.89k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 625k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 625k | auto& local_state = get_local_state(state); | 716 | 626k | if (need_more_input_data(state)) { | 717 | 626k | local_state._child_block->clear_column_data( | 718 | 626k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 626k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 626k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 626k | *eos = local_state._child_eos; | 722 | 626k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 48.1k | return Status::OK(); | 724 | 48.1k | } | 725 | 578k | { | 726 | 578k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 578k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 578k | } | 729 | 578k | } | 730 | | | 731 | 577k | if (!need_more_input_data(state)) { | 732 | 544k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 544k | bool new_eos = false; | 734 | 544k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 544k | if (new_eos) { | 736 | 543k | *eos = true; | 737 | 543k | } else if (!need_more_input_data(state)) { | 738 | 0 | *eos = false; | 739 | 0 | } | 740 | 544k | } | 741 | 577k | return Status::OK(); | 742 | 577k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 26.1k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 26.1k | auto& local_state = get_local_state(state); | 716 | 26.1k | if (need_more_input_data(state)) { | 717 | 14.1k | local_state._child_block->clear_column_data( | 718 | 14.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 14.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 14.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 14.1k | *eos = local_state._child_eos; | 722 | 14.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 1.84k | return Status::OK(); | 724 | 1.84k | } | 725 | 12.3k | { | 726 | 12.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 12.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 12.3k | } | 729 | 12.3k | } | 730 | | | 731 | 24.2k | if (!need_more_input_data(state)) { | 732 | 23.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 23.4k | bool new_eos = false; | 734 | 23.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 23.4k | if (new_eos) { | 736 | 5.27k | *eos = true; | 737 | 18.1k | } else if (!need_more_input_data(state)) { | 738 | 11.9k | *eos = false; | 739 | 11.9k | } | 740 | 23.4k | } | 741 | 24.2k | return Status::OK(); | 742 | 24.2k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 714 | 5.47k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 715 | 5.47k | auto& local_state = get_local_state(state); | 716 | 5.47k | if (need_more_input_data(state)) { | 717 | 5.11k | local_state._child_block->clear_column_data( | 718 | 5.11k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 719 | 5.11k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 720 | 5.11k | state, local_state._child_block.get(), &local_state._child_eos)); | 721 | 5.11k | *eos = local_state._child_eos; | 722 | 5.11k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 723 | 644 | return Status::OK(); | 724 | 644 | } | 725 | 4.46k | { | 726 | 4.46k | SCOPED_TIMER(local_state.exec_time_counter()); | 727 | 4.46k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 728 | 4.46k | } | 729 | 4.46k | } | 730 | | | 731 | 4.83k | if (!need_more_input_data(state)) { | 732 | 4.83k | SCOPED_TIMER(local_state.exec_time_counter()); | 733 | 4.83k | bool new_eos = false; | 734 | 4.83k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 735 | 4.83k | if (new_eos) { | 736 | 2.75k | *eos = true; | 737 | 2.75k | } else if (!need_more_input_data(state)) { | 738 | 366 | *eos = false; | 739 | 366 | } | 740 | 4.83k | } | 741 | 4.82k | return Status::OK(); | 742 | 4.82k | } |
|
743 | | |
744 | | template <typename Writer, typename Parent> |
745 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
746 | 52.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
747 | 52.7k | RETURN_IF_ERROR(Base::init(state, info)); |
748 | 52.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
749 | 52.7k | "AsyncWriterDependency", true); |
750 | 52.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
751 | 52.7k | _finish_dependency)); |
752 | | |
753 | 52.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
754 | 52.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
755 | 52.7k | return Status::OK(); |
756 | 52.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 353 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 353 | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 353 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 353 | "AsyncWriterDependency", true); | 750 | 353 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 353 | _finish_dependency)); | 752 | | | 753 | 353 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 353 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 353 | return Status::OK(); | 756 | 353 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 52.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 52.3k | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 52.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 52.3k | "AsyncWriterDependency", true); | 750 | 52.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 52.3k | _finish_dependency)); | 752 | | | 753 | 52.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 52.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 52.3k | return Status::OK(); | 756 | 52.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 746 | 4 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 747 | 4 | RETURN_IF_ERROR(Base::init(state, info)); | 748 | 4 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 749 | 4 | "AsyncWriterDependency", true); | 750 | 4 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 751 | 4 | _finish_dependency)); | 752 | | | 753 | 4 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 754 | 4 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 755 | 4 | return Status::OK(); | 756 | 4 | } |
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 |
757 | | |
758 | | template <typename Writer, typename Parent> |
759 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
760 | 53.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
761 | 53.1k | RETURN_IF_ERROR(Base::open(state)); |
762 | 53.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
763 | 381k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
764 | 328k | RETURN_IF_ERROR( |
765 | 328k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
766 | 328k | } |
767 | 53.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
768 | 53.1k | return Status::OK(); |
769 | 53.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 358 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 358 | RETURN_IF_ERROR(Base::open(state)); | 762 | 358 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 1.85k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 1.49k | RETURN_IF_ERROR( | 765 | 1.49k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 1.49k | } | 767 | 358 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 358 | return Status::OK(); | 769 | 358 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 52.7k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 52.7k | RETURN_IF_ERROR(Base::open(state)); | 762 | 52.7k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 379k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 327k | RETURN_IF_ERROR( | 765 | 327k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 327k | } | 767 | 52.7k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 52.7k | return Status::OK(); | 769 | 52.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 760 | 4 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 761 | 4 | RETURN_IF_ERROR(Base::open(state)); | 762 | 4 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 763 | 72 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 764 | 68 | RETURN_IF_ERROR( | 765 | 68 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 766 | 68 | } | 767 | 4 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 768 | 4 | return Status::OK(); | 769 | 4 | } |
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 |
770 | | |
771 | | template <typename Writer, typename Parent> |
772 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
773 | 66.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
774 | 66.6k | return _writer->sink(block, eos); |
775 | 66.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 1.64k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 1.64k | return _writer->sink(block, eos); | 775 | 1.64k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 64.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 64.9k | return _writer->sink(block, eos); | 775 | 64.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 773 | 4 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 774 | 4 | return _writer->sink(block, eos); | 775 | 4 | } |
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 |
776 | | |
777 | | template <typename Writer, typename Parent> |
778 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
779 | 53.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
780 | 53.2k | if (_closed) { |
781 | 0 | return Status::OK(); |
782 | 0 | } |
783 | 53.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
784 | 53.2k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
785 | | // if the init failed, the _writer may be nullptr. so here need check |
786 | 53.2k | if (_writer) { |
787 | 53.2k | Status st = _writer->get_writer_status(); |
788 | 53.2k | if (exec_status.ok()) { |
789 | 53.1k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
790 | 53.1k | : Status::Cancelled("force close")); |
791 | 53.1k | } else { |
792 | 85 | _writer->force_close(exec_status); |
793 | 85 | } |
794 | | // If there is an error in process_block thread, then we should get the writer |
795 | | // status before call force_close. For example, the thread may failed in commit |
796 | | // transaction. |
797 | 53.2k | RETURN_IF_ERROR(st); |
798 | 53.2k | } |
799 | 53.1k | return Base::close(state, exec_status); |
800 | 53.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 346 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 346 | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 346 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 346 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 346 | if (_writer) { | 787 | 346 | Status st = _writer->get_writer_status(); | 788 | 346 | if (exec_status.ok()) { | 789 | 346 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 346 | : Status::Cancelled("force close")); | 791 | 346 | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 346 | RETURN_IF_ERROR(st); | 798 | 346 | } | 799 | 346 | return Base::close(state, exec_status); | 800 | 346 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 52.8k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 52.8k | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 52.8k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 52.8k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 52.8k | if (_writer) { | 787 | 52.8k | Status st = _writer->get_writer_status(); | 788 | 52.8k | if (exec_status.ok()) { | 789 | 52.7k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 52.7k | : Status::Cancelled("force close")); | 791 | 52.7k | } else { | 792 | 85 | _writer->force_close(exec_status); | 793 | 85 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 52.8k | RETURN_IF_ERROR(st); | 798 | 52.8k | } | 799 | 52.8k | return Base::close(state, exec_status); | 800 | 52.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 779 | 4 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 780 | 4 | if (_closed) { | 781 | 0 | return Status::OK(); | 782 | 0 | } | 783 | 4 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 784 | 4 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 785 | | // if the init failed, the _writer may be nullptr. so here need check | 786 | 4 | if (_writer) { | 787 | 4 | Status st = _writer->get_writer_status(); | 788 | 4 | if (exec_status.ok()) { | 789 | 4 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 790 | 4 | : Status::Cancelled("force close")); | 791 | 4 | } else { | 792 | 0 | _writer->force_close(exec_status); | 793 | 0 | } | 794 | | // If there is an error in process_block thread, then we should get the writer | 795 | | // status before call force_close. For example, the thread may failed in commit | 796 | | // transaction. | 797 | 4 | RETURN_IF_ERROR(st); | 798 | 4 | } | 799 | 4 | return Base::close(state, exec_status); | 800 | 4 | } |
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 |
801 | | |
802 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
803 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
804 | | DECLARE_OPERATOR(ResultSinkLocalState) |
805 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
806 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
807 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
808 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
809 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
810 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
811 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
812 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
813 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
814 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
815 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
816 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
817 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
818 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
819 | | DECLARE_OPERATOR(SortSinkLocalState) |
820 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
821 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
822 | | DECLARE_OPERATOR(AggSinkLocalState) |
823 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
824 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
825 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
826 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
827 | | DECLARE_OPERATOR(UnionSinkLocalState) |
828 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
829 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
830 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
831 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
832 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
833 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
834 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
835 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
836 | | DECLARE_OPERATOR(CacheSinkLocalState) |
837 | | DECLARE_OPERATOR(DictSinkLocalState) |
838 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
839 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
840 | | |
841 | | #undef DECLARE_OPERATOR |
842 | | |
843 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
844 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
845 | | DECLARE_OPERATOR(OlapScanLocalState) |
846 | | DECLARE_OPERATOR(GroupCommitLocalState) |
847 | | DECLARE_OPERATOR(JDBCScanLocalState) |
848 | | DECLARE_OPERATOR(FileScanLocalState) |
849 | | DECLARE_OPERATOR(AnalyticLocalState) |
850 | | DECLARE_OPERATOR(SortLocalState) |
851 | | DECLARE_OPERATOR(SpillSortLocalState) |
852 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
853 | | DECLARE_OPERATOR(AggLocalState) |
854 | | DECLARE_OPERATOR(BucketedAggLocalState) |
855 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
856 | | DECLARE_OPERATOR(TableFunctionLocalState) |
857 | | DECLARE_OPERATOR(ExchangeLocalState) |
858 | | DECLARE_OPERATOR(RepeatLocalState) |
859 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
860 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
861 | | DECLARE_OPERATOR(EmptySetLocalState) |
862 | | DECLARE_OPERATOR(UnionSourceLocalState) |
863 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
864 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
865 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
866 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
867 | | DECLARE_OPERATOR(DataGenLocalState) |
868 | | DECLARE_OPERATOR(SchemaScanLocalState) |
869 | | DECLARE_OPERATOR(MetaScanLocalState) |
870 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
871 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
872 | | DECLARE_OPERATOR(CacheSourceLocalState) |
873 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
874 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
875 | | |
876 | | #ifdef BE_TEST |
877 | | DECLARE_OPERATOR(MockLocalState) |
878 | | DECLARE_OPERATOR(MockScanLocalState) |
879 | | #endif |
880 | | #undef DECLARE_OPERATOR |
881 | | |
882 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
883 | | template class StreamingOperatorX<SelectLocalState>; |
884 | | |
885 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
886 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
887 | | template class StatefulOperatorX<RepeatLocalState>; |
888 | | template class StatefulOperatorX<MaterializationLocalState>; |
889 | | template class StatefulOperatorX<StreamingAggLocalState>; |
890 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
891 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
892 | | template class StatefulOperatorX<TableFunctionLocalState>; |
893 | | |
894 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
895 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
896 | | template class PipelineXSinkLocalState<SortSharedState>; |
897 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
898 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
899 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
900 | | template class PipelineXSinkLocalState<AggSharedState>; |
901 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
902 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
903 | | template class PipelineXSinkLocalState<FakeSharedState>; |
904 | | template class PipelineXSinkLocalState<UnionSharedState>; |
905 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
906 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
907 | | template class PipelineXSinkLocalState<SetSharedState>; |
908 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
909 | | template class PipelineXSinkLocalState<BasicSharedState>; |
910 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
911 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
912 | | |
913 | | template class PipelineXLocalState<HashJoinSharedState>; |
914 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
915 | | template class PipelineXLocalState<SortSharedState>; |
916 | | template class PipelineXLocalState<SpillSortSharedState>; |
917 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
918 | | template class PipelineXLocalState<AnalyticSharedState>; |
919 | | template class PipelineXLocalState<AggSharedState>; |
920 | | template class PipelineXLocalState<BucketedAggSharedState>; |
921 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
922 | | template class PipelineXLocalState<FakeSharedState>; |
923 | | template class PipelineXLocalState<UnionSharedState>; |
924 | | template class PipelineXLocalState<DataQueueSharedState>; |
925 | | template class PipelineXLocalState<MultiCastSharedState>; |
926 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
927 | | template class PipelineXLocalState<SetSharedState>; |
928 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
929 | | template class PipelineXLocalState<BasicSharedState>; |
930 | | template class PipelineXLocalState<RecCTESharedState>; |
931 | | |
932 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
933 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
934 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
935 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
936 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
937 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
938 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
939 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
940 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
941 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
942 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
943 | | |
944 | | #ifdef BE_TEST |
945 | | template class OperatorX<DummyOperatorLocalState>; |
946 | | template class DataSinkOperatorX<DummySinkLocalState>; |
947 | | #endif |
948 | | |
949 | | } // namespace doris |