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.14M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
121 | 2.14M | if (_parent->nereids_id() == -1) { |
122 | 1.14M | return fmt::format("(id={})", _parent->node_id()); |
123 | 1.14M | } else { |
124 | 999k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
125 | 999k | } |
126 | 2.14M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 68.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 68.6k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 68.6k | } else { | 124 | 68.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 68.6k | } | 126 | 68.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 | 267k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 267k | if (_parent->nereids_id() == -1) { | 122 | 12 | return fmt::format("(id={})", _parent->node_id()); | 123 | 267k | } else { | 124 | 267k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 267k | } | 126 | 267k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 37 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 37 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 37 | } else { | 124 | 37 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 37 | } | 126 | 37 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 10.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 10.6k | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 10.6k | } else { | 124 | 10.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 10.6k | } | 126 | 10.6k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 9.10k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 9.10k | if (_parent->nereids_id() == -1) { | 122 | 11 | return fmt::format("(id={})", _parent->node_id()); | 123 | 9.08k | } else { | 124 | 9.08k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 9.08k | } | 126 | 9.10k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 163k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 163k | if (_parent->nereids_id() == -1) { | 122 | 29 | return fmt::format("(id={})", _parent->node_id()); | 123 | 163k | } else { | 124 | 163k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 163k | } | 126 | 163k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 606 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 606 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 606 | } else { | 124 | 606 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 606 | } | 126 | 606 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 240 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 240 | if (_parent->nereids_id() == -1) { | 122 | 0 | return fmt::format("(id={})", _parent->node_id()); | 123 | 240 | } else { | 124 | 240 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 240 | } | 126 | 240 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 793k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 793k | if (_parent->nereids_id() == -1) { | 122 | 375k | return fmt::format("(id={})", _parent->node_id()); | 123 | 418k | } else { | 124 | 418k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 418k | } | 126 | 793k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 56.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 56.7k | if (_parent->nereids_id() == -1) { | 122 | 2 | return fmt::format("(id={})", _parent->node_id()); | 123 | 56.7k | } else { | 124 | 56.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 56.7k | } | 126 | 56.7k | } |
_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.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 11.7k | if (_parent->nereids_id() == -1) { | 122 | 11.7k | return fmt::format("(id={})", _parent->node_id()); | 123 | 11.7k | } else { | 124 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 0 | } | 126 | 11.7k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 397 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 397 | if (_parent->nereids_id() == -1) { | 122 | 102 | return fmt::format("(id={})", _parent->node_id()); | 123 | 295 | } else { | 124 | 295 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 295 | } | 126 | 397 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 4.75k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 4.75k | if (_parent->nereids_id() == -1) { | 122 | 13 | return fmt::format("(id={})", _parent->node_id()); | 123 | 4.74k | } else { | 124 | 4.74k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 125 | 4.74k | } | 126 | 4.75k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 120 | 761k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 121 | 762k | if (_parent->nereids_id() == -1) { | 122 | 762k | 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 | 761k | } |
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.40M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
130 | 1.40M | if (_parent->nereids_id() == -1) { |
131 | 828k | return fmt::format("(id={})", _parent->node_id()); |
132 | 828k | } else { |
133 | 581k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
134 | 581k | } |
135 | 1.40M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 117k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 117k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 117k | } else { | 133 | 117k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 117k | } | 135 | 117k | } |
_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 | 271k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 271k | if (_parent->nereids_id() == -1) { | 131 | 9 | return fmt::format("(id={})", _parent->node_id()); | 132 | 271k | } else { | 133 | 271k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 271k | } | 135 | 271k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 44 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 44 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 44 | } else { | 133 | 44 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 44 | } | 135 | 44 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 10.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 10.6k | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 10.6k | } else { | 133 | 10.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 10.6k | } | 135 | 10.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 9.07k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 9.07k | if (_parent->nereids_id() == -1) { | 131 | 11 | return fmt::format("(id={})", _parent->node_id()); | 132 | 9.06k | } else { | 133 | 9.06k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 9.06k | } | 135 | 9.07k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 164k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 164k | if (_parent->nereids_id() == -1) { | 131 | 29 | return fmt::format("(id={})", _parent->node_id()); | 132 | 164k | } else { | 133 | 164k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 164k | } | 135 | 164k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 624 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 624 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 624 | } else { | 133 | 624 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 624 | } | 135 | 624 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 250 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 250 | if (_parent->nereids_id() == -1) { | 131 | 0 | return fmt::format("(id={})", _parent->node_id()); | 132 | 250 | } else { | 133 | 250 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 250 | } | 135 | 250 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 92 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 92 | if (_parent->nereids_id() == -1) { | 131 | 92 | return fmt::format("(id={})", _parent->node_id()); | 132 | 92 | } else { | 133 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 0 | } | 135 | 92 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 7.75k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 7.75k | if (_parent->nereids_id() == -1) { | 131 | 3 | return fmt::format("(id={})", _parent->node_id()); | 132 | 7.75k | } else { | 133 | 7.75k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 7.75k | } | 135 | 7.75k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 398 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 398 | if (_parent->nereids_id() == -1) { | 131 | 102 | return fmt::format("(id={})", _parent->node_id()); | 132 | 296 | } else { | 133 | 296 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 296 | } | 135 | 398 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 12.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 12.4k | if (_parent->nereids_id() == -1) { | 131 | 12.3k | return fmt::format("(id={})", _parent->node_id()); | 132 | 12.3k | } else { | 133 | 39 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 39 | } | 135 | 12.4k | } |
_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 | 18.4E | } else { | 133 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 134 | 18.4E | } | 135 | 319k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 129 | 495k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 130 | 495k | if (_parent->nereids_id() == -1) { | 131 | 495k | 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 | 495k | } |
_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 | 30.1k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
139 | 30.1k | if (_terminated) { |
140 | 2 | return Status::OK(); |
141 | 2 | } |
142 | 30.1k | _terminated = true; |
143 | 30.1k | return Status::OK(); |
144 | 30.1k | } _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 | 1.63k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 1.63k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 1.63k | _terminated = true; | 143 | 1.63k | return Status::OK(); | 144 | 1.63k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_19AnalyticSharedStateEE9terminateEPNS_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_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 2.53k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 2.53k | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 2.53k | _terminated = true; | 143 | 2.53k | return Status::OK(); | 144 | 2.53k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 5 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 5 | _terminated = true; | 143 | 5 | return Status::OK(); | 144 | 5 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 799 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 799 | if (_terminated) { | 140 | 2 | return Status::OK(); | 141 | 2 | } | 142 | 797 | _terminated = true; | 143 | 797 | return Status::OK(); | 144 | 799 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 41 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 41 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 41 | _terminated = true; | 143 | 41 | return Status::OK(); | 144 | 41 | } |
_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 | 707 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 707 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 707 | _terminated = true; | 143 | 707 | return Status::OK(); | 144 | 707 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 3 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 3 | _terminated = true; | 143 | 3 | return Status::OK(); | 144 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 255 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 255 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 255 | _terminated = true; | 143 | 255 | return Status::OK(); | 144 | 255 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 138 | 145 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 139 | 145 | if (_terminated) { | 140 | 0 | return Status::OK(); | 141 | 0 | } | 142 | 145 | _terminated = true; | 143 | 145 | return Status::OK(); | 144 | 145 | } |
|
145 | | |
146 | 442k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
147 | 442k | return _child && _child->is_serial_operator() && !is_source() |
148 | 442k | ? DataDistribution(TLocalPartitionType::PASSTHROUGH) |
149 | 442k | : DataDistribution(TLocalPartitionType::NOOP); |
150 | 442k | } |
151 | | |
152 | 41.5k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
153 | 41.5k | if (!_child) { |
154 | 36.1k | return false; |
155 | 36.1k | } |
156 | 5.41k | if (_child->is_serial_operator()) { |
157 | 229 | return true; |
158 | 229 | } |
159 | 5.18k | const auto child_distribution = _child->required_data_distribution(state); |
160 | 5.18k | return child_distribution.need_local_exchange() && |
161 | 5.18k | !is_shuffled_exchange(child_distribution.distribution_type); |
162 | 5.41k | } |
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 | 18.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
170 | 18.4k | fmt::memory_buffer debug_string_buffer; |
171 | 18.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
172 | 18.4k | return fmt::to_string(debug_string_buffer); |
173 | 18.4k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 8 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 8 | fmt::memory_buffer debug_string_buffer; | 171 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 8 | return fmt::to_string(debug_string_buffer); | 173 | 8 | } |
_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 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 4 | fmt::memory_buffer debug_string_buffer; | 171 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 4 | return fmt::to_string(debug_string_buffer); | 173 | 4 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 4 | fmt::memory_buffer debug_string_buffer; | 171 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 4 | return fmt::to_string(debug_string_buffer); | 173 | 4 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 4 | fmt::memory_buffer debug_string_buffer; | 171 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 4 | return fmt::to_string(debug_string_buffer); | 173 | 4 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 169 | 18.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 18.4k | fmt::memory_buffer debug_string_buffer; | 171 | 18.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 18.4k | return fmt::to_string(debug_string_buffer); | 173 | 18.4k | } |
_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 | 8 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 170 | 8 | fmt::memory_buffer debug_string_buffer; | 171 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 172 | 8 | return fmt::to_string(debug_string_buffer); | 173 | 8 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
174 | | |
175 | | template <typename SharedStateArg> |
176 | 18.4k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
177 | 18.4k | fmt::memory_buffer debug_string_buffer; |
178 | 18.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
179 | 18.4k | return fmt::to_string(debug_string_buffer); |
180 | 18.4k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 4 | fmt::memory_buffer debug_string_buffer; | 178 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 4 | return fmt::to_string(debug_string_buffer); | 180 | 4 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 4 | fmt::memory_buffer debug_string_buffer; | 178 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 4 | return fmt::to_string(debug_string_buffer); | 180 | 4 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 8 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 8 | fmt::memory_buffer debug_string_buffer; | 178 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 8 | return fmt::to_string(debug_string_buffer); | 180 | 8 | } |
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 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 4 | fmt::memory_buffer debug_string_buffer; | 178 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 4 | return fmt::to_string(debug_string_buffer); | 180 | 4 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 176 | 18.4k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 177 | 18.4k | fmt::memory_buffer debug_string_buffer; | 178 | 18.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 179 | 18.4k | return fmt::to_string(debug_string_buffer); | 180 | 18.4k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
181 | | |
182 | 18.5k | std::string OperatorXBase::debug_string(int indentation_level) const { |
183 | 18.5k | fmt::memory_buffer debug_string_buffer; |
184 | 18.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
185 | 18.5k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
186 | 18.5k | _is_serial_operator); |
187 | 18.5k | return fmt::to_string(debug_string_buffer); |
188 | 18.5k | } |
189 | | |
190 | 18.4k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
191 | 18.4k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
192 | 18.4k | } |
193 | | |
194 | 854k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
195 | 854k | std::string node_name = print_plan_node_type(tnode.node_type); |
196 | 854k | _nereids_id = tnode.nereids_id; |
197 | 854k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
198 | 4.16k | if (!tnode.__isset.output_tuple_id) { |
199 | 0 | return Status::InternalError("no final output tuple id"); |
200 | 0 | } |
201 | 4.16k | if (tnode.intermediate_output_tuple_id_list.size() != |
202 | 4.16k | 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.16k | } |
210 | 854k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
211 | 854k | _op_name = substr + "_OPERATOR"; |
212 | | |
213 | 854k | if (tnode.__isset.vconjunct) { |
214 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
215 | 854k | } else if (tnode.__isset.conjuncts) { |
216 | 487k | for (const auto& conjunct : tnode.conjuncts) { |
217 | 487k | VExprContextSPtr context; |
218 | 487k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
219 | 487k | _conjuncts.emplace_back(context); |
220 | 487k | } |
221 | 157k | } |
222 | | |
223 | | // create the projections expr |
224 | 854k | if (tnode.__isset.projections) { |
225 | 334k | DCHECK(tnode.__isset.output_tuple_id); |
226 | 334k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
227 | 334k | } |
228 | 854k | if (!tnode.intermediate_projections_list.empty()) { |
229 | 4.16k | DCHECK(tnode.__isset.projections) << "no final projections"; |
230 | 4.16k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
231 | 8.59k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
232 | 8.59k | VExprContextSPtrs projections; |
233 | 8.59k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
234 | 8.59k | _intermediate_projections.push_back(projections); |
235 | 8.59k | } |
236 | 4.16k | } |
237 | 854k | return Status::OK(); |
238 | 854k | } |
239 | | |
240 | 888k | Status OperatorXBase::prepare(RuntimeState* state) { |
241 | 888k | for (auto& conjunct : _conjuncts) { |
242 | 487k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
243 | 487k | } |
244 | 888k | if (state->enable_adjust_conjunct_order_by_cost()) { |
245 | 836k | std::ranges::stable_sort(_conjuncts, [](const auto& a, const auto& b) { |
246 | 648k | return a->execute_cost() < b->execute_cost(); |
247 | 648k | }); |
248 | 836k | }; |
249 | | |
250 | 897k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
251 | 8.59k | RETURN_IF_ERROR( |
252 | 8.59k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
253 | 8.59k | } |
254 | 888k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
255 | | |
256 | 888k | if (has_output_row_desc()) { |
257 | 334k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
258 | 334k | } |
259 | | |
260 | 888k | for (auto& conjunct : _conjuncts) { |
261 | 487k | RETURN_IF_ERROR(conjunct->open(state)); |
262 | 487k | } |
263 | 888k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
264 | 888k | for (auto& projections : _intermediate_projections) { |
265 | 8.59k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
266 | 8.59k | } |
267 | 888k | if (_child && !is_source()) { |
268 | 134k | RETURN_IF_ERROR(_child->prepare(state)); |
269 | 134k | } |
270 | | |
271 | 888k | if (VExpr::contains_blockable_function(_conjuncts) || |
272 | 890k | VExpr::contains_blockable_function(_projections)) { |
273 | 0 | _blockable = true; |
274 | 0 | } |
275 | | |
276 | 888k | return Status::OK(); |
277 | 888k | } |
278 | | |
279 | 7.35k | Status OperatorXBase::terminate(RuntimeState* state) { |
280 | 7.35k | if (_child && !is_source()) { |
281 | 1.19k | RETURN_IF_ERROR(_child->terminate(state)); |
282 | 1.19k | } |
283 | 7.35k | auto result = state->get_local_state_result(operator_id()); |
284 | 7.35k | if (!result) { |
285 | 0 | return result.error(); |
286 | 0 | } |
287 | 7.35k | return result.value()->terminate(state); |
288 | 7.35k | } |
289 | | |
290 | 5.97M | Status OperatorXBase::close(RuntimeState* state) { |
291 | 5.97M | if (_child && !is_source()) { |
292 | 981k | RETURN_IF_ERROR(_child->close(state)); |
293 | 981k | } |
294 | 5.97M | auto result = state->get_local_state_result(operator_id()); |
295 | 5.97M | if (!result) { |
296 | 0 | return result.error(); |
297 | 0 | } |
298 | 5.97M | return result.value()->close(state); |
299 | 5.97M | } |
300 | | |
301 | 301k | void PipelineXLocalStateBase::clear_origin_block() { |
302 | 301k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
303 | 301k | } |
304 | | |
305 | 618k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
306 | 618k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
307 | | |
308 | 618k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
309 | 618k | return Status::OK(); |
310 | 618k | } |
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 | 301k | Block* output_block) const { |
319 | 301k | auto* local_state = state->get_local_state(operator_id()); |
320 | 301k | SCOPED_TIMER(local_state->exec_time_counter()); |
321 | 301k | SCOPED_TIMER(local_state->_projection_timer); |
322 | 301k | const size_t rows = origin_block->rows(); |
323 | 301k | if (rows == 0) { |
324 | 153k | return Status::OK(); |
325 | 153k | } |
326 | 148k | Block input_block = *origin_block; |
327 | | |
328 | 148k | size_t bytes_usage = 0; |
329 | 148k | ColumnsWithTypeAndName new_columns; |
330 | 148k | for (const auto& projections : local_state->_intermediate_projections) { |
331 | 2.08k | if (projections.empty()) { |
332 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
333 | 0 | node_id()); |
334 | 0 | } |
335 | 2.08k | new_columns.resize(projections.size()); |
336 | 15.7k | for (int i = 0; i < projections.size(); i++) { |
337 | 13.6k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
338 | 13.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 | 13.6k | } |
346 | 2.08k | Block tmp_block {new_columns}; |
347 | 2.08k | bytes_usage += tmp_block.allocated_bytes(); |
348 | 2.08k | input_block.swap(tmp_block); |
349 | 2.08k | } |
350 | | |
351 | 148k | 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 | 689k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
358 | 689k | 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 | 689k | } else { |
368 | 689k | if (_keep_origin || !from->is_exclusive()) { |
369 | 689k | to->insert_range_from(*from, 0, rows); |
370 | 689k | bytes_usage += from->allocated_bytes(); |
371 | 689k | } else { |
372 | 30 | to = from->assert_mutable(); |
373 | 30 | } |
374 | 689k | } |
375 | 689k | }; |
376 | | |
377 | 148k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
378 | 148k | output_block, *_output_row_descriptor); |
379 | 148k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
380 | 148k | auto& mutable_columns = mutable_block.mutable_columns(); |
381 | 148k | if (rows != 0) { |
382 | 148k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
383 | 838k | for (int i = 0; i < mutable_columns.size(); ++i) { |
384 | 689k | ColumnPtr column_ptr; |
385 | 689k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
386 | 689k | 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 | 689k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
393 | 689k | bytes_usage += column_ptr->allocated_bytes(); |
394 | 689k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
395 | 689k | } |
396 | 148k | DCHECK(mutable_block.rows() == rows); |
397 | 148k | } |
398 | 148k | local_state->_estimate_memory_usage += bytes_usage; |
399 | | |
400 | 148k | return Status::OK(); |
401 | 148k | } |
402 | | |
403 | 4.71M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
404 | 4.71M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
405 | 4.71M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
406 | 4.71M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
407 | 4.71M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
408 | 4.71M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
409 | 4.71M | if (_debug_point_count++ % 2 == 0) { |
410 | 4.71M | return Status::OK(); |
411 | 4.71M | } |
412 | 4.71M | } |
413 | 4.71M | }); |
414 | | |
415 | 4.71M | Status status; |
416 | 4.71M | auto* local_state = state->get_local_state(operator_id()); |
417 | 4.72M | Defer defer([&]() { |
418 | 4.72M | if (status.ok()) { |
419 | 4.72M | local_state->update_output_block_counters(*block); |
420 | 4.72M | } |
421 | 4.72M | }); |
422 | 4.71M | if (_output_row_descriptor) { |
423 | 301k | local_state->clear_origin_block(); |
424 | 301k | status = get_block(state, &local_state->_origin_block, eos); |
425 | 301k | if (UNLIKELY(!status.ok())) { |
426 | 20 | return status; |
427 | 20 | } |
428 | 301k | status = do_projections(state, &local_state->_origin_block, block); |
429 | 301k | return status; |
430 | 301k | } |
431 | 4.41M | status = get_block(state, block, eos); |
432 | 4.41M | RETURN_IF_ERROR(block->check_type_and_column()); |
433 | 4.41M | return status; |
434 | 4.41M | } |
435 | | |
436 | 3.27M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
437 | 3.27M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
438 | 6.87k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
439 | 6.87k | *eos = true; |
440 | 6.87k | } |
441 | | |
442 | 3.27M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
443 | 3.27M | auto op_name = to_lower(_parent->_op_name); |
444 | 3.27M | auto arg_op_name = dp->param<std::string>("op_name"); |
445 | 3.27M | arg_op_name = to_lower(arg_op_name); |
446 | | |
447 | 3.27M | if (op_name == arg_op_name) { |
448 | 3.27M | *eos = true; |
449 | 3.27M | } |
450 | 3.27M | }); |
451 | | |
452 | 3.27M | if (auto rows = block->rows()) { |
453 | 939k | _num_rows_returned += rows; |
454 | 939k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
455 | 939k | } |
456 | 3.27M | } |
457 | | |
458 | 30.1k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
459 | 30.1k | auto result = state->get_sink_local_state_result(); |
460 | 30.1k | if (!result) { |
461 | 0 | return result.error(); |
462 | 0 | } |
463 | 30.1k | return result.value()->terminate(state); |
464 | 30.1k | } |
465 | | |
466 | 18.4k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
467 | 18.4k | fmt::memory_buffer debug_string_buffer; |
468 | | |
469 | 18.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
470 | 18.4k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
471 | 18.4k | return fmt::to_string(debug_string_buffer); |
472 | 18.4k | } |
473 | | |
474 | 18.4k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
475 | 18.4k | return state->get_sink_local_state()->debug_string(indentation_level); |
476 | 18.4k | } |
477 | | |
478 | 477k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
479 | 477k | std::string op_name = "UNKNOWN_SINK"; |
480 | 477k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
481 | | |
482 | 479k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
483 | 479k | op_name = it->second; |
484 | 479k | } |
485 | 477k | _name = op_name + "_OPERATOR"; |
486 | 477k | return Status::OK(); |
487 | 477k | } |
488 | | |
489 | 323k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
490 | 323k | std::string op_name = print_plan_node_type(tnode.node_type); |
491 | 323k | _nereids_id = tnode.nereids_id; |
492 | 323k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
493 | 323k | _name = substr + "_SINK_OPERATOR"; |
494 | 323k | return Status::OK(); |
495 | 323k | } |
496 | | |
497 | | template <typename LocalStateType> |
498 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
499 | 2.11M | LocalSinkStateInfo& info) { |
500 | 2.11M | auto local_state = LocalStateType::create_unique(this, state); |
501 | 2.11M | RETURN_IF_ERROR(local_state->init(state, info)); |
502 | 2.11M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
503 | 2.11M | return Status::OK(); |
504 | 2.11M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 117k | LocalSinkStateInfo& info) { | 500 | 117k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 117k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 117k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 117k | return Status::OK(); | 504 | 117k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 426k | LocalSinkStateInfo& info) { | 500 | 426k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 426k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 426k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 426k | return Status::OK(); | 504 | 426k | } |
_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.4k | LocalSinkStateInfo& info) { | 500 | 47.4k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 47.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 47.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 47.4k | return Status::OK(); | 504 | 47.4k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 9.63k | LocalSinkStateInfo& info) { | 500 | 9.63k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 9.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 9.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 9.63k | return Status::OK(); | 504 | 9.63k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 5.07k | LocalSinkStateInfo& info) { | 500 | 5.07k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 5.07k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 5.07k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 5.07k | return Status::OK(); | 504 | 5.07k | } |
_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.01k | LocalSinkStateInfo& info) { | 500 | 4.01k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 4.01k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 4.01k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 4.01k | return Status::OK(); | 504 | 4.01k | } |
_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.71k | LocalSinkStateInfo& info) { | 500 | 1.71k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 1.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 1.71k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 1.71k | return Status::OK(); | 504 | 1.71k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 9.12k | LocalSinkStateInfo& info) { | 500 | 9.12k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 9.12k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 9.12k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 9.12k | return Status::OK(); | 504 | 9.12k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 89 | LocalSinkStateInfo& info) { | 500 | 89 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 89 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 89 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 89 | return Status::OK(); | 504 | 89 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 272k | LocalSinkStateInfo& info) { | 500 | 272k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 272k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 272k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 272k | return Status::OK(); | 504 | 272k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 44 | LocalSinkStateInfo& info) { | 500 | 44 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 44 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 44 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 44 | return Status::OK(); | 504 | 44 | } |
_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 | 164k | LocalSinkStateInfo& info) { | 500 | 164k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 164k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 164k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 164k | return Status::OK(); | 504 | 164k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 626 | LocalSinkStateInfo& info) { | 500 | 626 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 626 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 626 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 626 | return Status::OK(); | 504 | 626 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 250 | LocalSinkStateInfo& info) { | 500 | 250 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 250 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 250 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 250 | return Status::OK(); | 504 | 250 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 693k | LocalSinkStateInfo& info) { | 500 | 693k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 693k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 693k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 693k | return Status::OK(); | 504 | 693k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 10.6k | LocalSinkStateInfo& info) { | 500 | 10.6k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 10.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 10.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 10.6k | return Status::OK(); | 504 | 10.6k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 7.76k | LocalSinkStateInfo& info) { | 500 | 7.76k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 7.76k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 7.76k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 7.76k | return Status::OK(); | 504 | 7.76k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 4.13k | LocalSinkStateInfo& info) { | 500 | 4.13k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 4.13k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 4.13k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 4.13k | return Status::OK(); | 504 | 4.13k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 298 | LocalSinkStateInfo& info) { | 500 | 298 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 298 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 298 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 298 | return Status::OK(); | 504 | 298 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 4.77k | LocalSinkStateInfo& info) { | 500 | 4.77k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 4.77k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 4.77k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 4.77k | return Status::OK(); | 504 | 4.77k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.52k | LocalSinkStateInfo& info) { | 500 | 2.52k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.52k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.52k | return Status::OK(); | 504 | 2.52k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.60k | LocalSinkStateInfo& info) { | 500 | 2.60k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.60k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.60k | return Status::OK(); | 504 | 2.60k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 499 | 2.50k | LocalSinkStateInfo& info) { | 500 | 2.50k | auto local_state = LocalStateType::create_unique(this, state); | 501 | 2.50k | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 2.50k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 2.50k | return Status::OK(); | 504 | 2.50k | } |
_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 | 101 | LocalSinkStateInfo& info) { | 500 | 101 | auto local_state = LocalStateType::create_unique(this, state); | 501 | 101 | RETURN_IF_ERROR(local_state->init(state, info)); | 502 | 101 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 503 | 101 | return Status::OK(); | 504 | 101 | } |
_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.75M | 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.75M | } else { |
515 | 1.75M | auto ss = LocalStateType::SharedStateType::create_shared(); |
516 | 1.75M | ss->id = operator_id(); |
517 | 1.75M | for (auto& dest : dests_id()) { |
518 | 1.74M | ss->related_op_ids.insert(dest); |
519 | 1.74M | } |
520 | 1.75M | return ss; |
521 | 1.75M | } |
522 | 1.75M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 97.9k | 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 | 97.9k | } else { | 515 | 97.9k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 97.9k | ss->id = operator_id(); | 517 | 97.9k | for (auto& dest : dests_id()) { | 518 | 97.7k | ss->related_op_ids.insert(dest); | 519 | 97.7k | } | 520 | 97.9k | return ss; | 521 | 97.9k | } | 522 | 97.9k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 426k | 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 | 426k | } else { | 515 | 426k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 426k | ss->id = operator_id(); | 517 | 426k | for (auto& dest : dests_id()) { | 518 | 425k | ss->related_op_ids.insert(dest); | 519 | 425k | } | 520 | 426k | return ss; | 521 | 426k | } | 522 | 426k | } |
_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 | 510 | ss->related_op_ids.insert(dest); | 519 | 510 | } | 520 | 511 | return ss; | 521 | 511 | } | 522 | 511 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 47.4k | 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.4k | } else { | 515 | 47.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 47.4k | ss->id = operator_id(); | 517 | 47.4k | for (auto& dest : dests_id()) { | 518 | 47.1k | ss->related_op_ids.insert(dest); | 519 | 47.1k | } | 520 | 47.4k | return ss; | 521 | 47.4k | } | 522 | 47.4k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 9.63k | 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.63k | } else { | 515 | 9.63k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 9.63k | ss->id = operator_id(); | 517 | 9.63k | for (auto& dest : dests_id()) { | 518 | 9.63k | ss->related_op_ids.insert(dest); | 519 | 9.63k | } | 520 | 9.63k | return ss; | 521 | 9.63k | } | 522 | 9.63k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 5.07k | 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.07k | } else { | 515 | 5.07k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 5.07k | ss->id = operator_id(); | 517 | 5.07k | for (auto& dest : dests_id()) { | 518 | 5.07k | ss->related_op_ids.insert(dest); | 519 | 5.07k | } | 520 | 5.07k | return ss; | 521 | 5.07k | } | 522 | 5.07k | } |
_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.01k | 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.01k | } else { | 515 | 4.01k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 4.01k | ss->id = operator_id(); | 517 | 4.01k | for (auto& dest : dests_id()) { | 518 | 4.01k | ss->related_op_ids.insert(dest); | 519 | 4.01k | } | 520 | 4.01k | return ss; | 521 | 4.01k | } | 522 | 4.01k | } |
_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.71k | 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.71k | } else { | 515 | 1.71k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 1.71k | ss->id = operator_id(); | 517 | 1.71k | for (auto& dest : dests_id()) { | 518 | 1.71k | ss->related_op_ids.insert(dest); | 519 | 1.71k | } | 520 | 1.71k | return ss; | 521 | 1.71k | } | 522 | 1.71k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 9.13k | 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.13k | } else { | 515 | 9.13k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 9.13k | ss->id = operator_id(); | 517 | 9.13k | for (auto& dest : dests_id()) { | 518 | 9.11k | ss->related_op_ids.insert(dest); | 519 | 9.11k | } | 520 | 9.13k | return ss; | 521 | 9.13k | } | 522 | 9.13k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 89 | 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 | 89 | } else { | 515 | 89 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 89 | ss->id = operator_id(); | 517 | 89 | for (auto& dest : dests_id()) { | 518 | 89 | ss->related_op_ids.insert(dest); | 519 | 89 | } | 520 | 89 | return ss; | 521 | 89 | } | 522 | 89 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 272k | 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 | 272k | } else { | 515 | 272k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 272k | ss->id = operator_id(); | 517 | 272k | for (auto& dest : dests_id()) { | 518 | 272k | ss->related_op_ids.insert(dest); | 519 | 272k | } | 520 | 272k | return ss; | 521 | 272k | } | 522 | 272k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 46 | 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 | 46 | } else { | 515 | 46 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 46 | ss->id = operator_id(); | 517 | 46 | for (auto& dest : dests_id()) { | 518 | 46 | ss->related_op_ids.insert(dest); | 519 | 46 | } | 520 | 46 | return ss; | 521 | 46 | } | 522 | 46 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 164k | 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 | 164k | } else { | 515 | 164k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 164k | ss->id = operator_id(); | 517 | 164k | for (auto& dest : dests_id()) { | 518 | 164k | ss->related_op_ids.insert(dest); | 519 | 164k | } | 520 | 164k | return ss; | 521 | 164k | } | 522 | 164k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 249 | 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 | 249 | } else { | 515 | 249 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 249 | ss->id = operator_id(); | 517 | 249 | for (auto& dest : dests_id()) { | 518 | 249 | ss->related_op_ids.insert(dest); | 519 | 249 | } | 520 | 249 | return ss; | 521 | 249 | } | 522 | 249 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 693k | 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 | 693k | } else { | 515 | 693k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 693k | ss->id = operator_id(); | 517 | 693k | for (auto& dest : dests_id()) { | 518 | 691k | ss->related_op_ids.insert(dest); | 519 | 691k | } | 520 | 693k | return ss; | 521 | 693k | } | 522 | 693k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 10.6k | 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 | 10.6k | } else { | 515 | 10.6k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 10.6k | ss->id = operator_id(); | 517 | 10.6k | for (auto& dest : dests_id()) { | 518 | 10.6k | ss->related_op_ids.insert(dest); | 519 | 10.6k | } | 520 | 10.6k | return ss; | 521 | 10.6k | } | 522 | 10.6k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 401 | 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 | 401 | } else { | 515 | 401 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 401 | ss->id = operator_id(); | 517 | 401 | for (auto& dest : dests_id()) { | 518 | 399 | ss->related_op_ids.insert(dest); | 519 | 399 | } | 520 | 401 | return ss; | 521 | 401 | } | 522 | 401 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 507 | 2.61k | 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.61k | } else { | 515 | 2.61k | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 2.61k | ss->id = operator_id(); | 517 | 2.61k | for (auto& dest : dests_id()) { | 518 | 2.60k | ss->related_op_ids.insert(dest); | 519 | 2.60k | } | 520 | 2.61k | return ss; | 521 | 2.61k | } | 522 | 2.61k | } |
_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.49k | ss->related_op_ids.insert(dest); | 519 | 2.49k | } | 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 | 568 | 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 | 568 | } else { | 515 | 568 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 568 | ss->id = operator_id(); | 517 | 568 | for (auto& dest : dests_id()) { | 518 | 555 | ss->related_op_ids.insert(dest); | 519 | 555 | } | 520 | 568 | return ss; | 521 | 568 | } | 522 | 568 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 507 | 101 | 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 | 101 | } else { | 515 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 516 | 101 | ss->id = operator_id(); | 517 | 101 | for (auto& dest : dests_id()) { | 518 | 101 | ss->related_op_ids.insert(dest); | 519 | 101 | } | 520 | 101 | return ss; | 521 | 101 | } | 522 | 101 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
523 | | |
524 | | template <typename LocalStateType> |
525 | 2.52M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
526 | 2.52M | auto local_state = LocalStateType::create_unique(state, this); |
527 | 2.52M | RETURN_IF_ERROR(local_state->init(state, info)); |
528 | 2.52M | state->emplace_local_state(operator_id(), std::move(local_state)); |
529 | 2.52M | return Status::OK(); |
530 | 2.52M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 68.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 68.9k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 68.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 68.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 68.9k | return Status::OK(); | 530 | 68.9k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 323k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 323k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 323k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 323k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 323k | return Status::OK(); | 530 | 323k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 138 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 138 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 138 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 138 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 138 | return Status::OK(); | 530 | 138 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 37.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 37.8k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 37.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 37.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 37.8k | return Status::OK(); | 530 | 37.8k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 9.10k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 9.10k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 9.10k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 9.10k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 9.10k | return Status::OK(); | 530 | 9.10k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 9.27k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 9.27k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 9.27k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 9.27k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 9.27k | return Status::OK(); | 530 | 9.27k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 37 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 37 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 37 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 37 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 37 | return Status::OK(); | 530 | 37 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 262k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 262k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 262k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 262k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 262k | return Status::OK(); | 530 | 262k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 164k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 164k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 164k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 164k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 164k | return Status::OK(); | 530 | 164k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 612 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 612 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 612 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 612 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 612 | return Status::OK(); | 530 | 612 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 240 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 240 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 240 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 240 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 240 | return Status::OK(); | 530 | 240 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 4.05k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 4.05k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 4.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 4.05k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 4.05k | return Status::OK(); | 530 | 4.05k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 375k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 375k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 375k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 375k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 375k | return Status::OK(); | 530 | 375k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 1.17k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.17k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.17k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.17k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.17k | return Status::OK(); | 530 | 1.17k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 10.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 10.6k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 10.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 10.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 10.6k | return Status::OK(); | 530 | 10.6k | } |
_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.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 1.98k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 1.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 1.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 1.98k | return Status::OK(); | 530 | 1.98k | } |
_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.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 11.7k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 11.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 11.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 11.7k | return Status::OK(); | 530 | 11.7k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 296 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 296 | auto local_state = LocalStateType::create_unique(state, this); | 527 | 296 | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 296 | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 296 | return Status::OK(); | 530 | 296 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.54k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.54k | return Status::OK(); | 530 | 2.54k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 2.44k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 2.44k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 2.44k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 2.44k | return Status::OK(); | 530 | 2.44k | } |
_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.71k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 6.71k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 6.71k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 6.71k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 6.71k | return Status::OK(); | 530 | 6.71k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 765k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 765k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 765k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 765k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 765k | return Status::OK(); | 530 | 765k | } |
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 | 3.06k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 3.06k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 3.06k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 3.06k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 3.06k | return Status::OK(); | 530 | 3.06k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_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_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 525 | 386k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 526 | 386k | auto local_state = LocalStateType::create_unique(state, this); | 527 | 386k | RETURN_IF_ERROR(local_state->init(state, info)); | 528 | 386k | state->emplace_local_state(operator_id(), std::move(local_state)); | 529 | 386k | return Status::OK(); | 530 | 386k | } |
|
531 | | |
532 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
533 | | RuntimeState* state) |
534 | 2.10M | : _parent(parent), _state(state) {} |
535 | | |
536 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
537 | 2.51M | : _num_rows_returned(0), |
538 | 2.51M | _rows_returned_counter(nullptr), |
539 | 2.51M | _parent(parent), |
540 | 2.51M | _state(state), |
541 | 2.51M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
542 | | |
543 | | template <typename SharedStateArg> |
544 | 2.52M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
545 | 2.52M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
546 | 2.52M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
547 | 2.52M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
548 | 2.52M | _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.52M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
552 | 2.52M | _operator_profile->add_child(_common_profile.get(), true); |
553 | 2.52M | _operator_profile->add_child(_custom_profile.get(), true); |
554 | 2.52M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
555 | 2.52M | if constexpr (!is_fake_shared) { |
556 | 1.37M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
557 | 788k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
558 | 788k | .first.get() |
559 | 788k | ->template cast<SharedStateArg>(); |
560 | | |
561 | 788k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
562 | 788k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
563 | 788k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
564 | 788k | } else if (info.shared_state) { |
565 | 525k | 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 | 525k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
570 | | |
571 | 525k | _dependency = _shared_state->create_source_dependency( |
572 | 525k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
573 | 525k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
574 | 525k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
575 | 525k | } else { |
576 | 56.0k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
577 | 181 | DCHECK(false); |
578 | 181 | } |
579 | 56.0k | } |
580 | 1.37M | } |
581 | | |
582 | 2.52M | 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.52M | _rows_returned_counter = |
587 | 2.52M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
588 | 2.52M | _blocks_returned_counter = |
589 | 2.52M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
590 | 2.52M | _output_block_bytes_counter = |
591 | 2.52M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
592 | 2.52M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
593 | 2.52M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
594 | 2.52M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
595 | 2.52M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
596 | 2.52M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
597 | 2.52M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
598 | 2.52M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
599 | 2.52M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
600 | 2.52M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
601 | 2.52M | _memory_used_counter = |
602 | 2.52M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
603 | 2.52M | _common_profile->add_info_string("IsColocate", |
604 | 2.52M | std::to_string(_parent->is_colocated_operator())); |
605 | 2.52M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
606 | 2.52M | _common_profile->add_info_string("FollowedByShuffledOperator", |
607 | 2.52M | std::to_string(_parent->followed_by_shuffled_operator())); |
608 | 2.52M | return Status::OK(); |
609 | 2.52M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 69.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 69.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 69.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 69.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 69.1k | _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 | 69.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 69.1k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 69.1k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 69.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 69.1k | if constexpr (!is_fake_shared) { | 556 | 69.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 19.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 19.2k | .first.get() | 559 | 19.2k | ->template cast<SharedStateArg>(); | 560 | | | 561 | 19.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 19.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 19.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 49.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 | 49.8k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 49.8k | _dependency = _shared_state->create_source_dependency( | 572 | 49.8k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 49.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 49.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 49.8k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 85 | } | 580 | 69.1k | } | 581 | | | 582 | 69.1k | 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 | 69.1k | _rows_returned_counter = | 587 | 69.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 69.1k | _blocks_returned_counter = | 589 | 69.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 69.1k | _output_block_bytes_counter = | 591 | 69.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 69.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 69.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 69.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 69.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 69.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 69.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 69.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 69.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 69.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 69.1k | _memory_used_counter = | 602 | 69.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 69.1k | _common_profile->add_info_string("IsColocate", | 604 | 69.1k | std::to_string(_parent->is_colocated_operator())); | 605 | 69.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 69.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 69.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 69.1k | return Status::OK(); | 609 | 69.1k | } |
_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 | 272k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 272k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 272k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 272k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 272k | _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 | 272k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 272k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 272k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 272k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 272k | if constexpr (!is_fake_shared) { | 556 | 272k | 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 | 272k | } 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 | 270k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 270k | _dependency = _shared_state->create_source_dependency( | 572 | 270k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 270k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 270k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 270k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 1.99k | } | 580 | 272k | } | 581 | | | 582 | 272k | 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 | 272k | _rows_returned_counter = | 587 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 272k | _blocks_returned_counter = | 589 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 272k | _output_block_bytes_counter = | 591 | 272k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 272k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 272k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 272k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 272k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 272k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 272k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 272k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 272k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 272k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 272k | _memory_used_counter = | 602 | 272k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 272k | _common_profile->add_info_string("IsColocate", | 604 | 272k | std::to_string(_parent->is_colocated_operator())); | 605 | 272k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 272k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 272k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 272k | return Status::OK(); | 609 | 272k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 37 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 37 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 37 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 37 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 37 | _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 | 37 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 37 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 37 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 37 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 37 | if constexpr (!is_fake_shared) { | 556 | 37 | 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 | 37 | } 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 | 37 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 37 | _dependency = _shared_state->create_source_dependency( | 572 | 37 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 37 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 37 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 37 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 37 | } | 581 | | | 582 | 37 | 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 | 37 | _rows_returned_counter = | 587 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 37 | _blocks_returned_counter = | 589 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 37 | _output_block_bytes_counter = | 591 | 37 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 37 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 37 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 37 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 37 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 37 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 37 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 37 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 37 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 37 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 37 | _memory_used_counter = | 602 | 37 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 37 | _common_profile->add_info_string("IsColocate", | 604 | 37 | std::to_string(_parent->is_colocated_operator())); | 605 | 37 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 37 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 37 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 37 | return Status::OK(); | 609 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 10.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 10.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 10.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 10.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 10.6k | _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 | 10.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 10.6k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 10.6k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 10.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 10.6k | if constexpr (!is_fake_shared) { | 556 | 10.6k | 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 | 10.6k | } 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 | 10.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 10.6k | _dependency = _shared_state->create_source_dependency( | 572 | 10.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 10.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 10.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 18.4E | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 18.4E | } | 580 | 10.6k | } | 581 | | | 582 | 10.6k | 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 | 10.6k | _rows_returned_counter = | 587 | 10.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 10.6k | _blocks_returned_counter = | 589 | 10.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 10.6k | _output_block_bytes_counter = | 591 | 10.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 10.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 10.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 10.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 10.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 10.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 10.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 10.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 10.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 10.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 10.6k | _memory_used_counter = | 602 | 10.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 10.6k | _common_profile->add_info_string("IsColocate", | 604 | 10.6k | std::to_string(_parent->is_colocated_operator())); | 605 | 10.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 10.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 10.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 10.6k | return Status::OK(); | 609 | 10.6k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 9.13k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 9.13k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 9.13k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 9.13k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 9.13k | _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 | 9.13k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 9.13k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 9.13k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 9.13k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 9.13k | if constexpr (!is_fake_shared) { | 556 | 9.13k | 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 | 9.13k | } 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 | 9.12k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 9.12k | _dependency = _shared_state->create_source_dependency( | 572 | 9.12k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 9.12k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 9.12k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 9.12k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 10 | } | 580 | 9.13k | } | 581 | | | 582 | 9.13k | 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 | 9.13k | _rows_returned_counter = | 587 | 9.13k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 9.13k | _blocks_returned_counter = | 589 | 9.13k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 9.13k | _output_block_bytes_counter = | 591 | 9.13k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 9.13k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 9.13k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 9.13k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 9.13k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 9.13k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 9.13k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 9.13k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 9.13k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 9.13k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 9.13k | _memory_used_counter = | 602 | 9.13k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 9.13k | _common_profile->add_info_string("IsColocate", | 604 | 9.13k | std::to_string(_parent->is_colocated_operator())); | 605 | 9.13k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 9.13k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 9.13k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 9.13k | return Status::OK(); | 609 | 9.13k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 164k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 164k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 164k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 164k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 164k | _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 | 164k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 164k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 164k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 164k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 164k | if constexpr (!is_fake_shared) { | 556 | 164k | 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 | 164k | } 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 | 164k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 164k | _dependency = _shared_state->create_source_dependency( | 572 | 164k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 164k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 164k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 164k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 173 | } | 580 | 164k | } | 581 | | | 582 | 164k | 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 | 164k | _rows_returned_counter = | 587 | 164k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 164k | _blocks_returned_counter = | 589 | 164k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 164k | _output_block_bytes_counter = | 591 | 164k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 164k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 164k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 164k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 164k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 164k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 164k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 164k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 164k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 164k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 164k | _memory_used_counter = | 602 | 164k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 164k | _common_profile->add_info_string("IsColocate", | 604 | 164k | std::to_string(_parent->is_colocated_operator())); | 605 | 164k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 164k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 164k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 164k | return Status::OK(); | 609 | 164k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 628 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 628 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 628 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 628 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 628 | _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 | 628 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 628 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 628 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 628 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 628 | if constexpr (!is_fake_shared) { | 556 | 628 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 620 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 620 | .first.get() | 559 | 620 | ->template cast<SharedStateArg>(); | 560 | | | 561 | 620 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 620 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 620 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 620 | } 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 | 8 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 8 | } | 580 | 628 | } | 581 | | | 582 | 628 | 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 | 628 | _rows_returned_counter = | 587 | 628 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 628 | _blocks_returned_counter = | 589 | 628 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 628 | _output_block_bytes_counter = | 591 | 628 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 628 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 628 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 628 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 628 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 628 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 628 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 628 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 628 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 628 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 628 | _memory_used_counter = | 602 | 628 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 628 | _common_profile->add_info_string("IsColocate", | 604 | 628 | std::to_string(_parent->is_colocated_operator())); | 605 | 628 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 628 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 628 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 628 | return Status::OK(); | 609 | 628 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 240 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 240 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 240 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 240 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 240 | _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 | 240 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 240 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 240 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 240 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 240 | if constexpr (!is_fake_shared) { | 556 | 240 | 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 | 240 | } 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 | 240 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 240 | _dependency = _shared_state->create_source_dependency( | 572 | 240 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 240 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 240 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 240 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 0 | } | 580 | 240 | } | 581 | | | 582 | 240 | 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 | 240 | _rows_returned_counter = | 587 | 240 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 240 | _blocks_returned_counter = | 589 | 240 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 240 | _output_block_bytes_counter = | 591 | 240 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 240 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 240 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 240 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 240 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 240 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 240 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 240 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 240 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 240 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 240 | _memory_used_counter = | 602 | 240 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 240 | _common_profile->add_info_string("IsColocate", | 604 | 240 | std::to_string(_parent->is_colocated_operator())); | 605 | 240 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 240 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 240 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 240 | return Status::OK(); | 609 | 240 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 1.15M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 1.15M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 1.15M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 1.15M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 1.15M | _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.15M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 1.15M | _operator_profile->add_child(_common_profile.get(), true); | 553 | 1.15M | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 1.15M | 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.15M | 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.15M | _rows_returned_counter = | 587 | 1.15M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 1.15M | _blocks_returned_counter = | 589 | 1.15M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 1.15M | _output_block_bytes_counter = | 591 | 1.15M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 1.15M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 1.15M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 1.15M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 1.15M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 1.15M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 1.15M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 1.15M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 1.15M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 1.15M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 1.15M | _memory_used_counter = | 602 | 1.15M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 1.15M | _common_profile->add_info_string("IsColocate", | 604 | 1.15M | std::to_string(_parent->is_colocated_operator())); | 605 | 1.15M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 1.15M | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 1.15M | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 1.15M | return Status::OK(); | 609 | 1.15M | } |
_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.49k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 3.49k | _dependency = _shared_state->create_source_dependency( | 572 | 3.49k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 3.49k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 3.49k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 53.3k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 53.3k | } | 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.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 11.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 11.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 11.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 11.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 | 11.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 11.7k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 11.7k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 11.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 11.7k | if constexpr (!is_fake_shared) { | 556 | 11.7k | 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.7k | } 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.7k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 11.7k | _dependency = _shared_state->create_source_dependency( | 572 | 11.7k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 11.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 11.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 11.7k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 3 | } | 580 | 11.7k | } | 581 | | | 582 | 11.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 | 11.7k | _rows_returned_counter = | 587 | 11.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 11.7k | _blocks_returned_counter = | 589 | 11.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 11.7k | _output_block_bytes_counter = | 591 | 11.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 11.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 11.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 11.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 11.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 11.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 11.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 11.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 11.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 11.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 11.7k | _memory_used_counter = | 602 | 11.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 11.7k | _common_profile->add_info_string("IsColocate", | 604 | 11.7k | std::to_string(_parent->is_colocated_operator())); | 605 | 11.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 11.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 11.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 11.7k | return Status::OK(); | 609 | 11.7k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 401 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 401 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 401 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 401 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 401 | _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 | 401 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 401 | _operator_profile->add_child(_common_profile.get(), true); | 553 | 401 | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 401 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 401 | if constexpr (!is_fake_shared) { | 556 | 401 | 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 | 401 | } 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 | 399 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 399 | _dependency = _shared_state->create_source_dependency( | 572 | 399 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 399 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 399 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 399 | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 2 | } | 580 | 401 | } | 581 | | | 582 | 401 | 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 | 401 | _rows_returned_counter = | 587 | 401 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 401 | _blocks_returned_counter = | 589 | 401 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 401 | _output_block_bytes_counter = | 591 | 401 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 401 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 401 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 401 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 401 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 401 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 401 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 401 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 401 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 401 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 401 | _memory_used_counter = | 602 | 401 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 401 | _common_profile->add_info_string("IsColocate", | 604 | 401 | std::to_string(_parent->is_colocated_operator())); | 605 | 401 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 401 | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 401 | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 401 | return Status::OK(); | 609 | 401 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 5.09k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 5.09k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 5.09k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 5.09k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 5.09k | _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.09k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 5.09k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 5.09k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 5.09k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 5.09k | if constexpr (!is_fake_shared) { | 556 | 5.09k | 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.09k | } 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 | 4.87k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 570 | | | 571 | 4.87k | _dependency = _shared_state->create_source_dependency( | 572 | 4.87k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 573 | 4.87k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 574 | 4.87k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 575 | 4.87k | } else { | 576 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | | DCHECK(false); | 578 | | } | 579 | 220 | } | 580 | 5.09k | } | 581 | | | 582 | 5.09k | 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.09k | _rows_returned_counter = | 587 | 5.09k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 5.09k | _blocks_returned_counter = | 589 | 5.09k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 5.09k | _output_block_bytes_counter = | 591 | 5.09k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 5.09k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 5.09k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 5.09k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 5.09k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 5.09k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 5.09k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 5.09k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 5.09k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 5.09k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 5.09k | _memory_used_counter = | 602 | 5.09k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 5.09k | _common_profile->add_info_string("IsColocate", | 604 | 5.09k | std::to_string(_parent->is_colocated_operator())); | 605 | 5.09k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 5.09k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 5.09k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 5.09k | return Status::OK(); | 609 | 5.09k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 544 | 769k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 545 | 769k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 546 | 769k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 547 | 769k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 548 | 769k | _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 | 769k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 552 | 769k | _operator_profile->add_child(_common_profile.get(), true); | 553 | 769k | _operator_profile->add_child(_custom_profile.get(), true); | 554 | 769k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 555 | 769k | if constexpr (!is_fake_shared) { | 556 | 769k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 557 | 769k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 558 | 769k | .first.get() | 559 | 769k | ->template cast<SharedStateArg>(); | 560 | | | 561 | 769k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 562 | 769k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 563 | 769k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 564 | 769k | } 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 | 181 | } else { | 576 | 181 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 577 | 181 | DCHECK(false); | 578 | 181 | } | 579 | 181 | } | 580 | 769k | } | 581 | | | 582 | 769k | 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 | 769k | _rows_returned_counter = | 587 | 769k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 588 | 769k | _blocks_returned_counter = | 589 | 769k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 590 | 769k | _output_block_bytes_counter = | 591 | 769k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 592 | 769k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 593 | 769k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 594 | 769k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 595 | 769k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 596 | 769k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 597 | 769k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 598 | 769k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 599 | 769k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 600 | 769k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 601 | 769k | _memory_used_counter = | 602 | 769k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 603 | 769k | _common_profile->add_info_string("IsColocate", | 604 | 769k | std::to_string(_parent->is_colocated_operator())); | 605 | 769k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 606 | 769k | _common_profile->add_info_string("FollowedByShuffledOperator", | 607 | 769k | std::to_string(_parent->followed_by_shuffled_operator())); | 608 | 769k | return Status::OK(); | 609 | 769k | } |
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.53M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
613 | 2.53M | _conjuncts.resize(_parent->_conjuncts.size()); |
614 | 2.53M | _projections.resize(_parent->_projections.size()); |
615 | 3.07M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
616 | 542k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
617 | 542k | } |
618 | 5.40M | for (size_t i = 0; i < _projections.size(); i++) { |
619 | 2.87M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
620 | 2.87M | } |
621 | 2.53M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
622 | 2.54M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
623 | 13.1k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
624 | 103k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
625 | 89.9k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
626 | 89.9k | state, _intermediate_projections[i][j])); |
627 | 89.9k | } |
628 | 13.1k | } |
629 | 2.53M | return Status::OK(); |
630 | 2.53M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 69.1k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 69.1k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 69.1k | _projections.resize(_parent->_projections.size()); | 615 | 70.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 854 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 854 | } | 618 | 345k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 276k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 276k | } | 621 | 69.1k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 72.3k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 3.12k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 41.6k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 38.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 38.5k | state, _intermediate_projections[i][j])); | 627 | 38.5k | } | 628 | 3.12k | } | 629 | 69.1k | return Status::OK(); | 630 | 69.1k | } |
_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 | 272k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 272k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 272k | _projections.resize(_parent->_projections.size()); | 615 | 272k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 273k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 365 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 365 | } | 621 | 272k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 272k | 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 | 272k | return Status::OK(); | 630 | 272k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 37 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 37 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 37 | _projections.resize(_parent->_projections.size()); | 615 | 37 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 37 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 37 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 37 | 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 | 37 | return Status::OK(); | 630 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 10.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 10.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 10.6k | _projections.resize(_parent->_projections.size()); | 615 | 10.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 75 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 75 | } | 618 | 69.3k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 58.7k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 58.7k | } | 621 | 10.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 10.8k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 155 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 1.07k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 915 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 915 | state, _intermediate_projections[i][j])); | 627 | 915 | } | 628 | 155 | } | 629 | 10.6k | return Status::OK(); | 630 | 10.6k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 9.15k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 9.15k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 9.15k | _projections.resize(_parent->_projections.size()); | 615 | 9.91k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 766 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 766 | } | 618 | 25.2k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 16.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 16.0k | } | 621 | 9.15k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 9.24k | 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 | 9.15k | return Status::OK(); | 630 | 9.15k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 164k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 164k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 164k | _projections.resize(_parent->_projections.size()); | 615 | 168k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 3.88k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 3.88k | } | 618 | 436k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 271k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 271k | } | 621 | 164k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 164k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 301 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 2.36k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 2.06k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 2.06k | state, _intermediate_projections[i][j])); | 627 | 2.06k | } | 628 | 301 | } | 629 | 164k | return Status::OK(); | 630 | 164k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 627 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 627 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 627 | _projections.resize(_parent->_projections.size()); | 615 | 632 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 5 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 5 | } | 618 | 2.04k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 1.41k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 1.41k | } | 621 | 627 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 627 | 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 | 627 | return Status::OK(); | 630 | 627 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 244 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 244 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 244 | _projections.resize(_parent->_projections.size()); | 615 | 244 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 640 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 396 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 396 | } | 621 | 244 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 244 | 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 | 244 | return Status::OK(); | 630 | 244 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 1.16M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 1.16M | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 1.16M | _projections.resize(_parent->_projections.size()); | 615 | 1.69M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 531k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 531k | } | 618 | 3.31M | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 2.15M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 2.15M | } | 621 | 1.16M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 1.17M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 623 | 9.52k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 624 | 57.3k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 625 | 47.8k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 626 | 47.8k | state, _intermediate_projections[i][j])); | 627 | 47.8k | } | 628 | 9.52k | } | 629 | 1.16M | return Status::OK(); | 630 | 1.16M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 57.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 57.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 57.0k | _projections.resize(_parent->_projections.size()); | 615 | 57.0k | 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.7k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 96.7k | } | 621 | 57.0k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 57.0k | 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 | 57.0k | return Status::OK(); | 630 | 57.0k | } |
_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.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 11.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 11.6k | _projections.resize(_parent->_projections.size()); | 615 | 16.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 4.55k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 4.55k | } | 618 | 11.6k | 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.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 11.6k | 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.6k | return Status::OK(); | 630 | 11.6k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 400 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 400 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 400 | _projections.resize(_parent->_projections.size()); | 615 | 400 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 400 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 400 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 400 | 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 | 400 | return Status::OK(); | 630 | 400 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 5.15k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 5.15k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 5.15k | _projections.resize(_parent->_projections.size()); | 615 | 5.15k | 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.32k | 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.15k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 5.15k | 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.15k | return Status::OK(); | 630 | 5.15k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 770k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 770k | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 770k | _projections.resize(_parent->_projections.size()); | 615 | 770k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 0 | } | 618 | 770k | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 0 | } | 621 | 770k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 770k | 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 | 770k | return Status::OK(); | 630 | 770k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 612 | 163 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 613 | 163 | _conjuncts.resize(_parent->_conjuncts.size()); | 614 | 163 | _projections.resize(_parent->_projections.size()); | 615 | 170 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 616 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 617 | 7 | } | 618 | 482 | for (size_t i = 0; i < _projections.size(); i++) { | 619 | 319 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 620 | 319 | } | 621 | 163 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 622 | 166 | 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 | 163 | return Status::OK(); | 630 | 163 | } |
|
631 | | |
632 | | template <typename SharedStateArg> |
633 | 7.36k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
634 | 7.36k | if (_terminated) { |
635 | 2 | return Status::OK(); |
636 | 2 | } |
637 | 7.35k | _terminated = true; |
638 | 7.35k | return Status::OK(); |
639 | 7.36k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 283 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 283 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 283 | _terminated = true; | 638 | 283 | return Status::OK(); | 639 | 283 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 52 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 52 | if (_terminated) { | 635 | 2 | return Status::OK(); | 636 | 2 | } | 637 | 50 | _terminated = true; | 638 | 50 | return Status::OK(); | 639 | 52 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 99 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 99 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 99 | _terminated = true; | 638 | 99 | return Status::OK(); | 639 | 99 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 138 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 138 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 138 | _terminated = true; | 638 | 138 | return Status::OK(); | 639 | 138 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 5.72k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 5.72k | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 5.72k | _terminated = true; | 638 | 5.72k | return Status::OK(); | 639 | 5.72k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 4 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 4 | _terminated = true; | 638 | 4 | return Status::OK(); | 639 | 4 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 4 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 4 | _terminated = true; | 638 | 4 | return Status::OK(); | 639 | 4 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 239 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 239 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 239 | _terminated = true; | 638 | 239 | return Status::OK(); | 639 | 239 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 809 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 809 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 809 | _terminated = true; | 638 | 809 | return Status::OK(); | 639 | 809 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 633 | 12 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 634 | 12 | if (_terminated) { | 635 | 0 | return Status::OK(); | 636 | 0 | } | 637 | 12 | _terminated = true; | 638 | 12 | return Status::OK(); | 639 | 12 | } |
|
640 | | |
641 | | template <typename SharedStateArg> |
642 | 2.83M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
643 | 2.83M | if (_closed) { |
644 | 306k | return Status::OK(); |
645 | 306k | } |
646 | 2.53M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
647 | 1.36M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
648 | 1.36M | } |
649 | 2.53M | _closed = true; |
650 | 2.53M | return Status::OK(); |
651 | 2.83M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 69.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 69.1k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 69.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 69.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 69.1k | } | 649 | 69.1k | _closed = true; | 650 | 69.1k | return Status::OK(); | 651 | 69.1k | } |
_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 | 541k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 541k | if (_closed) { | 644 | 271k | return Status::OK(); | 645 | 271k | } | 646 | 270k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 270k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 270k | } | 649 | 270k | _closed = true; | 650 | 270k | return Status::OK(); | 651 | 541k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 37 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 37 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 37 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 37 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 37 | } | 649 | 37 | _closed = true; | 650 | 37 | return Status::OK(); | 651 | 37 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 10.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 10.6k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 10.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 10.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 10.6k | } | 649 | 10.6k | _closed = true; | 650 | 10.6k | return Status::OK(); | 651 | 10.6k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 18.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 18.4k | if (_closed) { | 644 | 9.26k | return Status::OK(); | 645 | 9.26k | } | 646 | 9.14k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 9.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 9.14k | } | 649 | 9.14k | _closed = true; | 650 | 9.14k | return Status::OK(); | 651 | 18.4k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 164k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 164k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 164k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 164k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 164k | } | 649 | 164k | _closed = true; | 650 | 164k | return Status::OK(); | 651 | 164k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 628 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 628 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 628 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 628 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 628 | } | 649 | 628 | _closed = true; | 650 | 628 | return Status::OK(); | 651 | 628 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 239 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 239 | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 239 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 239 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 239 | } | 649 | 239 | _closed = true; | 650 | 239 | return Status::OK(); | 651 | 239 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 1.18M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 1.18M | if (_closed) { | 644 | 20.1k | return Status::OK(); | 645 | 20.1k | } | 646 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | | } | 649 | 1.16M | _closed = true; | 650 | 1.16M | return Status::OK(); | 651 | 1.18M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 57.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 57.0k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 57.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 57.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 57.0k | } | 649 | 57.0k | _closed = true; | 650 | 57.0k | return Status::OK(); | 651 | 57.0k | } |
_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.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 11.6k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 11.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 11.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 11.6k | } | 649 | 11.6k | _closed = true; | 650 | 11.6k | return Status::OK(); | 651 | 11.6k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 597 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 597 | if (_closed) { | 644 | 299 | return Status::OK(); | 645 | 299 | } | 646 | 298 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 298 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 298 | } | 649 | 298 | _closed = true; | 650 | 298 | return Status::OK(); | 651 | 597 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 10.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 10.6k | if (_closed) { | 644 | 5.49k | return Status::OK(); | 645 | 5.49k | } | 646 | 5.14k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 5.14k | } | 649 | 5.14k | _closed = true; | 650 | 5.14k | return Status::OK(); | 651 | 10.6k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 642 | 771k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 643 | 771k | if (_closed) { | 644 | 0 | return Status::OK(); | 645 | 0 | } | 646 | 771k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 647 | 771k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 648 | 771k | } | 649 | 771k | _closed = true; | 650 | 771k | return Status::OK(); | 651 | 771k | } |
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.10M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
655 | | // create profile |
656 | 2.10M | _operator_profile = |
657 | 2.10M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
658 | 2.10M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
659 | 2.10M | _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.10M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
665 | 2.10M | _operator_profile->add_child(_common_profile, true); |
666 | 2.10M | _operator_profile->add_child(_custom_profile, true); |
667 | | |
668 | 2.10M | _operator_profile->set_metadata(_parent->node_id()); |
669 | 2.10M | _wait_for_finish_dependency_timer = |
670 | 2.10M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
671 | 2.10M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
672 | 2.10M | if constexpr (!is_fake_shared) { |
673 | 1.41M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
674 | 1.41M | info.shared_state_map.end()) { |
675 | 340k | 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 | 340k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
679 | 340k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
680 | 340k | ? 0 |
681 | 340k | : info.task_idx] |
682 | 340k | .get(); |
683 | 340k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
684 | 1.07M | } else { |
685 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
686 | 18.4E | DCHECK(false); |
687 | 18.4E | } |
688 | 1.07M | _shared_state = info.shared_state->template cast<SharedState>(); |
689 | 1.07M | _dependency = _shared_state->create_sink_dependency( |
690 | 1.07M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
691 | 1.07M | } |
692 | 1.41M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
693 | 1.41M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
694 | 1.41M | } |
695 | | |
696 | 2.10M | 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.10M | _rows_input_counter = |
701 | 2.10M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
702 | 2.10M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
703 | 2.10M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
704 | 2.10M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
705 | 2.10M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
706 | 2.10M | _memory_used_counter = |
707 | 2.10M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
708 | 2.10M | _common_profile->add_info_string("IsColocate", |
709 | 2.10M | std::to_string(_parent->is_colocated_operator())); |
710 | 2.10M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
711 | 2.10M | _common_profile->add_info_string("FollowedByShuffledOperator", |
712 | 2.10M | std::to_string(_parent->followed_by_shuffled_operator())); |
713 | 2.10M | return Status::OK(); |
714 | 2.10M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 116k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 116k | _operator_profile = | 657 | 116k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 116k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 116k | _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 | 116k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 116k | _operator_profile->add_child(_common_profile, true); | 666 | 116k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 116k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 116k | _wait_for_finish_dependency_timer = | 670 | 116k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 116k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 116k | if constexpr (!is_fake_shared) { | 673 | 116k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 116k | 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 | 19.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 19.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 19.2k | ? 0 | 681 | 19.2k | : info.task_idx] | 682 | 19.2k | .get(); | 683 | 19.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 97.6k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 97.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 97.6k | _dependency = _shared_state->create_sink_dependency( | 690 | 97.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 97.6k | } | 692 | 116k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 116k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 116k | } | 695 | | | 696 | 116k | 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 | 116k | _rows_input_counter = | 701 | 116k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 116k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 116k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 116k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 116k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 116k | _memory_used_counter = | 707 | 116k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 116k | _common_profile->add_info_string("IsColocate", | 709 | 116k | std::to_string(_parent->is_colocated_operator())); | 710 | 116k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 116k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 116k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 116k | return Status::OK(); | 714 | 116k | } |
_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 | 271k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 271k | _operator_profile = | 657 | 271k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 271k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 271k | _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 | 271k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 271k | _operator_profile->add_child(_common_profile, true); | 666 | 271k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 271k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 271k | _wait_for_finish_dependency_timer = | 670 | 271k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 271k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 271k | if constexpr (!is_fake_shared) { | 673 | 271k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 271k | 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 | 271k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 271k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 271k | _dependency = _shared_state->create_sink_dependency( | 690 | 271k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 271k | } | 692 | 271k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 271k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 271k | } | 695 | | | 696 | 271k | 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 | 271k | _rows_input_counter = | 701 | 271k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 271k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 271k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 271k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 271k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 271k | _memory_used_counter = | 707 | 271k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 271k | _common_profile->add_info_string("IsColocate", | 709 | 271k | std::to_string(_parent->is_colocated_operator())); | 710 | 271k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 271k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 271k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 271k | return Status::OK(); | 714 | 271k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 44 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 44 | _operator_profile = | 657 | 44 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 44 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 44 | _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 | 44 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 44 | _operator_profile->add_child(_common_profile, true); | 666 | 44 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 44 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 44 | _wait_for_finish_dependency_timer = | 670 | 44 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 44 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 44 | if constexpr (!is_fake_shared) { | 673 | 44 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 44 | 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 | 44 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 44 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 44 | _dependency = _shared_state->create_sink_dependency( | 690 | 44 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 44 | } | 692 | 44 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 44 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 44 | } | 695 | | | 696 | 44 | 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 | 44 | _rows_input_counter = | 701 | 44 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 44 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 44 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 44 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 44 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 44 | _memory_used_counter = | 707 | 44 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 44 | _common_profile->add_info_string("IsColocate", | 709 | 44 | std::to_string(_parent->is_colocated_operator())); | 710 | 44 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 44 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 44 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 44 | return Status::OK(); | 714 | 44 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 10.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 10.6k | _operator_profile = | 657 | 10.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 10.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 10.6k | _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 | 10.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 10.6k | _operator_profile->add_child(_common_profile, true); | 666 | 10.6k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 10.6k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 10.6k | _wait_for_finish_dependency_timer = | 670 | 10.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 10.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 10.6k | if constexpr (!is_fake_shared) { | 673 | 10.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 10.6k | 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 | 10.6k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 10.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 10.6k | _dependency = _shared_state->create_sink_dependency( | 690 | 10.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 10.6k | } | 692 | 10.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 10.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 10.6k | } | 695 | | | 696 | 10.6k | 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 | 10.6k | _rows_input_counter = | 701 | 10.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 10.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 10.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 10.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 10.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 10.6k | _memory_used_counter = | 707 | 10.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 10.6k | _common_profile->add_info_string("IsColocate", | 709 | 10.6k | std::to_string(_parent->is_colocated_operator())); | 710 | 10.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 10.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 10.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 10.6k | return Status::OK(); | 714 | 10.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 9.09k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 9.09k | _operator_profile = | 657 | 9.09k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 9.09k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 9.09k | _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 | 9.09k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 9.09k | _operator_profile->add_child(_common_profile, true); | 666 | 9.09k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 9.09k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 9.09k | _wait_for_finish_dependency_timer = | 670 | 9.09k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 9.09k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 9.09k | if constexpr (!is_fake_shared) { | 673 | 9.09k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 9.09k | 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 | 9.09k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 9.09k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 9.09k | _dependency = _shared_state->create_sink_dependency( | 690 | 9.09k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 9.09k | } | 692 | 9.09k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 9.09k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 9.09k | } | 695 | | | 696 | 9.09k | 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 | 9.09k | _rows_input_counter = | 701 | 9.09k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 9.09k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 9.09k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 9.09k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 9.09k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 9.09k | _memory_used_counter = | 707 | 9.09k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 9.09k | _common_profile->add_info_string("IsColocate", | 709 | 9.09k | std::to_string(_parent->is_colocated_operator())); | 710 | 9.09k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 9.09k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 9.09k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 9.09k | return Status::OK(); | 714 | 9.09k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 164k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 164k | _operator_profile = | 657 | 164k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 164k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 164k | _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 | 164k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 164k | _operator_profile->add_child(_common_profile, true); | 666 | 164k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 164k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 164k | _wait_for_finish_dependency_timer = | 670 | 164k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 164k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 164k | if constexpr (!is_fake_shared) { | 673 | 164k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 164k | 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 | 164k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 164k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 164k | _dependency = _shared_state->create_sink_dependency( | 690 | 164k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 164k | } | 692 | 164k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 164k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 164k | } | 695 | | | 696 | 164k | 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 | 164k | _rows_input_counter = | 701 | 164k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 164k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 164k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 164k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 164k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 164k | _memory_used_counter = | 707 | 164k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 164k | _common_profile->add_info_string("IsColocate", | 709 | 164k | std::to_string(_parent->is_colocated_operator())); | 710 | 164k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 164k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 164k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 164k | return Status::OK(); | 714 | 164k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 623 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 623 | _operator_profile = | 657 | 623 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 623 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 623 | _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 | 623 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 623 | _operator_profile->add_child(_common_profile, true); | 666 | 623 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 623 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 623 | _wait_for_finish_dependency_timer = | 670 | 623 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 623 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 623 | if constexpr (!is_fake_shared) { | 673 | 623 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 626 | 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 | 626 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 679 | 626 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 680 | 626 | ? 0 | 681 | 626 | : info.task_idx] | 682 | 626 | .get(); | 683 | 626 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 684 | 18.4E | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 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 | 623 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 623 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 623 | } | 695 | | | 696 | 626 | 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 | 623 | _rows_input_counter = | 701 | 623 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 623 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 623 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 623 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 623 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 623 | _memory_used_counter = | 707 | 623 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 623 | _common_profile->add_info_string("IsColocate", | 709 | 623 | std::to_string(_parent->is_colocated_operator())); | 710 | 623 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 623 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 623 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 623 | return Status::OK(); | 714 | 623 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 250 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 250 | _operator_profile = | 657 | 250 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 250 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 250 | _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 | 250 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 250 | _operator_profile->add_child(_common_profile, true); | 666 | 250 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 250 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 250 | _wait_for_finish_dependency_timer = | 670 | 250 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 250 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 250 | if constexpr (!is_fake_shared) { | 673 | 250 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 250 | 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 | 250 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 250 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 250 | _dependency = _shared_state->create_sink_dependency( | 690 | 250 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 250 | } | 692 | 250 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 250 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 250 | } | 695 | | | 696 | 250 | 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 | 250 | _rows_input_counter = | 701 | 250 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 250 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 250 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 250 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 250 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 250 | _memory_used_counter = | 707 | 250 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 250 | _common_profile->add_info_string("IsColocate", | 709 | 250 | std::to_string(_parent->is_colocated_operator())); | 710 | 250 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 250 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 250 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 250 | return Status::OK(); | 714 | 250 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 691k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 691k | _operator_profile = | 657 | 691k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 691k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 691k | _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 | 691k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 691k | _operator_profile->add_child(_common_profile, true); | 666 | 691k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 691k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 691k | _wait_for_finish_dependency_timer = | 670 | 691k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 691k | 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 | 691k | 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 | 691k | _rows_input_counter = | 701 | 691k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 691k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 691k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 691k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 691k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 691k | _memory_used_counter = | 707 | 691k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 691k | _common_profile->add_info_string("IsColocate", | 709 | 691k | std::to_string(_parent->is_colocated_operator())); | 710 | 691k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 691k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 691k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 691k | return Status::OK(); | 714 | 691k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 7.75k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 7.75k | _operator_profile = | 657 | 7.75k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 7.75k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 7.75k | _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.75k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 7.75k | _operator_profile->add_child(_common_profile, true); | 666 | 7.75k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 7.75k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 7.75k | _wait_for_finish_dependency_timer = | 670 | 7.75k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 7.75k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 7.75k | if constexpr (!is_fake_shared) { | 673 | 7.75k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 7.75k | 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.75k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 7.75k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 7.75k | _dependency = _shared_state->create_sink_dependency( | 690 | 7.75k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 7.75k | } | 692 | 7.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 7.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 7.75k | } | 695 | | | 696 | 7.75k | 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.75k | _rows_input_counter = | 701 | 7.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 7.75k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 7.75k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 7.75k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 7.75k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 7.75k | _memory_used_counter = | 707 | 7.75k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 7.75k | _common_profile->add_info_string("IsColocate", | 709 | 7.75k | std::to_string(_parent->is_colocated_operator())); | 710 | 7.75k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 7.75k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 7.75k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 7.75k | return Status::OK(); | 714 | 7.75k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 400 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 400 | _operator_profile = | 657 | 400 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 400 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 400 | _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 | 400 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 400 | _operator_profile->add_child(_common_profile, true); | 666 | 400 | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 400 | _operator_profile->set_metadata(_parent->node_id()); | 669 | 400 | _wait_for_finish_dependency_timer = | 670 | 400 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 400 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 400 | if constexpr (!is_fake_shared) { | 673 | 400 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 400 | 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 | 400 | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 400 | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 400 | _dependency = _shared_state->create_sink_dependency( | 690 | 400 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 400 | } | 692 | 400 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 400 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 400 | } | 695 | | | 696 | 401 | 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 | 400 | _rows_input_counter = | 701 | 400 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 400 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 400 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 400 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 400 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 400 | _memory_used_counter = | 707 | 400 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 400 | _common_profile->add_info_string("IsColocate", | 709 | 400 | std::to_string(_parent->is_colocated_operator())); | 710 | 400 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 400 | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 400 | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 400 | return Status::OK(); | 714 | 400 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 4.13k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 4.13k | _operator_profile = | 657 | 4.13k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 4.13k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 4.13k | _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.13k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 4.13k | _operator_profile->add_child(_common_profile, true); | 666 | 4.13k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 4.13k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 4.13k | _wait_for_finish_dependency_timer = | 670 | 4.13k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 4.13k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 4.13k | if constexpr (!is_fake_shared) { | 673 | 4.13k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 4.13k | 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.13k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 4.13k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 4.13k | _dependency = _shared_state->create_sink_dependency( | 690 | 4.13k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 4.13k | } | 692 | 4.13k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 4.13k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 4.13k | } | 695 | | | 696 | 4.13k | 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.13k | _rows_input_counter = | 701 | 4.13k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 4.13k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 4.13k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 4.13k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 4.13k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 4.13k | _memory_used_counter = | 707 | 4.13k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 4.13k | _common_profile->add_info_string("IsColocate", | 709 | 4.13k | std::to_string(_parent->is_colocated_operator())); | 710 | 4.13k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 4.13k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 4.13k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 4.13k | return Status::OK(); | 714 | 4.13k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 12.4k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 12.4k | _operator_profile = | 657 | 12.4k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 12.4k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 12.4k | _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.4k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 12.4k | _operator_profile->add_child(_common_profile, true); | 666 | 12.4k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 12.4k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 12.4k | _wait_for_finish_dependency_timer = | 670 | 12.4k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 12.4k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 12.4k | if constexpr (!is_fake_shared) { | 673 | 12.4k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 12.4k | 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.4k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 12.4k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 12.4k | _dependency = _shared_state->create_sink_dependency( | 690 | 12.4k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 12.4k | } | 692 | 12.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 12.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 12.4k | } | 695 | | | 696 | 12.4k | 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.4k | _rows_input_counter = | 701 | 12.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 12.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 12.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 12.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 12.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 12.4k | _memory_used_counter = | 707 | 12.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 12.4k | _common_profile->add_info_string("IsColocate", | 709 | 12.4k | std::to_string(_parent->is_colocated_operator())); | 710 | 12.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 12.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 12.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 12.4k | return Status::OK(); | 714 | 12.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 319k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 319k | _operator_profile = | 657 | 319k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 319k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 319k | _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 | 319k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 319k | _operator_profile->add_child(_common_profile, true); | 666 | 319k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 319k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 319k | _wait_for_finish_dependency_timer = | 670 | 319k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 319k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 319k | if constexpr (!is_fake_shared) { | 673 | 319k | 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 | 319k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 319k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 319k | } | 695 | | | 696 | 319k | 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 | 319k | _rows_input_counter = | 701 | 319k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 319k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 319k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 319k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 319k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 319k | _memory_used_counter = | 707 | 319k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 319k | _common_profile->add_info_string("IsColocate", | 709 | 319k | std::to_string(_parent->is_colocated_operator())); | 710 | 319k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 319k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 319k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 319k | return Status::OK(); | 714 | 319k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 654 | 493k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 655 | | // create profile | 656 | 493k | _operator_profile = | 657 | 493k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 658 | 493k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 659 | 493k | _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 | 493k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 665 | 493k | _operator_profile->add_child(_common_profile, true); | 666 | 493k | _operator_profile->add_child(_custom_profile, true); | 667 | | | 668 | 493k | _operator_profile->set_metadata(_parent->node_id()); | 669 | 493k | _wait_for_finish_dependency_timer = | 670 | 493k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 671 | 493k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 672 | 493k | if constexpr (!is_fake_shared) { | 673 | 493k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 674 | 493k | 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 | 493k | } else { | 685 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 686 | | DCHECK(false); | 687 | | } | 688 | 493k | _shared_state = info.shared_state->template cast<SharedState>(); | 689 | 493k | _dependency = _shared_state->create_sink_dependency( | 690 | 493k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 691 | 493k | } | 692 | 493k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 693 | 493k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 694 | 493k | } | 695 | | | 696 | 495k | 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 | 493k | _rows_input_counter = | 701 | 493k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 702 | 493k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 703 | 493k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 704 | 493k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 705 | 493k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 706 | 493k | _memory_used_counter = | 707 | 493k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 708 | 493k | _common_profile->add_info_string("IsColocate", | 709 | 493k | std::to_string(_parent->is_colocated_operator())); | 710 | 493k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 711 | 493k | _common_profile->add_info_string("FollowedByShuffledOperator", | 712 | 493k | std::to_string(_parent->followed_by_shuffled_operator())); | 713 | 493k | return Status::OK(); | 714 | 493k | } |
_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.11M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
718 | 2.11M | if (_closed) { |
719 | 2 | return Status::OK(); |
720 | 2 | } |
721 | 2.11M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
722 | 1.41M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
723 | 1.41M | } |
724 | 2.11M | _closed = true; |
725 | 2.11M | return Status::OK(); |
726 | 2.11M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 117k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 117k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 117k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 117k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 117k | } | 724 | 117k | _closed = true; | 725 | 117k | return Status::OK(); | 726 | 117k | } |
_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 | 271k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 271k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 271k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 271k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 271k | } | 724 | 271k | _closed = true; | 725 | 271k | return Status::OK(); | 726 | 271k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 35 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 35 | if (_closed) { | 719 | 2 | return Status::OK(); | 720 | 2 | } | 721 | 33 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 33 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 33 | } | 724 | 33 | _closed = true; | 725 | 33 | return Status::OK(); | 726 | 35 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 10.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 10.6k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 10.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 10.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 10.6k | } | 724 | 10.6k | _closed = true; | 725 | 10.6k | return Status::OK(); | 726 | 10.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 9.11k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 9.11k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 9.11k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 9.11k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 9.11k | } | 724 | 9.11k | _closed = true; | 725 | 9.11k | return Status::OK(); | 726 | 9.11k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 163k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 163k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 163k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 163k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 163k | } | 724 | 163k | _closed = true; | 725 | 163k | return Status::OK(); | 726 | 163k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 627 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 627 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 627 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 627 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 627 | } | 724 | 627 | _closed = true; | 725 | 627 | return Status::OK(); | 726 | 627 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 239 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 239 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 239 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 239 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 239 | } | 724 | 239 | _closed = true; | 725 | 239 | return Status::OK(); | 726 | 239 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 695k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 695k | 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 | 695k | _closed = true; | 725 | 695k | return Status::OK(); | 726 | 695k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 7.77k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 7.77k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 7.77k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 7.77k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 7.77k | } | 724 | 7.77k | _closed = true; | 725 | 7.77k | return Status::OK(); | 726 | 7.77k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 299 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 299 | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 299 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 299 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 299 | } | 724 | 299 | _closed = true; | 725 | 299 | return Status::OK(); | 726 | 299 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 717 | 4.14k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 4.14k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 4.14k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 4.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 4.14k | } | 724 | 4.14k | _closed = true; | 725 | 4.14k | return Status::OK(); | 726 | 4.14k | } |
_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 | 497k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 718 | 497k | if (_closed) { | 719 | 0 | return Status::OK(); | 720 | 0 | } | 721 | 497k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 722 | 497k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 723 | 497k | } | 724 | 497k | _closed = true; | 725 | 497k | return Status::OK(); | 726 | 497k | } |
_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.0k | bool* eos) { |
731 | 16.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
732 | 16.0k | return pull(state, block, eos); |
733 | 16.0k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 730 | 431 | bool* eos) { | 731 | 431 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 732 | 431 | return pull(state, block, eos); | 733 | 431 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 730 | 15.5k | bool* eos) { | 731 | 15.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 732 | 15.5k | return pull(state, block, eos); | 733 | 15.5k | } |
|
734 | | |
735 | | template <typename LocalStateType> |
736 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
737 | 662k | bool* eos) { |
738 | 662k | auto& local_state = get_local_state(state); |
739 | 662k | if (need_more_input_data(state)) { |
740 | 634k | local_state._child_block->clear_column_data( |
741 | 634k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
742 | 634k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
743 | 634k | state, local_state._child_block.get(), &local_state._child_eos)); |
744 | 634k | *eos = local_state._child_eos; |
745 | 634k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
746 | 64.2k | return Status::OK(); |
747 | 64.2k | } |
748 | 570k | { |
749 | 570k | SCOPED_TIMER(local_state.exec_time_counter()); |
750 | 570k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
751 | 570k | } |
752 | 570k | } |
753 | | |
754 | 598k | if (!need_more_input_data(state)) { |
755 | 546k | SCOPED_TIMER(local_state.exec_time_counter()); |
756 | 546k | bool new_eos = false; |
757 | 546k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
758 | 546k | if (new_eos) { |
759 | 461k | *eos = true; |
760 | 461k | } else if (!need_more_input_data(state)) { |
761 | 23.4k | *eos = false; |
762 | 23.4k | } |
763 | 546k | } |
764 | 598k | return Status::OK(); |
765 | 598k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 142k | bool* eos) { | 738 | 142k | auto& local_state = get_local_state(state); | 739 | 142k | if (need_more_input_data(state)) { | 740 | 126k | local_state._child_block->clear_column_data( | 741 | 126k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 126k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 126k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 126k | *eos = local_state._child_eos; | 745 | 126k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 36.5k | return Status::OK(); | 747 | 36.5k | } | 748 | 89.4k | { | 749 | 89.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 89.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 89.4k | } | 752 | 89.4k | } | 753 | | | 754 | 106k | if (!need_more_input_data(state)) { | 755 | 106k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 106k | bool new_eos = false; | 757 | 106k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 106k | if (new_eos) { | 759 | 44.9k | *eos = true; | 760 | 61.2k | } else if (!need_more_input_data(state)) { | 761 | 10.1k | *eos = false; | 762 | 10.1k | } | 763 | 106k | } | 764 | 105k | return Status::OK(); | 765 | 105k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 3.75k | bool* eos) { | 738 | 3.75k | auto& local_state = get_local_state(state); | 739 | 3.75k | if (need_more_input_data(state)) { | 740 | 2.02k | local_state._child_block->clear_column_data( | 741 | 2.02k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 2.02k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 2.02k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 2.02k | *eos = local_state._child_eos; | 745 | 2.02k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 319 | return Status::OK(); | 747 | 319 | } | 748 | 1.70k | { | 749 | 1.70k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 1.70k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 1.70k | } | 752 | 1.70k | } | 753 | | | 754 | 3.45k | if (!need_more_input_data(state)) { | 755 | 3.45k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 3.45k | bool new_eos = false; | 757 | 3.45k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 3.45k | if (new_eos) { | 759 | 1.17k | *eos = true; | 760 | 2.27k | } else if (!need_more_input_data(state)) { | 761 | 1.73k | *eos = false; | 762 | 1.73k | } | 763 | 3.45k | } | 764 | 3.43k | return Status::OK(); | 765 | 3.43k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 4.95k | bool* eos) { | 738 | 4.95k | auto& local_state = get_local_state(state); | 739 | 4.95k | if (need_more_input_data(state)) { | 740 | 4.95k | local_state._child_block->clear_column_data( | 741 | 4.95k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 4.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 4.95k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 4.95k | *eos = local_state._child_eos; | 745 | 4.95k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 1.71k | return Status::OK(); | 747 | 1.71k | } | 748 | 3.23k | { | 749 | 3.23k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 3.23k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 3.23k | } | 752 | 3.23k | } | 753 | | | 754 | 3.23k | if (!need_more_input_data(state)) { | 755 | 3.23k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 3.23k | bool new_eos = false; | 757 | 3.23k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 3.23k | 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.23k | } | 764 | 3.23k | return Status::OK(); | 765 | 3.23k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 35.2k | bool* eos) { | 738 | 35.2k | auto& local_state = get_local_state(state); | 739 | 35.3k | if (need_more_input_data(state)) { | 740 | 35.3k | local_state._child_block->clear_column_data( | 741 | 35.3k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 35.3k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 35.3k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 35.3k | *eos = local_state._child_eos; | 745 | 35.3k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 3.97k | return Status::OK(); | 747 | 3.97k | } | 748 | 31.3k | { | 749 | 31.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 31.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 31.3k | } | 752 | 31.3k | } | 753 | | | 754 | 31.2k | if (!need_more_input_data(state)) { | 755 | 12.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 12.1k | bool new_eos = false; | 757 | 12.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 12.1k | if (new_eos) { | 759 | 11.9k | *eos = true; | 760 | 11.9k | } else if (!need_more_input_data(state)) { | 761 | 7 | *eos = false; | 762 | 7 | } | 763 | 12.1k | } | 764 | 31.2k | return Status::OK(); | 765 | 31.2k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 438k | bool* eos) { | 738 | 438k | auto& local_state = get_local_state(state); | 739 | 440k | if (need_more_input_data(state)) { | 740 | 440k | local_state._child_block->clear_column_data( | 741 | 440k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 440k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 440k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 440k | *eos = local_state._child_eos; | 745 | 440k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 18.4k | return Status::OK(); | 747 | 18.4k | } | 748 | 421k | { | 749 | 421k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 421k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 421k | } | 752 | 421k | } | 753 | | | 754 | 419k | if (!need_more_input_data(state)) { | 755 | 387k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 387k | bool new_eos = false; | 757 | 387k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 387k | if (new_eos) { | 759 | 386k | *eos = true; | 760 | 386k | } else if (!need_more_input_data(state)) { | 761 | 0 | *eos = false; | 762 | 0 | } | 763 | 387k | } | 764 | 419k | return Status::OK(); | 765 | 419k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 31.3k | bool* eos) { | 738 | 31.3k | auto& local_state = get_local_state(state); | 739 | 31.3k | if (need_more_input_data(state)) { | 740 | 20.2k | local_state._child_block->clear_column_data( | 741 | 20.2k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 20.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 20.2k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 20.2k | *eos = local_state._child_eos; | 745 | 20.2k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 2.87k | return Status::OK(); | 747 | 2.87k | } | 748 | 17.3k | { | 749 | 17.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 17.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 17.3k | } | 752 | 17.3k | } | 753 | | | 754 | 28.4k | if (!need_more_input_data(state)) { | 755 | 27.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 27.8k | bool new_eos = false; | 757 | 27.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 27.8k | if (new_eos) { | 759 | 10.6k | *eos = true; | 760 | 17.2k | } else if (!need_more_input_data(state)) { | 761 | 11.1k | *eos = false; | 762 | 11.1k | } | 763 | 27.8k | } | 764 | 28.4k | return Status::OK(); | 765 | 28.4k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 737 | 6.30k | bool* eos) { | 738 | 6.30k | auto& local_state = get_local_state(state); | 739 | 6.30k | if (need_more_input_data(state)) { | 740 | 5.95k | local_state._child_block->clear_column_data( | 741 | 5.95k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 742 | 5.95k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 743 | 5.95k | state, local_state._child_block.get(), &local_state._child_eos)); | 744 | 5.95k | *eos = local_state._child_eos; | 745 | 5.95k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 746 | 288 | return Status::OK(); | 747 | 288 | } | 748 | 5.67k | { | 749 | 5.67k | SCOPED_TIMER(local_state.exec_time_counter()); | 750 | 5.67k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 751 | 5.67k | } | 752 | 5.67k | } | 753 | | | 754 | 6.02k | if (!need_more_input_data(state)) { | 755 | 6.02k | SCOPED_TIMER(local_state.exec_time_counter()); | 756 | 6.02k | bool new_eos = false; | 757 | 6.02k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 758 | 6.02k | if (new_eos) { | 759 | 4.03k | *eos = true; | 760 | 4.03k | } else if (!need_more_input_data(state)) { | 761 | 366 | *eos = false; | 762 | 366 | } | 763 | 6.02k | } | 764 | 6.00k | return Status::OK(); | 765 | 6.00k | } |
|
766 | | |
767 | | template <typename Writer, typename Parent> |
768 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
769 | 69.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
770 | 69.1k | RETURN_IF_ERROR(Base::init(state, info)); |
771 | 69.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
772 | 69.1k | "AsyncWriterDependency", true); |
773 | 69.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
774 | 69.1k | _finish_dependency)); |
775 | | |
776 | 69.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
777 | 69.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
778 | 69.1k | return Status::OK(); |
779 | 69.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 510 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 510 | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 510 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 510 | "AsyncWriterDependency", true); | 773 | 510 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 510 | _finish_dependency)); | 775 | | | 776 | 510 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 510 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 510 | return Status::OK(); | 779 | 510 | } |
_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.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 47.2k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 47.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 47.2k | "AsyncWriterDependency", true); | 773 | 47.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 47.2k | _finish_dependency)); | 775 | | | 776 | 47.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 47.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 47.2k | return Status::OK(); | 779 | 47.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 9.63k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 9.63k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 9.63k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 9.63k | "AsyncWriterDependency", true); | 773 | 9.63k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 9.63k | _finish_dependency)); | 775 | | | 776 | 9.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 9.63k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 9.63k | return Status::OK(); | 779 | 9.63k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 769 | 5.07k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 5.07k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 5.07k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 5.07k | "AsyncWriterDependency", true); | 773 | 5.07k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 5.07k | _finish_dependency)); | 775 | | | 776 | 5.07k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 5.07k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 5.07k | return Status::OK(); | 779 | 5.07k | } |
_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.71k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 770 | 1.71k | RETURN_IF_ERROR(Base::init(state, info)); | 771 | 1.71k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 772 | 1.71k | "AsyncWriterDependency", true); | 773 | 1.71k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 774 | 1.71k | _finish_dependency)); | 775 | | | 776 | 1.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 777 | 1.71k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 778 | 1.71k | return Status::OK(); | 779 | 1.71k | } |
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.2k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
784 | 69.2k | RETURN_IF_ERROR(Base::open(state)); |
785 | 69.2k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
786 | 602k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
787 | 533k | RETURN_IF_ERROR( |
788 | 533k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
789 | 533k | } |
790 | 69.2k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
791 | 69.2k | return Status::OK(); |
792 | 69.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 511 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 511 | RETURN_IF_ERROR(Base::open(state)); | 785 | 511 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 2.76k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 2.25k | RETURN_IF_ERROR( | 788 | 2.25k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 2.25k | } | 790 | 511 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 511 | return Status::OK(); | 792 | 511 | } |
_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.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 47.5k | RETURN_IF_ERROR(Base::open(state)); | 785 | 47.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 343k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 296k | RETURN_IF_ERROR( | 788 | 296k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 296k | } | 790 | 47.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 47.5k | return Status::OK(); | 792 | 47.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 9.39k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 9.39k | RETURN_IF_ERROR(Base::open(state)); | 785 | 9.39k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 57.7k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 48.3k | RETURN_IF_ERROR( | 788 | 48.3k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 48.3k | } | 790 | 9.39k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 9.39k | return Status::OK(); | 792 | 9.39k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 5.06k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 5.06k | RETURN_IF_ERROR(Base::open(state)); | 785 | 5.06k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 136k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 131k | RETURN_IF_ERROR( | 788 | 131k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 131k | } | 790 | 5.06k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 5.06k | return Status::OK(); | 792 | 5.06k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 4.01k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 4.01k | RETURN_IF_ERROR(Base::open(state)); | 785 | 4.01k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 44.7k | 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 | 4.01k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 4.01k | return Status::OK(); | 792 | 4.01k | } |
_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 | 206 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 158 | RETURN_IF_ERROR( | 788 | 158 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 158 | } | 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 | 698 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 698 | RETURN_IF_ERROR(Base::open(state)); | 785 | 698 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 2.09k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 1.39k | RETURN_IF_ERROR( | 788 | 1.39k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 1.39k | } | 790 | 698 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 698 | return Status::OK(); | 792 | 698 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 783 | 1.70k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 784 | 1.70k | RETURN_IF_ERROR(Base::open(state)); | 785 | 1.70k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 786 | 13.4k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 787 | 11.7k | RETURN_IF_ERROR( | 788 | 11.7k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 789 | 11.7k | } | 790 | 1.70k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 791 | 1.70k | return Status::OK(); | 792 | 1.70k | } |
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.4k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
797 | 95.4k | return _writer->sink(block, eos); |
798 | 95.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 2.57k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 2.57k | return _writer->sink(block, eos); | 798 | 2.57k | } |
_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.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 64.6k | return _writer->sink(block, eos); | 798 | 64.6k | } |
_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.32k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 7.32k | return _writer->sink(block, eos); | 798 | 7.32k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 796 | 6.39k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 6.39k | return _writer->sink(block, eos); | 798 | 6.39k | } |
_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.16k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 797 | 2.16k | return _writer->sink(block, eos); | 798 | 2.16k | } |
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.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
803 | 69.4k | if (_closed) { |
804 | 0 | return Status::OK(); |
805 | 0 | } |
806 | 69.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
807 | 69.4k | 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.5k | if (_writer) { |
810 | 69.5k | Status st = _writer->get_writer_status(); |
811 | 69.5k | if (exec_status.ok()) { |
812 | 69.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
813 | 69.4k | : Status::Cancelled("force close")); |
814 | 69.4k | } else { |
815 | 134 | _writer->force_close(exec_status); |
816 | 134 | } |
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.5k | RETURN_IF_ERROR(st); |
821 | 69.5k | } |
822 | 69.3k | return Base::close(state, exec_status); |
823 | 69.4k | } _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.5k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 47.5k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 47.5k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 47.5k | 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.6k | if (_writer) { | 810 | 47.6k | Status st = _writer->get_writer_status(); | 811 | 47.6k | if (exec_status.ok()) { | 812 | 47.5k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 47.5k | : Status::Cancelled("force close")); | 814 | 47.5k | } else { | 815 | 48 | _writer->force_close(exec_status); | 816 | 48 | } | 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.6k | RETURN_IF_ERROR(st); | 821 | 47.6k | } | 822 | 47.5k | return Base::close(state, exec_status); | 823 | 47.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 9.55k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 9.55k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 9.55k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 9.55k | 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.62k | if (_writer) { | 810 | 9.62k | Status st = _writer->get_writer_status(); | 811 | 9.62k | if (exec_status.ok()) { | 812 | 9.54k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 9.54k | : Status::Cancelled("force close")); | 814 | 9.54k | } else { | 815 | 84 | _writer->force_close(exec_status); | 816 | 84 | } | 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.62k | RETURN_IF_ERROR(st); | 821 | 9.62k | } | 822 | 9.55k | return Base::close(state, exec_status); | 823 | 9.55k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 5.05k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 5.05k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 5.05k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 5.05k | 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.07k | if (_writer) { | 810 | 5.07k | Status st = _writer->get_writer_status(); | 811 | 5.07k | if (exec_status.ok()) { | 812 | 5.07k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 5.07k | : Status::Cancelled("force close")); | 814 | 5.07k | } 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 | 5.07k | RETURN_IF_ERROR(st); | 821 | 5.07k | } | 822 | 5.05k | return Base::close(state, exec_status); | 823 | 5.05k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 802 | 4.00k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 4.00k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 4.00k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 4.00k | 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.01k | if (_writer) { | 810 | 4.01k | Status st = _writer->get_writer_status(); | 811 | 4.01k | if (exec_status.ok()) { | 812 | 4.01k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 4.01k | : Status::Cancelled("force close")); | 814 | 4.01k | } 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 | 4.01k | RETURN_IF_ERROR(st); | 821 | 4.01k | } | 822 | 3.99k | return Base::close(state, exec_status); | 823 | 4.00k | } |
_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.71k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 803 | 1.71k | if (_closed) { | 804 | 0 | return Status::OK(); | 805 | 0 | } | 806 | 1.71k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 807 | 1.71k | 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.71k | if (_writer) { | 810 | 1.71k | Status st = _writer->get_writer_status(); | 811 | 1.71k | if (exec_status.ok()) { | 812 | 1.71k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 813 | 1.71k | : Status::Cancelled("force close")); | 814 | 1.71k | } else { | 815 | 2 | _writer->force_close(exec_status); | 816 | 2 | } | 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.71k | RETURN_IF_ERROR(st); | 821 | 1.71k | } | 822 | 1.71k | return Base::close(state, exec_status); | 823 | 1.71k | } |
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 |