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