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