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