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.04M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.04M | if (_parent->nereids_id() == -1) { |
120 | 1.09M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.09M | } else { |
122 | 954k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 954k | } |
124 | 2.04M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 59.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 59.8k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 59.8k | } else { | 122 | 59.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 59.8k | } | 124 | 59.8k | } |
_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 | 190k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 190k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 190k | } else { | 122 | 190k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 190k | } | 124 | 190k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 23 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 23 | } else { | 122 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 23 | } | 124 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 5.14k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 5.14k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 5.14k | } else { | 122 | 5.14k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 5.14k | } | 124 | 5.14k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 10.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 10.6k | if (_parent->nereids_id() == -1) { | 120 | 11 | return fmt::format("(id={})", _parent->node_id()); | 121 | 10.6k | } else { | 122 | 10.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 10.6k | } | 124 | 10.6k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 74.4k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 74.4k | if (_parent->nereids_id() == -1) { | 120 | 29 | return fmt::format("(id={})", _parent->node_id()); | 121 | 74.3k | } else { | 122 | 74.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 74.3k | } | 124 | 74.4k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 358 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 358 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 358 | } else { | 122 | 358 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 358 | } | 124 | 358 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 144 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 144 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 144 | } else { | 122 | 144 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 144 | } | 124 | 144 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 932k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 932k | if (_parent->nereids_id() == -1) { | 120 | 374k | return fmt::format("(id={})", _parent->node_id()); | 121 | 557k | } else { | 122 | 557k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 557k | } | 124 | 932k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 49.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 49.7k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 49.7k | } else { | 122 | 49.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 49.7k | } | 124 | 49.7k | } |
_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 | 4.75k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.76k | if (_parent->nereids_id() == -1) { | 120 | 4.76k | return fmt::format("(id={})", _parent->node_id()); | 121 | 18.4E | } else { | 122 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 18.4E | } | 124 | 4.75k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 646 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 646 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 544 | } else { | 122 | 544 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 544 | } | 124 | 646 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.87k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.87k | if (_parent->nereids_id() == -1) { | 120 | 13 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.85k | } else { | 122 | 4.85k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.85k | } | 124 | 4.87k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 713k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 713k | if (_parent->nereids_id() == -1) { | 120 | 712k | return fmt::format("(id={})", _parent->node_id()); | 121 | 712k | } else { | 122 | 308 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 308 | } | 124 | 713k | } |
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.16M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.16M | if (_parent->nereids_id() == -1) { |
129 | 766k | return fmt::format("(id={})", _parent->node_id()); |
130 | 766k | } else { |
131 | 395k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 395k | } |
133 | 1.16M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 108k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 108k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 108k | } else { | 131 | 108k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 108k | } | 133 | 108k | } |
_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 | 191k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 191k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 191k | } else { | 131 | 191k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 191k | } | 133 | 191k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 30 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 30 | } else { | 131 | 30 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 30 | } | 133 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 5.15k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 5.15k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 5.15k | } else { | 131 | 5.15k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 5.15k | } | 133 | 5.15k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 10.7k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 10.7k | if (_parent->nereids_id() == -1) { | 129 | 11 | return fmt::format("(id={})", _parent->node_id()); | 130 | 10.7k | } else { | 131 | 10.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 10.7k | } | 133 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 74.5k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 74.5k | if (_parent->nereids_id() == -1) { | 129 | 29 | return fmt::format("(id={})", _parent->node_id()); | 130 | 74.5k | } else { | 131 | 74.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 74.5k | } | 133 | 74.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 299 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 299 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 299 | } else { | 131 | 299 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 299 | } | 133 | 299 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 154 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 154 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 154 | } else { | 131 | 154 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 154 | } | 133 | 154 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 9 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 9 | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 9 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 4.05k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 4.05k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 4.05k | } else { | 131 | 4.05k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 4.05k | } | 133 | 4.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 653 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 653 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 551 | } else { | 131 | 551 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 551 | } | 133 | 653 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 11.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12.0k | if (_parent->nereids_id() == -1) { | 129 | 12.0k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 311k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 311k | if (_parent->nereids_id() == -1) { | 129 | 311k | 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 | 311k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 443k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 443k | if (_parent->nereids_id() == -1) { | 129 | 443k | return fmt::format("(id={})", _parent->node_id()); | 130 | 443k | } else { | 131 | 323 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 323 | } | 133 | 443k | } |
_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 | 26.9k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 26.9k | if (_terminated) { |
138 | 1 | return Status::OK(); |
139 | 1 | } |
140 | 26.9k | _terminated = true; |
141 | 26.9k | return Status::OK(); |
142 | 26.9k | } _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 | 975 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 975 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 975 | _terminated = true; | 141 | 975 | return Status::OK(); | 142 | 975 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_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_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1.01k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1.01k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1.01k | _terminated = true; | 141 | 1.01k | return Status::OK(); | 142 | 1.01k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2 | _terminated = true; | 141 | 2 | return Status::OK(); | 142 | 2 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 527 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 527 | if (_terminated) { | 138 | 1 | return Status::OK(); | 139 | 1 | } | 140 | 526 | _terminated = true; | 141 | 526 | return Status::OK(); | 142 | 527 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 14 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 14 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 14 | _terminated = true; | 141 | 14 | return Status::OK(); | 142 | 14 | } |
_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 | 68 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 68 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 68 | _terminated = true; | 141 | 68 | return Status::OK(); | 142 | 68 | } |
_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 | 170 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 170 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 170 | _terminated = true; | 141 | 170 | return Status::OK(); | 142 | 170 | } |
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 | 602k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 602k | return _child && _child->is_serial_operator() && !is_source() |
146 | 602k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 602k | : DataDistribution(ExchangeType::NOOP); |
148 | 602k | } |
149 | | |
150 | 9.00k | bool OperatorBase::is_hash_shuffle(ExchangeType exchange_type) { |
151 | 9.00k | return exchange_type == ExchangeType::HASH_SHUFFLE || |
152 | 9.00k | exchange_type == ExchangeType::BUCKET_HASH_SHUFFLE; |
153 | 9.00k | } |
154 | | |
155 | 100k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
156 | 100k | if (!_child) { |
157 | 34.1k | return false; |
158 | 34.1k | } |
159 | 66.5k | if (_child->is_serial_operator()) { |
160 | 56.4k | return true; |
161 | 56.4k | } |
162 | 10.0k | const auto child_distribution = _child->required_data_distribution(state); |
163 | 10.0k | return child_distribution.need_local_exchange() && |
164 | 10.0k | !is_hash_shuffle(child_distribution.distribution_type); |
165 | 66.5k | } |
166 | | |
167 | 80.7k | const RowDescriptor& OperatorBase::row_desc() const { |
168 | 80.7k | return _child->row_desc(); |
169 | 80.7k | } |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 16.6k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 16.6k | fmt::memory_buffer debug_string_buffer; |
174 | 16.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 16.6k | return fmt::to_string(debug_string_buffer); |
176 | 16.6k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 60 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 60 | fmt::memory_buffer debug_string_buffer; | 174 | 60 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 60 | return fmt::to_string(debug_string_buffer); | 176 | 60 | } |
_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 | 21 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 21 | fmt::memory_buffer debug_string_buffer; | 174 | 21 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 21 | return fmt::to_string(debug_string_buffer); | 176 | 21 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 21 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 21 | fmt::memory_buffer debug_string_buffer; | 174 | 21 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 21 | return fmt::to_string(debug_string_buffer); | 176 | 21 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 18 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 18 | fmt::memory_buffer debug_string_buffer; | 174 | 18 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 18 | return fmt::to_string(debug_string_buffer); | 176 | 18 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 16.2k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 16.2k | fmt::memory_buffer debug_string_buffer; | 174 | 16.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 16.2k | return fmt::to_string(debug_string_buffer); | 176 | 16.2k | } |
_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 | 246 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 246 | fmt::memory_buffer debug_string_buffer; | 174 | 246 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 246 | return fmt::to_string(debug_string_buffer); | 176 | 246 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | | template <typename SharedStateArg> |
179 | 16.5k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
180 | 16.5k | fmt::memory_buffer debug_string_buffer; |
181 | 16.5k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
182 | 16.5k | return fmt::to_string(debug_string_buffer); |
183 | 16.5k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 12 | fmt::memory_buffer debug_string_buffer; | 181 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 12 | return fmt::to_string(debug_string_buffer); | 183 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 21 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 21 | fmt::memory_buffer debug_string_buffer; | 181 | 21 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 21 | return fmt::to_string(debug_string_buffer); | 183 | 21 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 12 | fmt::memory_buffer debug_string_buffer; | 181 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 12 | return fmt::to_string(debug_string_buffer); | 183 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 18 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 18 | fmt::memory_buffer debug_string_buffer; | 181 | 18 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 18 | return fmt::to_string(debug_string_buffer); | 183 | 18 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 189 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 189 | fmt::memory_buffer debug_string_buffer; | 181 | 189 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 189 | return fmt::to_string(debug_string_buffer); | 183 | 189 | } |
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 | 85 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 85 | fmt::memory_buffer debug_string_buffer; | 181 | 85 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 85 | return fmt::to_string(debug_string_buffer); | 183 | 85 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 16.1k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 16.1k | fmt::memory_buffer debug_string_buffer; | 181 | 16.1k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 16.1k | return fmt::to_string(debug_string_buffer); | 183 | 16.1k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
184 | | |
185 | 16.9k | std::string OperatorXBase::debug_string(int indentation_level) const { |
186 | 16.9k | fmt::memory_buffer debug_string_buffer; |
187 | 16.9k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
188 | 16.9k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
189 | 16.9k | _is_serial_operator); |
190 | 16.9k | return fmt::to_string(debug_string_buffer); |
191 | 16.9k | } |
192 | | |
193 | 16.6k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
194 | 16.6k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
195 | 16.6k | } |
196 | | |
197 | 531k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
198 | 531k | std::string node_name = print_plan_node_type(tnode.node_type); |
199 | 531k | _nereids_id = tnode.nereids_id; |
200 | 531k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
201 | 2.90k | if (!tnode.__isset.output_tuple_id) { |
202 | 0 | return Status::InternalError("no final output tuple id"); |
203 | 0 | } |
204 | 2.90k | if (tnode.intermediate_output_tuple_id_list.size() != |
205 | 2.90k | 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 | 2.90k | } |
213 | 531k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
214 | 531k | _op_name = substr + "_OPERATOR"; |
215 | | |
216 | 531k | if (tnode.__isset.vconjunct) { |
217 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
218 | 531k | } else if (tnode.__isset.conjuncts) { |
219 | 249k | for (const auto& conjunct : tnode.conjuncts) { |
220 | 249k | VExprContextSPtr context; |
221 | 249k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
222 | 249k | _conjuncts.emplace_back(context); |
223 | 249k | } |
224 | 86.0k | } |
225 | | |
226 | | // create the projections expr |
227 | 531k | if (tnode.__isset.projections) { |
228 | 232k | DCHECK(tnode.__isset.output_tuple_id); |
229 | 232k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
230 | 232k | } |
231 | 531k | if (!tnode.intermediate_projections_list.empty()) { |
232 | 2.90k | DCHECK(tnode.__isset.projections) << "no final projections"; |
233 | 2.90k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
234 | 3.83k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
235 | 3.83k | VExprContextSPtrs projections; |
236 | 3.83k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
237 | 3.83k | _intermediate_projections.push_back(projections); |
238 | 3.83k | } |
239 | 2.90k | } |
240 | 531k | return Status::OK(); |
241 | 531k | } |
242 | | |
243 | 558k | Status OperatorXBase::prepare(RuntimeState* state) { |
244 | 558k | for (auto& conjunct : _conjuncts) { |
245 | 249k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
246 | 249k | } |
247 | 558k | if (state->enable_adjust_conjunct_order_by_cost()) { |
248 | 508k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
249 | 325k | return a->execute_cost() < b->execute_cost(); |
250 | 325k | }); |
251 | 508k | }; |
252 | | |
253 | 562k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
254 | 3.83k | RETURN_IF_ERROR( |
255 | 3.83k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
256 | 3.83k | } |
257 | 558k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
258 | | |
259 | 558k | if (has_output_row_desc()) { |
260 | 232k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
261 | 232k | } |
262 | | |
263 | 558k | for (auto& conjunct : _conjuncts) { |
264 | 249k | RETURN_IF_ERROR(conjunct->open(state)); |
265 | 249k | } |
266 | 558k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
267 | 558k | for (auto& projections : _intermediate_projections) { |
268 | 3.83k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
269 | 3.83k | } |
270 | 558k | if (_child && !is_source()) { |
271 | 128k | RETURN_IF_ERROR(_child->prepare(state)); |
272 | 128k | } |
273 | | |
274 | 558k | if (VExpr::contains_blockable_function(_conjuncts) || |
275 | 558k | VExpr::contains_blockable_function(_projections)) { |
276 | 0 | _blockable = true; |
277 | 0 | } |
278 | | |
279 | 558k | return Status::OK(); |
280 | 558k | } |
281 | | |
282 | 3.49k | Status OperatorXBase::terminate(RuntimeState* state) { |
283 | 3.49k | if (_child && !is_source()) { |
284 | 539 | RETURN_IF_ERROR(_child->terminate(state)); |
285 | 539 | } |
286 | 3.49k | auto result = state->get_local_state_result(operator_id()); |
287 | 3.49k | if (!result) { |
288 | 0 | return result.error(); |
289 | 0 | } |
290 | 3.49k | return result.value()->terminate(state); |
291 | 3.49k | } |
292 | | |
293 | 5.71M | Status OperatorXBase::close(RuntimeState* state) { |
294 | 5.71M | if (_child && !is_source()) { |
295 | 1.22M | RETURN_IF_ERROR(_child->close(state)); |
296 | 1.22M | } |
297 | 5.71M | auto result = state->get_local_state_result(operator_id()); |
298 | 5.71M | if (!result) { |
299 | 0 | return result.error(); |
300 | 0 | } |
301 | 5.71M | return result.value()->close(state); |
302 | 5.71M | } |
303 | | |
304 | 240k | void PipelineXLocalStateBase::clear_origin_block() { |
305 | 240k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
306 | 240k | } |
307 | | |
308 | 595k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
309 | 595k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
310 | | |
311 | 595k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
312 | 595k | return Status::OK(); |
313 | 595k | } |
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 | 241k | Block* output_block) const { |
322 | 241k | auto* local_state = state->get_local_state(operator_id()); |
323 | 241k | SCOPED_TIMER(local_state->exec_time_counter()); |
324 | 241k | SCOPED_TIMER(local_state->_projection_timer); |
325 | 241k | const size_t rows = origin_block->rows(); |
326 | 241k | if (rows == 0) { |
327 | 129k | return Status::OK(); |
328 | 129k | } |
329 | 111k | Block input_block = *origin_block; |
330 | | |
331 | 111k | size_t bytes_usage = 0; |
332 | 111k | ColumnsWithTypeAndName new_columns; |
333 | 111k | for (const auto& projections : local_state->_intermediate_projections) { |
334 | 956 | if (projections.empty()) { |
335 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
336 | 0 | node_id()); |
337 | 0 | } |
338 | 956 | new_columns.resize(projections.size()); |
339 | 6.05k | for (int i = 0; i < projections.size(); i++) { |
340 | 5.10k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
341 | 5.10k | 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 | 5.10k | } |
349 | 956 | Block tmp_block {new_columns}; |
350 | 956 | bytes_usage += tmp_block.allocated_bytes(); |
351 | 956 | input_block.swap(tmp_block); |
352 | 956 | } |
353 | | |
354 | 111k | 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 | 530k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
361 | 530k | 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 | 530k | } else { |
371 | 530k | if (_keep_origin || !from->is_exclusive()) { |
372 | 522k | to->insert_range_from(*from, 0, rows); |
373 | 522k | bytes_usage += from->allocated_bytes(); |
374 | 522k | } else { |
375 | 8.51k | to = from->assert_mutable(); |
376 | 8.51k | } |
377 | 530k | } |
378 | 530k | }; |
379 | | |
380 | 111k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
381 | 111k | output_block, *_output_row_descriptor); |
382 | 111k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
383 | 111k | auto& mutable_columns = mutable_block.mutable_columns(); |
384 | 111k | if (rows != 0) { |
385 | 111k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
386 | 642k | for (int i = 0; i < mutable_columns.size(); ++i) { |
387 | 531k | ColumnPtr column_ptr; |
388 | 531k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
389 | 531k | 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 | 531k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
396 | 531k | bytes_usage += column_ptr->allocated_bytes(); |
397 | 531k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
398 | 531k | } |
399 | 111k | DCHECK(mutable_block.rows() == rows); |
400 | 111k | } |
401 | 111k | local_state->_estimate_memory_usage += bytes_usage; |
402 | | |
403 | 111k | return Status::OK(); |
404 | 111k | } |
405 | | |
406 | 4.12M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
407 | 4.12M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
408 | 4.12M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
409 | 4.12M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
410 | 4.12M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
411 | 4.12M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
412 | 4.12M | if (_debug_point_count++ % 2 == 0) { |
413 | 4.12M | return Status::OK(); |
414 | 4.12M | } |
415 | 4.12M | } |
416 | 4.12M | }); |
417 | | |
418 | 4.12M | Status status; |
419 | 4.12M | auto* local_state = state->get_local_state(operator_id()); |
420 | 4.12M | Defer defer([&]() { |
421 | 4.12M | if (status.ok()) { |
422 | 4.12M | local_state->update_output_block_counters(*block); |
423 | 4.12M | } |
424 | 4.12M | }); |
425 | 4.12M | if (_output_row_descriptor) { |
426 | 240k | local_state->clear_origin_block(); |
427 | 240k | status = get_block(state, &local_state->_origin_block, eos); |
428 | 240k | if (UNLIKELY(!status.ok())) { |
429 | 19 | return status; |
430 | 19 | } |
431 | 240k | status = do_projections(state, &local_state->_origin_block, block); |
432 | 240k | return status; |
433 | 240k | } |
434 | 3.88M | status = get_block(state, block, eos); |
435 | 3.88M | RETURN_IF_ERROR(block->check_type_and_column()); |
436 | 3.88M | return status; |
437 | 3.88M | } |
438 | | |
439 | 2.35M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
440 | 2.35M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
441 | 4.61k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
442 | 4.61k | *eos = true; |
443 | 4.61k | } |
444 | | |
445 | 2.35M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
446 | 2.35M | auto op_name = to_lower(_parent->_op_name); |
447 | 2.35M | auto arg_op_name = dp->param<std::string>("op_name"); |
448 | 2.35M | arg_op_name = to_lower(arg_op_name); |
449 | | |
450 | 2.35M | if (op_name == arg_op_name) { |
451 | 2.35M | *eos = true; |
452 | 2.35M | } |
453 | 2.35M | }); |
454 | | |
455 | 2.35M | if (auto rows = block->rows()) { |
456 | 644k | _num_rows_returned += rows; |
457 | 644k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
458 | 644k | } |
459 | 2.35M | } |
460 | | |
461 | 26.9k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
462 | 26.9k | auto result = state->get_sink_local_state_result(); |
463 | 26.9k | if (!result) { |
464 | 0 | return result.error(); |
465 | 0 | } |
466 | 26.9k | return result.value()->terminate(state); |
467 | 26.9k | } |
468 | | |
469 | 16.8k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
470 | 16.8k | fmt::memory_buffer debug_string_buffer; |
471 | | |
472 | 16.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
473 | 16.8k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
474 | 16.8k | return fmt::to_string(debug_string_buffer); |
475 | 16.8k | } |
476 | | |
477 | 16.5k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
478 | 16.5k | return state->get_sink_local_state()->debug_string(indentation_level); |
479 | 16.5k | } |
480 | | |
481 | 327k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
482 | 327k | std::string op_name = "UNKNOWN_SINK"; |
483 | 327k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
484 | | |
485 | 327k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
486 | 326k | op_name = it->second; |
487 | 326k | } |
488 | 327k | _name = op_name + "_OPERATOR"; |
489 | 327k | return Status::OK(); |
490 | 327k | } |
491 | | |
492 | 149k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
493 | 149k | std::string op_name = print_plan_node_type(tnode.node_type); |
494 | 149k | _nereids_id = tnode.nereids_id; |
495 | 149k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
496 | 149k | _name = substr + "_SINK_OPERATOR"; |
497 | 149k | return Status::OK(); |
498 | 149k | } |
499 | | |
500 | | template <typename LocalStateType> |
501 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
502 | 1.73M | LocalSinkStateInfo& info) { |
503 | 1.73M | auto local_state = LocalStateType::create_unique(this, state); |
504 | 1.73M | RETURN_IF_ERROR(local_state->init(state, info)); |
505 | 1.73M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
506 | 1.73M | return Status::OK(); |
507 | 1.73M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 108k | LocalSinkStateInfo& info) { | 503 | 108k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 108k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 108k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 108k | return Status::OK(); | 507 | 108k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 401k | LocalSinkStateInfo& info) { | 503 | 401k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 401k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 401k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 401k | return Status::OK(); | 507 | 401k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _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 | 309 | LocalSinkStateInfo& info) { | 503 | 309 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 309 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 309 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 309 | return Status::OK(); | 507 | 309 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 41.5k | LocalSinkStateInfo& info) { | 503 | 41.5k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 41.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 41.5k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 41.5k | return Status::OK(); | 507 | 41.5k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 63 | LocalSinkStateInfo& info) { | 503 | 63 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 63 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 63 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 63 | return Status::OK(); | 507 | 63 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 10.7k | LocalSinkStateInfo& info) { | 503 | 10.7k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 10.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 10.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 10.7k | return Status::OK(); | 507 | 10.7k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 6 | LocalSinkStateInfo& info) { | 503 | 6 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 6 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 6 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 6 | return Status::OK(); | 507 | 6 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 191k | LocalSinkStateInfo& info) { | 503 | 191k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 191k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 191k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 191k | return Status::OK(); | 507 | 191k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 30 | LocalSinkStateInfo& info) { | 503 | 30 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 30 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 30 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 30 | return Status::OK(); | 507 | 30 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 311k | LocalSinkStateInfo& info) { | 503 | 311k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 311k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 311k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 311k | return Status::OK(); | 507 | 311k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 74.5k | LocalSinkStateInfo& info) { | 503 | 74.5k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 74.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 74.5k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 74.5k | return Status::OK(); | 507 | 74.5k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 299 | LocalSinkStateInfo& info) { | 503 | 299 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 299 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 299 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 299 | return Status::OK(); | 507 | 299 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 154 | LocalSinkStateInfo& info) { | 503 | 154 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 154 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 154 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 154 | return Status::OK(); | 507 | 154 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 569k | LocalSinkStateInfo& info) { | 503 | 569k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 569k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 569k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 569k | return Status::OK(); | 507 | 569k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 5.16k | LocalSinkStateInfo& info) { | 503 | 5.16k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 5.16k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 5.16k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 5.16k | return Status::OK(); | 507 | 5.16k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 4.05k | LocalSinkStateInfo& info) { | 503 | 4.05k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 4.05k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 4.05k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 4.05k | return Status::OK(); | 507 | 4.05k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 1.98k | LocalSinkStateInfo& info) { | 503 | 1.98k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 1.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 1.98k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 1.98k | return Status::OK(); | 507 | 1.98k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 551 | LocalSinkStateInfo& info) { | 503 | 551 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 551 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 551 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 551 | return Status::OK(); | 507 | 551 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 4.58k | LocalSinkStateInfo& info) { | 503 | 4.58k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 4.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 4.58k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 4.58k | return Status::OK(); | 507 | 4.58k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.49k | LocalSinkStateInfo& info) { | 503 | 2.49k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.49k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.49k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.49k | return Status::OK(); | 507 | 2.49k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.39k | LocalSinkStateInfo& info) { | 503 | 2.39k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.39k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.39k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.39k | return Status::OK(); | 507 | 2.39k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_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_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 | 161 | LocalSinkStateInfo& info) { | 503 | 161 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 161 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 161 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 161 | return Status::OK(); | 507 | 161 | } |
_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 | 105 | LocalSinkStateInfo& info) { | 503 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 105 | return Status::OK(); | 507 | 105 | } |
_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.39M | 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.39M | } else { |
518 | 1.39M | auto ss = LocalStateType::SharedStateType::create_shared(); |
519 | 1.39M | ss->id = operator_id(); |
520 | 1.39M | for (auto& dest : dests_id()) { |
521 | 1.39M | ss->related_op_ids.insert(dest); |
522 | 1.39M | } |
523 | 1.39M | return ss; |
524 | 1.39M | } |
525 | 1.39M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 92.8k | 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 | 92.8k | } else { | 518 | 92.8k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 92.8k | ss->id = operator_id(); | 520 | 92.8k | for (auto& dest : dests_id()) { | 521 | 92.7k | ss->related_op_ids.insert(dest); | 522 | 92.7k | } | 523 | 92.8k | return ss; | 524 | 92.8k | } | 525 | 92.8k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 402k | 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 | 402k | } else { | 518 | 402k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 402k | ss->id = operator_id(); | 520 | 402k | for (auto& dest : dests_id()) { | 521 | 401k | ss->related_op_ids.insert(dest); | 522 | 401k | } | 523 | 402k | return ss; | 524 | 402k | } | 525 | 402k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv _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 | 309 | 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 | 309 | } else { | 518 | 309 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 309 | ss->id = operator_id(); | 520 | 309 | for (auto& dest : dests_id()) { | 521 | 309 | ss->related_op_ids.insert(dest); | 522 | 309 | } | 523 | 309 | return ss; | 524 | 309 | } | 525 | 309 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 41.5k | 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 | 41.5k | } else { | 518 | 41.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 41.5k | ss->id = operator_id(); | 520 | 41.5k | for (auto& dest : dests_id()) { | 521 | 41.4k | ss->related_op_ids.insert(dest); | 522 | 41.4k | } | 523 | 41.5k | return ss; | 524 | 41.5k | } | 525 | 41.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 63 | 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 | 63 | } else { | 518 | 63 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 63 | ss->id = operator_id(); | 520 | 63 | for (auto& dest : dests_id()) { | 521 | 63 | ss->related_op_ids.insert(dest); | 522 | 63 | } | 523 | 63 | return ss; | 524 | 63 | } | 525 | 63 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 10.7k | 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 | 10.7k | } else { | 518 | 10.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 10.7k | ss->id = operator_id(); | 520 | 10.7k | for (auto& dest : dests_id()) { | 521 | 10.7k | ss->related_op_ids.insert(dest); | 522 | 10.7k | } | 523 | 10.7k | return ss; | 524 | 10.7k | } | 525 | 10.7k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 6 | 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 | 6 | } else { | 518 | 6 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 6 | ss->id = operator_id(); | 520 | 6 | for (auto& dest : dests_id()) { | 521 | 6 | ss->related_op_ids.insert(dest); | 522 | 6 | } | 523 | 6 | return ss; | 524 | 6 | } | 525 | 6 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 191k | 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 | 191k | } else { | 518 | 191k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 191k | ss->id = operator_id(); | 520 | 191k | for (auto& dest : dests_id()) { | 521 | 191k | ss->related_op_ids.insert(dest); | 522 | 191k | } | 523 | 191k | return ss; | 524 | 191k | } | 525 | 191k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 32 | 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 | 32 | } else { | 518 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 32 | ss->id = operator_id(); | 520 | 32 | for (auto& dest : dests_id()) { | 521 | 32 | ss->related_op_ids.insert(dest); | 522 | 32 | } | 523 | 32 | return ss; | 524 | 32 | } | 525 | 32 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 74.7k | 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 | 74.7k | } else { | 518 | 74.7k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 74.7k | ss->id = operator_id(); | 520 | 74.7k | for (auto& dest : dests_id()) { | 521 | 74.6k | ss->related_op_ids.insert(dest); | 522 | 74.6k | } | 523 | 74.7k | return ss; | 524 | 74.7k | } | 525 | 74.7k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 153 | 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 | 153 | } else { | 518 | 153 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 153 | ss->id = operator_id(); | 520 | 153 | for (auto& dest : dests_id()) { | 521 | 153 | ss->related_op_ids.insert(dest); | 522 | 153 | } | 523 | 153 | return ss; | 524 | 153 | } | 525 | 153 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 568k | 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 | 568k | } else { | 518 | 568k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 568k | ss->id = operator_id(); | 520 | 568k | for (auto& dest : dests_id()) { | 521 | 567k | ss->related_op_ids.insert(dest); | 522 | 567k | } | 523 | 568k | return ss; | 524 | 568k | } | 525 | 568k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 5.16k | 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.16k | } else { | 518 | 5.16k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 5.16k | ss->id = operator_id(); | 520 | 5.16k | for (auto& dest : dests_id()) { | 521 | 5.16k | ss->related_op_ids.insert(dest); | 522 | 5.16k | } | 523 | 5.16k | return ss; | 524 | 5.16k | } | 525 | 5.16k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 655 | 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 | 655 | } else { | 518 | 655 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 655 | ss->id = operator_id(); | 520 | 655 | for (auto& dest : dests_id()) { | 521 | 655 | ss->related_op_ids.insert(dest); | 522 | 655 | } | 523 | 655 | return ss; | 524 | 655 | } | 525 | 655 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 510 | 2.39k | 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.39k | } else { | 518 | 2.39k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 2.39k | ss->id = operator_id(); | 520 | 2.39k | for (auto& dest : dests_id()) { | 521 | 2.39k | ss->related_op_ids.insert(dest); | 522 | 2.39k | } | 523 | 2.39k | return ss; | 524 | 2.39k | } | 525 | 2.39k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_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.43k | ss->related_op_ids.insert(dest); | 522 | 2.43k | } | 523 | 2.44k | return ss; | 524 | 2.44k | } | 525 | 2.44k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 161 | 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 | 161 | } else { | 518 | 161 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 161 | ss->id = operator_id(); | 520 | 161 | for (auto& dest : dests_id()) { | 521 | 161 | ss->related_op_ids.insert(dest); | 522 | 161 | } | 523 | 161 | return ss; | 524 | 161 | } | 525 | 161 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 105 | 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 | 105 | } else { | 518 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 105 | ss->id = operator_id(); | 520 | 105 | for (auto& dest : dests_id()) { | 521 | 105 | ss->related_op_ids.insert(dest); | 522 | 105 | } | 523 | 105 | return ss; | 524 | 105 | } | 525 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
526 | | |
527 | | template <typename LocalStateType> |
528 | 2.27M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
529 | 2.27M | auto local_state = LocalStateType::create_unique(state, this); |
530 | 2.27M | RETURN_IF_ERROR(local_state->init(state, info)); |
531 | 2.27M | state->emplace_local_state(operator_id(), std::move(local_state)); |
532 | 2.27M | return Status::OK(); |
533 | 2.27M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 59.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 59.9k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 59.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 59.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 59.9k | return Status::OK(); | 533 | 59.9k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 221k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 221k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 221k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 221k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 221k | return Status::OK(); | 533 | 221k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 74 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 74 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 74 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 74 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 74 | return Status::OK(); | 533 | 74 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.60k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.60k | return Status::OK(); | 533 | 2.60k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 10.6k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 10.6k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 10.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 10.6k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 10.6k | return Status::OK(); | 533 | 10.6k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 10.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 10.8k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 10.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 10.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 10.8k | return Status::OK(); | 533 | 10.8k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 23 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 23 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 23 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 23 | return Status::OK(); | 533 | 23 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 179k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 179k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 179k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 179k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 179k | return Status::OK(); | 533 | 179k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 74.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 74.3k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 74.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 74.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 74.3k | return Status::OK(); | 533 | 74.3k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 359 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 359 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 359 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 359 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 359 | return Status::OK(); | 533 | 359 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 144 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 144 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 144 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 144 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 144 | return Status::OK(); | 533 | 144 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 3.83k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 3.83k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 3.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 3.83k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 3.83k | return Status::OK(); | 533 | 3.83k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 375k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 375k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 375k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 375k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 375k | return Status::OK(); | 533 | 375k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.06k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.06k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.06k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.06k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.06k | return Status::OK(); | 533 | 1.06k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 5.15k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 5.15k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 5.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 5.15k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 5.15k | return Status::OK(); | 533 | 5.15k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 21 | return Status::OK(); | 533 | 21 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.43k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.43k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.43k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.43k | return Status::OK(); | 533 | 1.43k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 49.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 49.8k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 49.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 49.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 49.8k | return Status::OK(); | 533 | 49.8k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 4.76k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 4.76k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 4.76k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 4.76k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 4.76k | return Status::OK(); | 533 | 4.76k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 546 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 546 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 546 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 546 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 546 | return Status::OK(); | 533 | 546 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.40k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.40k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.40k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.40k | return Status::OK(); | 533 | 2.40k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.45k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.45k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.45k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.45k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.45k | return Status::OK(); | 533 | 2.45k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 275 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 275 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 275 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 275 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 275 | return Status::OK(); | 533 | 275 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.54k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.54k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.54k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.54k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.54k | return Status::OK(); | 533 | 1.54k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 5.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 5.66k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 5.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 5.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 5.66k | return Status::OK(); | 533 | 5.66k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 714k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 714k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 714k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 714k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 714k | return Status::OK(); | 533 | 714k | } |
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 | 633 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 633 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 633 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 633 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 633 | return Status::OK(); | 533 | 633 | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 883 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 883 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 883 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 883 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 883 | return Status::OK(); | 533 | 883 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 5.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 5.42k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 5.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 5.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 5.42k | return Status::OK(); | 533 | 5.42k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 537k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 537k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 537k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 537k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 537k | return Status::OK(); | 533 | 537k | } |
|
534 | | |
535 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
536 | | RuntimeState* state) |
537 | 1.73M | : _parent(parent), _state(state) {} |
538 | | |
539 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
540 | 2.27M | : _num_rows_returned(0), |
541 | 2.27M | _rows_returned_counter(nullptr), |
542 | 2.27M | _parent(parent), |
543 | 2.27M | _state(state), |
544 | 2.27M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
545 | | |
546 | | template <typename SharedStateArg> |
547 | 2.28M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
548 | 2.28M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
549 | 2.28M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
550 | 2.28M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
551 | 2.28M | _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.28M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
555 | 2.28M | _operator_profile->add_child(_common_profile.get(), true); |
556 | 2.28M | _operator_profile->add_child(_custom_profile.get(), true); |
557 | 2.28M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
558 | 2.28M | if constexpr (!is_fake_shared) { |
559 | 1.12M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
560 | 727k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
561 | 727k | .first.get() |
562 | 727k | ->template cast<SharedStateArg>(); |
563 | | |
564 | 727k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
565 | 727k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
566 | 727k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
567 | 727k | } else if (info.shared_state) { |
568 | 332k | 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 | 332k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
573 | | |
574 | 332k | _dependency = _shared_state->create_source_dependency( |
575 | 332k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
576 | 332k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
577 | 332k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
578 | 332k | } else { |
579 | 60.8k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
580 | 5.35k | DCHECK(false); |
581 | 5.35k | } |
582 | 60.8k | } |
583 | 1.12M | } |
584 | | |
585 | 2.28M | 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.28M | _rows_returned_counter = |
590 | 2.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
591 | 2.28M | _blocks_returned_counter = |
592 | 2.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
593 | 2.28M | _output_block_bytes_counter = |
594 | 2.28M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
595 | 2.28M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
596 | 2.28M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
597 | 2.28M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
598 | 2.28M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
599 | 2.28M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
600 | 2.28M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
601 | 2.28M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
602 | 2.28M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
603 | 2.28M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
604 | 2.28M | _memory_used_counter = |
605 | 2.28M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
606 | 2.28M | _common_profile->add_info_string("IsColocate", |
607 | 2.28M | std::to_string(_parent->is_colocated_operator())); |
608 | 2.28M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
609 | 2.28M | _common_profile->add_info_string("FollowedByShuffledOperator", |
610 | 2.28M | std::to_string(_parent->followed_by_shuffled_operator())); |
611 | 2.28M | return Status::OK(); |
612 | 2.28M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 60.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 60.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 60.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 60.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 60.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 | 60.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 60.1k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 60.1k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 60.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 60.1k | if constexpr (!is_fake_shared) { | 559 | 60.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 14.9k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 14.9k | .first.get() | 562 | 14.9k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 14.9k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 14.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 14.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 45.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 | 44.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 44.4k | _dependency = _shared_state->create_source_dependency( | 575 | 44.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 44.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 44.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 44.4k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 819 | } | 583 | 60.1k | } | 584 | | | 585 | 60.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 | 60.1k | _rows_returned_counter = | 590 | 60.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 60.1k | _blocks_returned_counter = | 592 | 60.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 60.1k | _output_block_bytes_counter = | 594 | 60.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 60.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 60.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 60.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 60.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 60.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 60.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 60.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 60.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 60.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 60.1k | _memory_used_counter = | 605 | 60.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 60.1k | _common_profile->add_info_string("IsColocate", | 607 | 60.1k | std::to_string(_parent->is_colocated_operator())); | 608 | 60.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 60.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 60.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 60.1k | return Status::OK(); | 612 | 60.1k | } |
_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 | 191k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 191k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 191k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 191k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 191k | _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 | 191k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 191k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 191k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 191k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 191k | if constexpr (!is_fake_shared) { | 559 | 191k | 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 | 191k | } 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 | 186k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 186k | _dependency = _shared_state->create_source_dependency( | 575 | 186k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 186k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 186k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 186k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 5.37k | } | 583 | 191k | } | 584 | | | 585 | 191k | 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 | 191k | _rows_returned_counter = | 590 | 191k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 191k | _blocks_returned_counter = | 592 | 191k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 191k | _output_block_bytes_counter = | 594 | 191k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 191k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 191k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 191k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 191k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 191k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 191k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 191k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 191k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 191k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 191k | _memory_used_counter = | 605 | 191k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 191k | _common_profile->add_info_string("IsColocate", | 607 | 191k | std::to_string(_parent->is_colocated_operator())); | 608 | 191k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 191k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 191k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 191k | return Status::OK(); | 612 | 191k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 23 | _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 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 23 | if constexpr (!is_fake_shared) { | 559 | 23 | 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 | 23 | } 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 | 23 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 23 | _dependency = _shared_state->create_source_dependency( | 575 | 23 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 23 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 23 | } | 584 | | | 585 | 23 | 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 | 23 | _rows_returned_counter = | 590 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 23 | _blocks_returned_counter = | 592 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 23 | _output_block_bytes_counter = | 594 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 23 | _memory_used_counter = | 605 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 23 | _common_profile->add_info_string("IsColocate", | 607 | 23 | std::to_string(_parent->is_colocated_operator())); | 608 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 23 | return Status::OK(); | 612 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 5.15k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 5.15k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 5.15k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 5.15k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 5.15k | _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 | 5.15k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 5.15k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 5.15k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 5.15k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 5.15k | if constexpr (!is_fake_shared) { | 559 | 5.15k | 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 | 5.15k | } 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 | 5.14k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 5.14k | _dependency = _shared_state->create_source_dependency( | 575 | 5.14k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 5.14k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 5.14k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 5.14k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 15 | } | 583 | 5.15k | } | 584 | | | 585 | 5.15k | 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 | 5.15k | _rows_returned_counter = | 590 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 5.15k | _blocks_returned_counter = | 592 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 5.15k | _output_block_bytes_counter = | 594 | 5.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 5.15k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 5.15k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 5.15k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 5.15k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 5.15k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 5.15k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 5.15k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 5.15k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 5.15k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 5.15k | _memory_used_counter = | 605 | 5.15k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 5.15k | _common_profile->add_info_string("IsColocate", | 607 | 5.15k | std::to_string(_parent->is_colocated_operator())); | 608 | 5.15k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 5.15k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 5.15k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 5.15k | return Status::OK(); | 612 | 5.15k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 10.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 10.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 10.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 10.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 10.7k | _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.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 10.7k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 10.7k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 10.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 10.7k | if constexpr (!is_fake_shared) { | 559 | 10.7k | 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.7k | } 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.6k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 10.6k | _dependency = _shared_state->create_source_dependency( | 575 | 10.6k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 10.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 10.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 10.6k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 93 | } | 583 | 10.7k | } | 584 | | | 585 | 10.7k | 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.7k | _rows_returned_counter = | 590 | 10.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 10.7k | _blocks_returned_counter = | 592 | 10.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 10.7k | _output_block_bytes_counter = | 594 | 10.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 10.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 10.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 10.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 10.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 10.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 10.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 10.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 10.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 10.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 10.7k | _memory_used_counter = | 605 | 10.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 10.7k | _common_profile->add_info_string("IsColocate", | 607 | 10.7k | std::to_string(_parent->is_colocated_operator())); | 608 | 10.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 10.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 10.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 10.7k | return Status::OK(); | 612 | 10.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 74.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 74.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 74.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 74.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 74.6k | _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 | 74.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 74.6k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 74.6k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 74.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 74.6k | if constexpr (!is_fake_shared) { | 559 | 74.6k | 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 | 74.6k | } 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 | 73.3k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 73.3k | _dependency = _shared_state->create_source_dependency( | 575 | 73.3k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 73.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 73.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 73.3k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 1.29k | } | 583 | 74.6k | } | 584 | | | 585 | 74.6k | 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 | 74.6k | _rows_returned_counter = | 590 | 74.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 74.6k | _blocks_returned_counter = | 592 | 74.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 74.6k | _output_block_bytes_counter = | 594 | 74.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 74.6k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 74.6k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 74.6k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 74.6k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 74.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 74.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 74.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 74.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 74.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 74.6k | _memory_used_counter = | 605 | 74.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 74.6k | _common_profile->add_info_string("IsColocate", | 607 | 74.6k | std::to_string(_parent->is_colocated_operator())); | 608 | 74.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 74.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 74.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 74.6k | return Status::OK(); | 612 | 74.6k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 359 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 359 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 359 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 359 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 359 | _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 | 359 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 359 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 359 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 359 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 359 | if constexpr (!is_fake_shared) { | 559 | 359 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 357 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 357 | .first.get() | 562 | 357 | ->template cast<SharedStateArg>(); | 563 | | | 564 | 357 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 357 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 357 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 357 | } 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 | 359 | } | 584 | | | 585 | 359 | 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 | 359 | _rows_returned_counter = | 590 | 359 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 359 | _blocks_returned_counter = | 592 | 359 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 359 | _output_block_bytes_counter = | 594 | 359 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 359 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 359 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 359 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 359 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 359 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 359 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 359 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 359 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 359 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 359 | _memory_used_counter = | 605 | 359 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 359 | _common_profile->add_info_string("IsColocate", | 607 | 359 | std::to_string(_parent->is_colocated_operator())); | 608 | 359 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 359 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 359 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 359 | return Status::OK(); | 612 | 359 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 144 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 144 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 144 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 144 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 144 | _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 | 144 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 144 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 144 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 144 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 144 | if constexpr (!is_fake_shared) { | 559 | 144 | 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 | 144 | } 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 | 144 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 144 | _dependency = _shared_state->create_source_dependency( | 575 | 144 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 144 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 144 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 144 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 144 | } | 584 | | | 585 | 144 | 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 | 144 | _rows_returned_counter = | 590 | 144 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 144 | _blocks_returned_counter = | 592 | 144 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 144 | _output_block_bytes_counter = | 594 | 144 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 144 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 144 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 144 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 144 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 144 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 144 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 144 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 144 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 144 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 144 | _memory_used_counter = | 605 | 144 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 144 | _common_profile->add_info_string("IsColocate", | 607 | 144 | std::to_string(_parent->is_colocated_operator())); | 608 | 144 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 144 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 144 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 144 | return Status::OK(); | 612 | 144 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 1.15M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 1.15M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 1.15M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 1.15M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 1.15M | _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.15M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 1.15M | _operator_profile->add_child(_common_profile.get(), true); | 556 | 1.15M | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 1.15M | 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.15M | 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.15M | _rows_returned_counter = | 590 | 1.15M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 1.15M | _blocks_returned_counter = | 592 | 1.15M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 1.15M | _output_block_bytes_counter = | 594 | 1.15M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 1.15M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 1.15M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 1.15M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 1.15M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 1.15M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 1.15M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 1.15M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 1.15M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 1.15M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 1.15M | _memory_used_counter = | 605 | 1.15M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 1.15M | _common_profile->add_info_string("IsColocate", | 607 | 1.15M | std::to_string(_parent->is_colocated_operator())); | 608 | 1.15M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 1.15M | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 1.15M | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 1.15M | return Status::OK(); | 612 | 1.15M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 49.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 49.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 49.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 49.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 49.7k | _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 | 49.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 49.7k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 49.7k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 49.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 49.7k | if constexpr (!is_fake_shared) { | 559 | 49.7k | 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 | 49.7k | } 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.90k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 1.90k | _dependency = _shared_state->create_source_dependency( | 575 | 1.90k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 1.90k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 1.90k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 47.8k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 47.8k | } | 583 | 49.7k | } | 584 | | | 585 | 49.7k | 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 | 49.7k | _rows_returned_counter = | 590 | 49.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 49.7k | _blocks_returned_counter = | 592 | 49.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 49.7k | _output_block_bytes_counter = | 594 | 49.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 49.7k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 49.7k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 49.7k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 49.7k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 49.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 49.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 49.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 49.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 49.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 49.7k | _memory_used_counter = | 605 | 49.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 49.7k | _common_profile->add_info_string("IsColocate", | 607 | 49.7k | std::to_string(_parent->is_colocated_operator())); | 608 | 49.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 49.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 49.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 49.7k | return Status::OK(); | 612 | 49.7k | } |
_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 | 4.76k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 4.76k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 4.76k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 4.76k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 4.76k | _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.76k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 4.76k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 4.76k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 4.76k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 4.76k | if constexpr (!is_fake_shared) { | 559 | 4.76k | 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.76k | } 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.75k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 4.75k | _dependency = _shared_state->create_source_dependency( | 575 | 4.75k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 4.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 4.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 4.75k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 7 | } | 583 | 4.76k | } | 584 | | | 585 | 4.76k | 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.76k | _rows_returned_counter = | 590 | 4.76k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 4.76k | _blocks_returned_counter = | 592 | 4.76k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 4.76k | _output_block_bytes_counter = | 594 | 4.76k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 4.76k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 4.76k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 4.76k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 4.76k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 4.76k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 4.76k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 4.76k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 4.76k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 4.76k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 4.76k | _memory_used_counter = | 605 | 4.76k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 4.76k | _common_profile->add_info_string("IsColocate", | 607 | 4.76k | std::to_string(_parent->is_colocated_operator())); | 608 | 4.76k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 4.76k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 4.76k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 4.76k | return Status::OK(); | 612 | 4.76k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 655 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 655 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 655 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 655 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 655 | _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 | 655 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 655 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 655 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 655 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 655 | if constexpr (!is_fake_shared) { | 559 | 655 | 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 | 655 | } 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 | 655 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 655 | _dependency = _shared_state->create_source_dependency( | 575 | 655 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 655 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 655 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 655 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 655 | } | 584 | | | 585 | 655 | 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 | 655 | _rows_returned_counter = | 590 | 655 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 655 | _blocks_returned_counter = | 592 | 655 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 655 | _output_block_bytes_counter = | 594 | 655 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 655 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 655 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 655 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 655 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 655 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 655 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 655 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 655 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 655 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 655 | _memory_used_counter = | 605 | 655 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 655 | _common_profile->add_info_string("IsColocate", | 607 | 655 | std::to_string(_parent->is_colocated_operator())); | 608 | 655 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 655 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 655 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 655 | return Status::OK(); | 612 | 655 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 4.87k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 4.87k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 4.87k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 4.87k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 4.87k | _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.87k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 4.87k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 4.87k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 4.87k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 4.87k | if constexpr (!is_fake_shared) { | 559 | 4.87k | 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.87k | } 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.85k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 4.85k | _dependency = _shared_state->create_source_dependency( | 575 | 4.85k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 4.85k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 4.85k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 4.85k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 19 | } | 583 | 4.87k | } | 584 | | | 585 | 4.87k | 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.87k | _rows_returned_counter = | 590 | 4.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 4.87k | _blocks_returned_counter = | 592 | 4.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 4.87k | _output_block_bytes_counter = | 594 | 4.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 4.87k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 4.87k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 4.87k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 4.87k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 4.87k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 4.87k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 4.87k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 4.87k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 4.87k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 4.87k | _memory_used_counter = | 605 | 4.87k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 4.87k | _common_profile->add_info_string("IsColocate", | 607 | 4.87k | std::to_string(_parent->is_colocated_operator())); | 608 | 4.87k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 4.87k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 4.87k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 4.87k | return Status::OK(); | 612 | 4.87k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 717k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 717k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 717k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 717k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 717k | _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 | 717k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 717k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 717k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 717k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 717k | if constexpr (!is_fake_shared) { | 559 | 717k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 712k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 712k | .first.get() | 562 | 712k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 712k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 712k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 712k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 712k | } 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 | 5.35k | } else { | 579 | 5.35k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | 5.35k | DCHECK(false); | 581 | 5.35k | } | 582 | 5.35k | } | 583 | 717k | } | 584 | | | 585 | 717k | 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 | 717k | _rows_returned_counter = | 590 | 717k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 717k | _blocks_returned_counter = | 592 | 717k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 717k | _output_block_bytes_counter = | 594 | 717k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 717k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 717k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 717k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 717k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 717k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 717k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 717k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 717k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 717k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 717k | _memory_used_counter = | 605 | 717k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 717k | _common_profile->add_info_string("IsColocate", | 607 | 717k | std::to_string(_parent->is_colocated_operator())); | 608 | 717k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 717k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 717k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 717k | return Status::OK(); | 612 | 717k | } |
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 | 150 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 150 | _dependency = _shared_state->create_source_dependency( | 575 | 150 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 150 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 150 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 150 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 1 | } | 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.28M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
616 | 2.28M | _conjuncts.resize(_parent->_conjuncts.size()); |
617 | 2.28M | _projections.resize(_parent->_projections.size()); |
618 | 2.56M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 277k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 277k | } |
621 | 4.02M | for (size_t i = 0; i < _projections.size(); i++) { |
622 | 1.73M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
623 | 1.73M | } |
624 | 2.28M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
625 | 2.29M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
626 | 5.03k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
627 | 33.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
628 | 28.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
629 | 28.1k | state, _intermediate_projections[i][j])); |
630 | 28.1k | } |
631 | 5.03k | } |
632 | 2.28M | return Status::OK(); |
633 | 2.28M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 60.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 60.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 60.2k | _projections.resize(_parent->_projections.size()); | 618 | 61.1k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 876 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 876 | } | 621 | 302k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 242k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 242k | } | 624 | 60.2k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 60.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 672 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 6.92k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 6.25k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 6.25k | state, _intermediate_projections[i][j])); | 630 | 6.25k | } | 631 | 672 | } | 632 | 60.2k | return Status::OK(); | 633 | 60.2k | } |
_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 | 191k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 191k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 191k | _projections.resize(_parent->_projections.size()); | 618 | 191k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 192k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 283 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 283 | } | 624 | 191k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 191k | 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 | 191k | return Status::OK(); | 633 | 191k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 22 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 22 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 22 | _projections.resize(_parent->_projections.size()); | 618 | 22 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 22 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 22 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 22 | 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 | 22 | return Status::OK(); | 633 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 5.16k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 5.16k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 5.16k | _projections.resize(_parent->_projections.size()); | 618 | 5.28k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 122 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 122 | } | 621 | 23.0k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 17.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 17.8k | } | 624 | 5.16k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 5.19k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 34 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 340 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 306 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 306 | state, _intermediate_projections[i][j])); | 630 | 306 | } | 631 | 34 | } | 632 | 5.16k | return Status::OK(); | 633 | 5.16k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 10.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 10.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 10.7k | _projections.resize(_parent->_projections.size()); | 618 | 11.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 927 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 927 | } | 621 | 29.6k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 18.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 18.8k | } | 624 | 10.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 10.8k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 87 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 655 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 568 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 568 | state, _intermediate_projections[i][j])); | 630 | 568 | } | 631 | 87 | } | 632 | 10.7k | return Status::OK(); | 633 | 10.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 74.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 74.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 74.7k | _projections.resize(_parent->_projections.size()); | 618 | 76.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.56k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.56k | } | 621 | 275k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 200k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 200k | } | 624 | 74.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 74.8k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 126 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 819 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 693 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 693 | state, _intermediate_projections[i][j])); | 630 | 693 | } | 631 | 126 | } | 632 | 74.7k | return Status::OK(); | 633 | 74.7k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 359 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 359 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 359 | _projections.resize(_parent->_projections.size()); | 618 | 365 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 6 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 6 | } | 621 | 1.48k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 1.12k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 1.12k | } | 624 | 359 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 359 | 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 | 359 | return Status::OK(); | 633 | 359 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 148 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 148 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 148 | _projections.resize(_parent->_projections.size()); | 618 | 148 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 412 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 264 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 264 | } | 624 | 148 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 148 | 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 | 148 | return Status::OK(); | 633 | 148 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 1.16M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 1.16M | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 1.16M | _projections.resize(_parent->_projections.size()); | 618 | 1.43M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 273k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 273k | } | 621 | 2.33M | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 1.17M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 1.17M | } | 624 | 1.16M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 1.16M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 4.11k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 24.4k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 20.3k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 20.3k | state, _intermediate_projections[i][j])); | 630 | 20.3k | } | 631 | 4.11k | } | 632 | 1.16M | return Status::OK(); | 633 | 1.16M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 49.8k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 49.8k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 49.8k | _projections.resize(_parent->_projections.size()); | 618 | 49.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 133k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 83.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 83.8k | } | 624 | 49.8k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 49.8k | 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 | 49.8k | return Status::OK(); | 633 | 49.8k | } |
_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 | 4.75k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 4.75k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 4.75k | _projections.resize(_parent->_projections.size()); | 618 | 5.46k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 708 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 708 | } | 621 | 4.75k | 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.75k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 4.75k | 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.75k | return Status::OK(); | 633 | 4.75k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 658 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 658 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 658 | _projections.resize(_parent->_projections.size()); | 618 | 658 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 658 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 658 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 658 | 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 | 658 | return Status::OK(); | 633 | 658 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 4.87k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 4.87k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 4.87k | _projections.resize(_parent->_projections.size()); | 618 | 4.87k | 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.87k | 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.87k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 4.87k | 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.87k | return Status::OK(); | 633 | 4.87k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 718k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 718k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 718k | _projections.resize(_parent->_projections.size()); | 618 | 718k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 718k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 718k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 718k | 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 | 718k | return Status::OK(); | 633 | 718k | } |
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 | 3.49k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
637 | 3.49k | if (_terminated) { |
638 | 2 | return Status::OK(); |
639 | 2 | } |
640 | 3.49k | _terminated = true; |
641 | 3.49k | return Status::OK(); |
642 | 3.49k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 283 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 283 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 283 | _terminated = true; | 641 | 283 | return Status::OK(); | 642 | 283 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 79 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 79 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 79 | _terminated = true; | 641 | 79 | return Status::OK(); | 642 | 79 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 29 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 29 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 29 | _terminated = true; | 641 | 29 | return Status::OK(); | 642 | 29 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 135 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 135 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 135 | _terminated = true; | 641 | 135 | return Status::OK(); | 642 | 135 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 2.52k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 2.52k | if (_terminated) { | 638 | 1 | return Status::OK(); | 639 | 1 | } | 640 | 2.52k | _terminated = true; | 641 | 2.52k | return Status::OK(); | 642 | 2.52k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 10 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 10 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 10 | _terminated = true; | 641 | 10 | return Status::OK(); | 642 | 10 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 7 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 7 | _terminated = true; | 641 | 7 | return Status::OK(); | 642 | 7 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 418 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 418 | if (_terminated) { | 638 | 1 | return Status::OK(); | 639 | 1 | } | 640 | 417 | _terminated = true; | 641 | 417 | return Status::OK(); | 642 | 418 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 16 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 16 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 16 | _terminated = true; | 641 | 16 | return Status::OK(); | 642 | 16 | } |
|
643 | | |
644 | | template <typename SharedStateArg> |
645 | 2.50M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
646 | 2.50M | if (_closed) { |
647 | 220k | return Status::OK(); |
648 | 220k | } |
649 | 2.28M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
650 | 1.12M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
651 | 1.12M | } |
652 | 2.28M | _closed = true; |
653 | 2.28M | return Status::OK(); |
654 | 2.50M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 60.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 60.2k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 60.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 60.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 60.2k | } | 652 | 60.2k | _closed = true; | 653 | 60.2k | return Status::OK(); | 654 | 60.2k | } |
_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 | 381k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 381k | if (_closed) { | 647 | 190k | return Status::OK(); | 648 | 190k | } | 649 | 190k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 190k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 190k | } | 652 | 190k | _closed = true; | 653 | 190k | return Status::OK(); | 654 | 381k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 23 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 23 | } | 652 | 23 | _closed = true; | 653 | 23 | return Status::OK(); | 654 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 5.16k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 5.16k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 5.16k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 5.16k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 5.16k | } | 652 | 5.16k | _closed = true; | 653 | 5.16k | return Status::OK(); | 654 | 5.16k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 21.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 21.5k | if (_closed) { | 647 | 10.8k | return Status::OK(); | 648 | 10.8k | } | 649 | 10.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 10.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 10.7k | } | 652 | 10.7k | _closed = true; | 653 | 10.7k | return Status::OK(); | 654 | 21.5k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 74.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 74.5k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 74.5k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 74.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 74.5k | } | 652 | 74.5k | _closed = true; | 653 | 74.5k | return Status::OK(); | 654 | 74.5k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 358 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 358 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 358 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 358 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 358 | } | 652 | 358 | _closed = true; | 653 | 358 | return Status::OK(); | 654 | 358 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 143 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 143 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 143 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 143 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 143 | } | 652 | 143 | _closed = true; | 653 | 143 | return Status::OK(); | 654 | 143 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 1.17M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 1.17M | if (_closed) { | 647 | 13.6k | return Status::OK(); | 648 | 13.6k | } | 649 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | | } | 652 | 1.16M | _closed = true; | 653 | 1.16M | return Status::OK(); | 654 | 1.17M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 49.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 49.9k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 49.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 49.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 49.9k | } | 652 | 49.9k | _closed = true; | 653 | 49.9k | return Status::OK(); | 654 | 49.9k | } |
_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 | 4.73k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 4.73k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 4.73k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 4.73k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 4.73k | } | 652 | 4.73k | _closed = true; | 653 | 4.73k | return Status::OK(); | 654 | 4.73k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 1.10k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 1.10k | if (_closed) { | 647 | 555 | return Status::OK(); | 648 | 555 | } | 649 | 551 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 551 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 551 | } | 652 | 551 | _closed = true; | 653 | 551 | return Status::OK(); | 654 | 1.10k | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 9.79k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 9.79k | if (_closed) { | 647 | 4.92k | return Status::OK(); | 648 | 4.92k | } | 649 | 4.86k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 4.86k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 4.86k | } | 652 | 4.86k | _closed = true; | 653 | 4.86k | return Status::OK(); | 654 | 9.79k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 720k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 720k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 720k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 720k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 720k | } | 652 | 720k | _closed = true; | 653 | 720k | return Status::OK(); | 654 | 720k | } |
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 | 1.73M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
658 | | // create profile |
659 | 1.73M | _operator_profile = |
660 | 1.73M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
661 | 1.73M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
662 | 1.73M | _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 | 1.73M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
668 | 1.73M | _operator_profile->add_child(_common_profile, true); |
669 | 1.73M | _operator_profile->add_child(_custom_profile, true); |
670 | | |
671 | 1.73M | _operator_profile->set_metadata(_parent->node_id()); |
672 | 1.73M | _wait_for_finish_dependency_timer = |
673 | 1.73M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
674 | 1.73M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
675 | 1.73M | if constexpr (!is_fake_shared) { |
676 | 1.16M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
677 | 1.16M | info.shared_state_map.end()) { |
678 | 327k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
679 | 311k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
680 | 311k | } |
681 | 327k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
682 | 327k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
683 | 327k | ? 0 |
684 | 327k | : info.task_idx] |
685 | 327k | .get(); |
686 | 327k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
687 | 839k | } else { |
688 | 839k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
689 | 157 | DCHECK(false); |
690 | 157 | } |
691 | 839k | _shared_state = info.shared_state->template cast<SharedState>(); |
692 | 839k | _dependency = _shared_state->create_sink_dependency( |
693 | 839k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
694 | 839k | } |
695 | 1.16M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
696 | 1.16M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
697 | 1.16M | } |
698 | | |
699 | 1.73M | 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 | 1.73M | _rows_input_counter = |
704 | 1.73M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
705 | 1.73M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
706 | 1.73M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
707 | 1.73M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
708 | 1.73M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
709 | 1.73M | _memory_used_counter = |
710 | 1.73M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
711 | 1.73M | _common_profile->add_info_string("IsColocate", |
712 | 1.73M | std::to_string(_parent->is_colocated_operator())); |
713 | 1.73M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
714 | 1.73M | _common_profile->add_info_string("FollowedByShuffledOperator", |
715 | 1.73M | std::to_string(_parent->followed_by_shuffled_operator())); |
716 | 1.73M | return Status::OK(); |
717 | 1.73M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 108k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 108k | _operator_profile = | 660 | 108k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 108k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 108k | _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 | 108k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 108k | _operator_profile->add_child(_common_profile, true); | 669 | 108k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 108k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 108k | _wait_for_finish_dependency_timer = | 673 | 108k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 108k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 108k | if constexpr (!is_fake_shared) { | 676 | 108k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 108k | 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 | 15.3k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 15.3k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 15.3k | ? 0 | 684 | 15.3k | : info.task_idx] | 685 | 15.3k | .get(); | 686 | 15.3k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 92.9k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 92.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 92.9k | _dependency = _shared_state->create_sink_dependency( | 693 | 92.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 92.9k | } | 695 | 108k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 108k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 108k | } | 698 | | | 699 | 108k | 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 | 108k | _rows_input_counter = | 704 | 108k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 108k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 108k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 108k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 108k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 108k | _memory_used_counter = | 710 | 108k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 108k | _common_profile->add_info_string("IsColocate", | 712 | 108k | std::to_string(_parent->is_colocated_operator())); | 713 | 108k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 108k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 108k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 108k | return Status::OK(); | 717 | 108k | } |
_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 | 191k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 191k | _operator_profile = | 660 | 191k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 191k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 191k | _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 | 191k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 191k | _operator_profile->add_child(_common_profile, true); | 669 | 191k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 191k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 191k | _wait_for_finish_dependency_timer = | 673 | 191k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 191k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 191k | if constexpr (!is_fake_shared) { | 676 | 191k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 191k | 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 | 191k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 191k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 191k | _dependency = _shared_state->create_sink_dependency( | 693 | 191k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 191k | } | 695 | 191k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 191k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 191k | } | 698 | | | 699 | 191k | 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 | 191k | _rows_input_counter = | 704 | 191k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 191k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 191k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 191k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 191k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 191k | _memory_used_counter = | 710 | 191k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 191k | _common_profile->add_info_string("IsColocate", | 712 | 191k | std::to_string(_parent->is_colocated_operator())); | 713 | 191k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 191k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 191k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 191k | return Status::OK(); | 717 | 191k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 30 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 30 | _operator_profile = | 660 | 30 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 30 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 30 | _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 | 30 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 30 | _operator_profile->add_child(_common_profile, true); | 669 | 30 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 30 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 30 | _wait_for_finish_dependency_timer = | 673 | 30 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 30 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 30 | if constexpr (!is_fake_shared) { | 676 | 30 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 30 | 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 | 30 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 30 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 30 | _dependency = _shared_state->create_sink_dependency( | 693 | 30 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 30 | } | 695 | 30 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 30 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 30 | } | 698 | | | 699 | 30 | 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 | 30 | _rows_input_counter = | 704 | 30 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 30 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 30 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 30 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 30 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 30 | _memory_used_counter = | 710 | 30 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 30 | _common_profile->add_info_string("IsColocate", | 712 | 30 | std::to_string(_parent->is_colocated_operator())); | 713 | 30 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 30 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 30 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 30 | return Status::OK(); | 717 | 30 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 5.16k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 5.16k | _operator_profile = | 660 | 5.16k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 5.16k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 5.16k | _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 | 5.16k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 5.16k | _operator_profile->add_child(_common_profile, true); | 669 | 5.16k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 5.16k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 5.16k | _wait_for_finish_dependency_timer = | 673 | 5.16k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 5.16k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 5.16k | if constexpr (!is_fake_shared) { | 676 | 5.16k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 5.16k | 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 | 5.16k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 5.16k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 5.16k | _dependency = _shared_state->create_sink_dependency( | 693 | 5.16k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 5.16k | } | 695 | 5.16k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 5.16k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 5.16k | } | 698 | | | 699 | 5.16k | 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 | 5.16k | _rows_input_counter = | 704 | 5.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 5.16k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 5.16k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 5.16k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 5.16k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 5.16k | _memory_used_counter = | 710 | 5.16k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 5.16k | _common_profile->add_info_string("IsColocate", | 712 | 5.16k | std::to_string(_parent->is_colocated_operator())); | 713 | 5.16k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 5.16k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 5.16k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 5.16k | return Status::OK(); | 717 | 5.16k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 10.7k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 10.7k | _operator_profile = | 660 | 10.7k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 10.7k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 10.7k | _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 | 10.7k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 10.7k | _operator_profile->add_child(_common_profile, true); | 669 | 10.7k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 10.7k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 10.7k | _wait_for_finish_dependency_timer = | 673 | 10.7k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 10.7k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 10.7k | if constexpr (!is_fake_shared) { | 676 | 10.7k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 10.7k | 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 | 10.7k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 10.7k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 10.7k | _dependency = _shared_state->create_sink_dependency( | 693 | 10.7k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 10.7k | } | 695 | 10.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 10.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 10.7k | } | 698 | | | 699 | 10.7k | 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 | 10.7k | _rows_input_counter = | 704 | 10.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 10.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 10.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 10.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 10.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 10.7k | _memory_used_counter = | 710 | 10.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 10.7k | _common_profile->add_info_string("IsColocate", | 712 | 10.7k | std::to_string(_parent->is_colocated_operator())); | 713 | 10.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 10.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 10.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 10.7k | return Status::OK(); | 717 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 74.6k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 74.6k | _operator_profile = | 660 | 74.6k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 74.6k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 74.6k | _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 | 74.6k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 74.6k | _operator_profile->add_child(_common_profile, true); | 669 | 74.6k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 74.6k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 74.6k | _wait_for_finish_dependency_timer = | 673 | 74.6k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 74.6k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 74.6k | if constexpr (!is_fake_shared) { | 676 | 74.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 74.6k | 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 | 74.6k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 74.6k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 74.6k | _dependency = _shared_state->create_sink_dependency( | 693 | 74.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 74.6k | } | 695 | 74.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 74.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 74.6k | } | 698 | | | 699 | 74.6k | 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 | 74.6k | _rows_input_counter = | 704 | 74.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 74.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 74.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 74.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 74.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 74.6k | _memory_used_counter = | 710 | 74.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 74.6k | _common_profile->add_info_string("IsColocate", | 712 | 74.6k | std::to_string(_parent->is_colocated_operator())); | 713 | 74.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 74.6k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 74.6k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 74.6k | return Status::OK(); | 717 | 74.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 298 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 298 | _operator_profile = | 660 | 298 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 298 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 298 | _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 | 298 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 298 | _operator_profile->add_child(_common_profile, true); | 669 | 298 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 298 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 298 | _wait_for_finish_dependency_timer = | 673 | 298 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 298 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 298 | if constexpr (!is_fake_shared) { | 676 | 298 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 299 | 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 | 299 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 299 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 299 | ? 0 | 684 | 299 | : info.task_idx] | 685 | 299 | .get(); | 686 | 299 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 18.4E | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 693 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 18.4E | } | 695 | 298 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 298 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 298 | } | 698 | | | 699 | 299 | 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 | 298 | _rows_input_counter = | 704 | 298 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 298 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 298 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 298 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 298 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 298 | _memory_used_counter = | 710 | 298 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 298 | _common_profile->add_info_string("IsColocate", | 712 | 298 | std::to_string(_parent->is_colocated_operator())); | 713 | 298 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 298 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 298 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 298 | return Status::OK(); | 717 | 298 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 154 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 154 | _operator_profile = | 660 | 154 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 154 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 154 | _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 | 154 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 154 | _operator_profile->add_child(_common_profile, true); | 669 | 154 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 154 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 154 | _wait_for_finish_dependency_timer = | 673 | 154 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 154 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 154 | if constexpr (!is_fake_shared) { | 676 | 154 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 154 | 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 | 154 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 154 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 154 | _dependency = _shared_state->create_sink_dependency( | 693 | 154 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 154 | } | 695 | 154 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 154 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 154 | } | 698 | | | 699 | 154 | 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 | 154 | _rows_input_counter = | 704 | 154 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 154 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 154 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 154 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 154 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 154 | _memory_used_counter = | 710 | 154 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 154 | _common_profile->add_info_string("IsColocate", | 712 | 154 | std::to_string(_parent->is_colocated_operator())); | 713 | 154 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 154 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 154 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 154 | return Status::OK(); | 717 | 154 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 571k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 571k | _operator_profile = | 660 | 571k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 571k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 571k | _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 | 571k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 571k | _operator_profile->add_child(_common_profile, true); | 669 | 571k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 571k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 571k | _wait_for_finish_dependency_timer = | 673 | 571k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 571k | 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 | 571k | 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 | 571k | _rows_input_counter = | 704 | 571k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 571k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 571k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 571k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 571k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 571k | _memory_used_counter = | 710 | 571k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 571k | _common_profile->add_info_string("IsColocate", | 712 | 571k | std::to_string(_parent->is_colocated_operator())); | 713 | 571k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 571k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 571k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 571k | return Status::OK(); | 717 | 571k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 4.05k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 4.05k | _operator_profile = | 660 | 4.05k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 4.05k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 4.05k | _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 | 4.05k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 4.05k | _operator_profile->add_child(_common_profile, true); | 669 | 4.05k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 4.05k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 4.05k | _wait_for_finish_dependency_timer = | 673 | 4.05k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 4.05k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 4.05k | if constexpr (!is_fake_shared) { | 676 | 4.05k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 4.05k | 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 | 4.05k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 4.05k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 4.05k | _dependency = _shared_state->create_sink_dependency( | 693 | 4.05k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 4.05k | } | 695 | 4.05k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 4.05k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 4.05k | } | 698 | | | 699 | 4.05k | 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 | 4.05k | _rows_input_counter = | 704 | 4.05k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 4.05k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 4.05k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 4.05k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 4.05k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 4.05k | _memory_used_counter = | 710 | 4.05k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 4.05k | _common_profile->add_info_string("IsColocate", | 712 | 4.05k | std::to_string(_parent->is_colocated_operator())); | 713 | 4.05k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 4.05k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 4.05k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 4.05k | return Status::OK(); | 717 | 4.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 656 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 656 | _operator_profile = | 660 | 656 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 656 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 656 | _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 | 656 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 656 | _operator_profile->add_child(_common_profile, true); | 669 | 656 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 656 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 656 | _wait_for_finish_dependency_timer = | 673 | 656 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 656 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 656 | if constexpr (!is_fake_shared) { | 676 | 656 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 656 | 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 | 656 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 656 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 656 | _dependency = _shared_state->create_sink_dependency( | 693 | 656 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 656 | } | 695 | 656 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 656 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 656 | } | 698 | | | 699 | 656 | 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 | 656 | _rows_input_counter = | 704 | 656 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 656 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 656 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 656 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 656 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 656 | _memory_used_counter = | 710 | 656 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 656 | _common_profile->add_info_string("IsColocate", | 712 | 656 | std::to_string(_parent->is_colocated_operator())); | 713 | 656 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 656 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 656 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 656 | return Status::OK(); | 717 | 656 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 1.98k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 1.98k | _operator_profile = | 660 | 1.98k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 1.98k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 1.98k | _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 | 1.98k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 1.98k | _operator_profile->add_child(_common_profile, true); | 669 | 1.98k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 1.98k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 1.98k | _wait_for_finish_dependency_timer = | 673 | 1.98k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 1.98k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 1.98k | if constexpr (!is_fake_shared) { | 676 | 1.98k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 1.98k | 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 | 1.98k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 1.98k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 1.98k | _dependency = _shared_state->create_sink_dependency( | 693 | 1.98k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 1.98k | } | 695 | 1.98k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 1.98k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 1.98k | } | 698 | | | 699 | 1.98k | 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 | 1.98k | _rows_input_counter = | 704 | 1.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 1.98k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 1.98k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 1.98k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 1.98k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 1.98k | _memory_used_counter = | 710 | 1.98k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 1.98k | _common_profile->add_info_string("IsColocate", | 712 | 1.98k | std::to_string(_parent->is_colocated_operator())); | 713 | 1.98k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 1.98k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 1.98k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 1.98k | return Status::OK(); | 717 | 1.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 12.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 12.0k | _operator_profile = | 660 | 12.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 12.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 12.0k | _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.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 12.0k | _operator_profile->add_child(_common_profile, true); | 669 | 12.0k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 12.0k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 12.0k | _wait_for_finish_dependency_timer = | 673 | 12.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 12.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 12.0k | if constexpr (!is_fake_shared) { | 676 | 12.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 12.0k | 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.0k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 12.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 12.0k | _dependency = _shared_state->create_sink_dependency( | 693 | 12.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 12.0k | } | 695 | 12.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 12.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 12.0k | } | 698 | | | 699 | 12.0k | 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.0k | _rows_input_counter = | 704 | 12.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 12.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 12.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 12.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 12.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 12.0k | _memory_used_counter = | 710 | 12.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 12.0k | _common_profile->add_info_string("IsColocate", | 712 | 12.0k | std::to_string(_parent->is_colocated_operator())); | 713 | 12.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 12.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 12.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 12.0k | return Status::OK(); | 717 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 311k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 311k | _operator_profile = | 660 | 311k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 311k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 311k | _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 | 311k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 311k | _operator_profile->add_child(_common_profile, true); | 669 | 311k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 311k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 311k | _wait_for_finish_dependency_timer = | 673 | 311k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 311k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 311k | if constexpr (!is_fake_shared) { | 676 | 311k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 311k | info.shared_state_map.end()) { | 678 | 311k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | 311k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | 311k | } | 681 | 311k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 311k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 311k | ? 0 | 684 | 311k | : info.task_idx] | 685 | 311k | .get(); | 686 | 311k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 311k | } else { | 688 | 157 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | 157 | DCHECK(false); | 690 | 157 | } | 691 | 157 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 157 | _dependency = _shared_state->create_sink_dependency( | 693 | 157 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 157 | } | 695 | 311k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 311k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 311k | } | 698 | | | 699 | 311k | 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 | 311k | _rows_input_counter = | 704 | 311k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 311k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 311k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 311k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 311k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 311k | _memory_used_counter = | 710 | 311k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 311k | _common_profile->add_info_string("IsColocate", | 712 | 311k | std::to_string(_parent->is_colocated_operator())); | 713 | 311k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 311k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 311k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 311k | return Status::OK(); | 717 | 311k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 444k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 444k | _operator_profile = | 660 | 444k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 444k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 444k | _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 | 444k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 444k | _operator_profile->add_child(_common_profile, true); | 669 | 444k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 444k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 444k | _wait_for_finish_dependency_timer = | 673 | 444k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 444k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 444k | if constexpr (!is_fake_shared) { | 676 | 444k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 444k | 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 | 444k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 444k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 444k | _dependency = _shared_state->create_sink_dependency( | 693 | 444k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 444k | } | 695 | 444k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 444k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 444k | } | 698 | | | 699 | 444k | 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 | 444k | _rows_input_counter = | 704 | 444k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 444k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 444k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 444k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 444k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 444k | _memory_used_counter = | 710 | 444k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 444k | _common_profile->add_info_string("IsColocate", | 712 | 444k | std::to_string(_parent->is_colocated_operator())); | 713 | 444k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 444k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 444k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 444k | return Status::OK(); | 717 | 444k | } |
_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 | 1.73M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
721 | 1.73M | if (_closed) { |
722 | 2 | return Status::OK(); |
723 | 2 | } |
724 | 1.73M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
725 | 1.16M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
726 | 1.16M | } |
727 | 1.73M | _closed = true; |
728 | 1.73M | return Status::OK(); |
729 | 1.73M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 108k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 108k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 108k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 108k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 108k | } | 727 | 108k | _closed = true; | 728 | 108k | return Status::OK(); | 729 | 108k | } |
_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 | 191k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 191k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 191k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 191k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 191k | } | 727 | 191k | _closed = true; | 728 | 191k | return Status::OK(); | 729 | 191k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 21 | if (_closed) { | 722 | 2 | return Status::OK(); | 723 | 2 | } | 724 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 19 | } | 727 | 19 | _closed = true; | 728 | 19 | return Status::OK(); | 729 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 5.14k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 5.14k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 5.14k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 5.14k | } | 727 | 5.14k | _closed = true; | 728 | 5.14k | return Status::OK(); | 729 | 5.14k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 10.7k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 10.7k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 10.7k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 10.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 10.7k | } | 727 | 10.7k | _closed = true; | 728 | 10.7k | return Status::OK(); | 729 | 10.7k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 74.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 74.4k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 74.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 74.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 74.4k | } | 727 | 74.4k | _closed = true; | 728 | 74.4k | return Status::OK(); | 729 | 74.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 299 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 299 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 299 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 299 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 299 | } | 727 | 299 | _closed = true; | 728 | 299 | return Status::OK(); | 729 | 299 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 143 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 143 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 143 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 143 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 143 | } | 727 | 143 | _closed = true; | 728 | 143 | return Status::OK(); | 729 | 143 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 571k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 571k | 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 | 571k | _closed = true; | 728 | 571k | return Status::OK(); | 729 | 571k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 4.05k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 4.05k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 4.05k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 4.05k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 4.05k | } | 727 | 4.05k | _closed = true; | 728 | 4.05k | return Status::OK(); | 729 | 4.05k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 551 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 551 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 551 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 551 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 551 | } | 727 | 551 | _closed = true; | 728 | 551 | return Status::OK(); | 729 | 551 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 1.98k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 1.98k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 1.98k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 1.98k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 1.98k | } | 727 | 1.98k | _closed = true; | 728 | 1.98k | return Status::OK(); | 729 | 1.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 12.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 12.0k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 12.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 12.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 12.0k | } | 727 | 12.0k | _closed = true; | 728 | 12.0k | return Status::OK(); | 729 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 312k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 312k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 312k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 312k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 312k | } | 727 | 312k | _closed = true; | 728 | 312k | return Status::OK(); | 729 | 312k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 446k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 446k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 446k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 446k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 446k | } | 727 | 446k | _closed = true; | 728 | 446k | return Status::OK(); | 729 | 446k | } |
_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 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
733 | 3.30k | bool* eos) { |
734 | 3.30k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
735 | 3.30k | return pull(state, block, eos); |
736 | 3.30k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 733 | 32 | bool* eos) { | 734 | 32 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 735 | 32 | return pull(state, block, eos); | 736 | 32 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 733 | 3.27k | bool* eos) { | 734 | 3.27k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 735 | 3.27k | return pull(state, block, eos); | 736 | 3.27k | } |
|
737 | | |
738 | | template <typename LocalStateType> |
739 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
740 | 773k | bool* eos) { |
741 | 773k | auto& local_state = get_local_state(state); |
742 | 773k | if (need_more_input_data(state)) { |
743 | 749k | local_state._child_block->clear_column_data( |
744 | 749k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
745 | 749k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
746 | 749k | state, local_state._child_block.get(), &local_state._child_eos)); |
747 | 749k | *eos = local_state._child_eos; |
748 | 749k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
749 | 77.7k | return Status::OK(); |
750 | 77.7k | } |
751 | 671k | { |
752 | 671k | SCOPED_TIMER(local_state.exec_time_counter()); |
753 | 671k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
754 | 671k | } |
755 | 671k | } |
756 | | |
757 | 695k | if (!need_more_input_data(state)) { |
758 | 659k | SCOPED_TIMER(local_state.exec_time_counter()); |
759 | 659k | bool new_eos = false; |
760 | 659k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
761 | 659k | if (new_eos) { |
762 | 589k | *eos = true; |
763 | 589k | } else if (!need_more_input_data(state)) { |
764 | 20.2k | *eos = false; |
765 | 20.2k | } |
766 | 659k | } |
767 | 695k | return Status::OK(); |
768 | 695k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 123k | bool* eos) { | 741 | 123k | auto& local_state = get_local_state(state); | 742 | 123k | if (need_more_input_data(state)) { | 743 | 110k | local_state._child_block->clear_column_data( | 744 | 110k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 110k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 110k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 110k | *eos = local_state._child_eos; | 748 | 110k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 37.0k | return Status::OK(); | 750 | 37.0k | } | 751 | 73.6k | { | 752 | 73.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 73.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 73.6k | } | 755 | 73.6k | } | 756 | | | 757 | 86.8k | if (!need_more_input_data(state)) { | 758 | 86.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 86.8k | bool new_eos = false; | 760 | 86.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 86.8k | if (new_eos) { | 762 | 35.9k | *eos = true; | 763 | 50.9k | } else if (!need_more_input_data(state)) { | 764 | 7.84k | *eos = false; | 765 | 7.84k | } | 766 | 86.8k | } | 767 | 86.8k | return Status::OK(); | 768 | 86.8k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 2.75k | bool* eos) { | 741 | 2.75k | auto& local_state = get_local_state(state); | 742 | 2.75k | if (need_more_input_data(state)) { | 743 | 1.56k | local_state._child_block->clear_column_data( | 744 | 1.56k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 1.56k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 1.56k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 1.56k | *eos = local_state._child_eos; | 748 | 1.56k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 154 | return Status::OK(); | 750 | 154 | } | 751 | 1.41k | { | 752 | 1.41k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 1.41k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 1.41k | } | 755 | 1.41k | } | 756 | | | 757 | 2.62k | if (!need_more_input_data(state)) { | 758 | 2.62k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 2.62k | bool new_eos = false; | 760 | 2.62k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 2.62k | if (new_eos) { | 762 | 1.06k | *eos = true; | 763 | 1.55k | } else if (!need_more_input_data(state)) { | 764 | 1.18k | *eos = false; | 765 | 1.18k | } | 766 | 2.62k | } | 767 | 2.59k | return Status::OK(); | 768 | 2.59k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 1.53k | bool* eos) { | 741 | 1.53k | auto& local_state = get_local_state(state); | 742 | 1.53k | if (need_more_input_data(state)) { | 743 | 1.53k | local_state._child_block->clear_column_data( | 744 | 1.53k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 1.53k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 1.53k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 1.53k | *eos = local_state._child_eos; | 748 | 1.53k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 604 | return Status::OK(); | 750 | 604 | } | 751 | 929 | { | 752 | 929 | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 929 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 929 | } | 755 | 929 | } | 756 | | | 757 | 929 | if (!need_more_input_data(state)) { | 758 | 929 | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 929 | bool new_eos = false; | 760 | 929 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 929 | if (new_eos) { | 762 | 631 | *eos = true; | 763 | 631 | } else if (!need_more_input_data(state)) { | 764 | 0 | *eos = false; | 765 | 0 | } | 766 | 929 | } | 767 | 929 | return Status::OK(); | 768 | 929 | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 13.8k | bool* eos) { | 741 | 13.8k | auto& local_state = get_local_state(state); | 742 | 13.9k | if (need_more_input_data(state)) { | 743 | 13.9k | local_state._child_block->clear_column_data( | 744 | 13.9k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 13.9k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 13.9k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 13.9k | *eos = local_state._child_eos; | 748 | 13.9k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 3.07k | return Status::OK(); | 750 | 3.07k | } | 751 | 10.8k | { | 752 | 10.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 10.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 10.8k | } | 755 | 10.8k | } | 756 | | | 757 | 10.8k | if (!need_more_input_data(state)) { | 758 | 5.44k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 5.44k | bool new_eos = false; | 760 | 5.44k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 5.44k | if (new_eos) { | 762 | 5.36k | *eos = true; | 763 | 5.36k | } else if (!need_more_input_data(state)) { | 764 | 1 | *eos = false; | 765 | 1 | } | 766 | 5.44k | } | 767 | 10.8k | return Status::OK(); | 768 | 10.8k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 604k | bool* eos) { | 741 | 604k | auto& local_state = get_local_state(state); | 742 | 606k | if (need_more_input_data(state)) { | 743 | 606k | local_state._child_block->clear_column_data( | 744 | 606k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 606k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 606k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 606k | *eos = local_state._child_eos; | 748 | 606k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 35.7k | return Status::OK(); | 750 | 35.7k | } | 751 | 570k | { | 752 | 570k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 570k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 570k | } | 755 | 570k | } | 756 | | | 757 | 569k | if (!need_more_input_data(state)) { | 758 | 538k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 538k | bool new_eos = false; | 760 | 538k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 538k | if (new_eos) { | 762 | 537k | *eos = true; | 763 | 537k | } else if (!need_more_input_data(state)) { | 764 | 0 | *eos = false; | 765 | 0 | } | 766 | 538k | } | 767 | 569k | return Status::OK(); | 768 | 569k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 20.0k | bool* eos) { | 741 | 20.0k | auto& local_state = get_local_state(state); | 742 | 20.0k | if (need_more_input_data(state)) { | 743 | 9.23k | local_state._child_block->clear_column_data( | 744 | 9.23k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 9.23k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 9.23k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 9.23k | *eos = local_state._child_eos; | 748 | 9.23k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 589 | return Status::OK(); | 750 | 589 | } | 751 | 8.64k | { | 752 | 8.64k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 8.64k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 8.64k | } | 755 | 8.64k | } | 756 | | | 757 | 19.4k | if (!need_more_input_data(state)) { | 758 | 19.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 19.0k | bool new_eos = false; | 760 | 19.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 19.0k | if (new_eos) { | 762 | 5.14k | *eos = true; | 763 | 13.8k | } else if (!need_more_input_data(state)) { | 764 | 10.8k | *eos = false; | 765 | 10.8k | } | 766 | 19.0k | } | 767 | 19.4k | return Status::OK(); | 768 | 19.4k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 6.38k | bool* eos) { | 741 | 6.38k | auto& local_state = get_local_state(state); | 742 | 6.38k | if (need_more_input_data(state)) { | 743 | 6.01k | local_state._child_block->clear_column_data( | 744 | 6.01k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 6.01k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 6.01k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 6.01k | *eos = local_state._child_eos; | 748 | 6.01k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 550 | return Status::OK(); | 750 | 550 | } | 751 | 5.46k | { | 752 | 5.46k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 5.46k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 5.46k | } | 755 | 5.46k | } | 756 | | | 757 | 5.82k | if (!need_more_input_data(state)) { | 758 | 5.82k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 5.82k | bool new_eos = false; | 760 | 5.82k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 5.82k | if (new_eos) { | 762 | 3.82k | *eos = true; | 763 | 3.82k | } else if (!need_more_input_data(state)) { | 764 | 366 | *eos = false; | 765 | 366 | } | 766 | 5.82k | } | 767 | 5.82k | return Status::OK(); | 768 | 5.82k | } |
|
769 | | |
770 | | template <typename Writer, typename Parent> |
771 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
772 | 41.6k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
773 | 41.6k | RETURN_IF_ERROR(Base::init(state, info)); |
774 | 41.6k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
775 | 41.6k | "AsyncWriterDependency", true); |
776 | 41.6k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
777 | 41.6k | _finish_dependency)); |
778 | | |
779 | 41.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
780 | 41.6k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
781 | 41.6k | return Status::OK(); |
782 | 41.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 309 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 309 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 309 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 309 | "AsyncWriterDependency", true); | 776 | 309 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 309 | _finish_dependency)); | 778 | | | 779 | 309 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 309 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 309 | return Status::OK(); | 782 | 309 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 41.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 41.3k | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 41.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 41.3k | "AsyncWriterDependency", true); | 776 | 41.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 41.3k | _finish_dependency)); | 778 | | | 779 | 41.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 41.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 41.3k | return Status::OK(); | 782 | 41.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 63 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 63 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 63 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 63 | "AsyncWriterDependency", true); | 776 | 63 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 63 | _finish_dependency)); | 778 | | | 779 | 63 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 63 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 63 | return Status::OK(); | 782 | 63 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
783 | | |
784 | | template <typename Writer, typename Parent> |
785 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
786 | 42.0k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
787 | 42.0k | RETURN_IF_ERROR(Base::open(state)); |
788 | 42.0k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
789 | 329k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
790 | 287k | RETURN_IF_ERROR( |
791 | 287k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
792 | 287k | } |
793 | 42.0k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
794 | 42.0k | return Status::OK(); |
795 | 42.0k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 309 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 309 | RETURN_IF_ERROR(Base::open(state)); | 788 | 309 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 1.57k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 1.26k | RETURN_IF_ERROR( | 791 | 1.26k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 1.26k | } | 793 | 309 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 309 | return Status::OK(); | 795 | 309 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 41.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 41.6k | RETURN_IF_ERROR(Base::open(state)); | 788 | 41.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 327k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 285k | RETURN_IF_ERROR( | 791 | 285k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 285k | } | 793 | 41.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 41.6k | return Status::OK(); | 795 | 41.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 63 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 63 | RETURN_IF_ERROR(Base::open(state)); | 788 | 63 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 1.13k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 1.07k | RETURN_IF_ERROR( | 791 | 1.07k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 1.07k | } | 793 | 63 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 63 | return Status::OK(); | 795 | 63 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
796 | | |
797 | | template <typename Writer, typename Parent> |
798 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
799 | 55.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
800 | 55.8k | return _writer->sink(block, eos); |
801 | 55.8k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 979 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 979 | return _writer->sink(block, eos); | 801 | 979 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 54.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 54.7k | return _writer->sink(block, eos); | 801 | 54.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 63 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 63 | return _writer->sink(block, eos); | 801 | 63 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
802 | | |
803 | | template <typename Writer, typename Parent> |
804 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
805 | 42.1k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
806 | 42.1k | if (_closed) { |
807 | 0 | return Status::OK(); |
808 | 0 | } |
809 | 42.1k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
810 | 42.1k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
811 | | // if the init failed, the _writer may be nullptr. so here need check |
812 | 42.1k | if (_writer) { |
813 | 42.1k | Status st = _writer->get_writer_status(); |
814 | 42.1k | if (exec_status.ok()) { |
815 | 42.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
816 | 42.0k | : Status::Cancelled("force close")); |
817 | 42.0k | } else { |
818 | 106 | _writer->force_close(exec_status); |
819 | 106 | } |
820 | | // If there is an error in process_block thread, then we should get the writer |
821 | | // status before call force_close. For example, the thread may failed in commit |
822 | | // transaction. |
823 | 42.1k | RETURN_IF_ERROR(st); |
824 | 42.1k | } |
825 | 42.0k | return Base::close(state, exec_status); |
826 | 42.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 297 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 297 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 297 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 297 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 811 | | // if the init failed, the _writer may be nullptr. so here need check | 812 | 297 | if (_writer) { | 813 | 297 | Status st = _writer->get_writer_status(); | 814 | 297 | if (exec_status.ok()) { | 815 | 297 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 297 | : Status::Cancelled("force close")); | 817 | 297 | } else { | 818 | 0 | _writer->force_close(exec_status); | 819 | 0 | } | 820 | | // If there is an error in process_block thread, then we should get the writer | 821 | | // status before call force_close. For example, the thread may failed in commit | 822 | | // transaction. | 823 | 297 | RETURN_IF_ERROR(st); | 824 | 297 | } | 825 | 297 | return Base::close(state, exec_status); | 826 | 297 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 41.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 41.7k | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 41.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 41.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 811 | | // if the init failed, the _writer may be nullptr. so here need check | 812 | 41.7k | if (_writer) { | 813 | 41.7k | Status st = _writer->get_writer_status(); | 814 | 41.7k | if (exec_status.ok()) { | 815 | 41.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 41.6k | : Status::Cancelled("force close")); | 817 | 41.6k | } else { | 818 | 106 | _writer->force_close(exec_status); | 819 | 106 | } | 820 | | // If there is an error in process_block thread, then we should get the writer | 821 | | // status before call force_close. For example, the thread may failed in commit | 822 | | // transaction. | 823 | 41.7k | RETURN_IF_ERROR(st); | 824 | 41.7k | } | 825 | 41.7k | return Base::close(state, exec_status); | 826 | 41.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 63 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 63 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 63 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 63 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 811 | | // if the init failed, the _writer may be nullptr. so here need check | 812 | 63 | if (_writer) { | 813 | 63 | Status st = _writer->get_writer_status(); | 814 | 63 | if (exec_status.ok()) { | 815 | 63 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 63 | : Status::Cancelled("force close")); | 817 | 63 | } else { | 818 | 0 | _writer->force_close(exec_status); | 819 | 0 | } | 820 | | // If there is an error in process_block thread, then we should get the writer | 821 | | // status before call force_close. For example, the thread may failed in commit | 822 | | // transaction. | 823 | 63 | RETURN_IF_ERROR(st); | 824 | 63 | } | 825 | 63 | return Base::close(state, exec_status); | 826 | 63 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
827 | | |
828 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
829 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
830 | | DECLARE_OPERATOR(ResultSinkLocalState) |
831 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
832 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
833 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
834 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
835 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
836 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
837 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
838 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
839 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
840 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
841 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
842 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
843 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
844 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
845 | | DECLARE_OPERATOR(SortSinkLocalState) |
846 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
847 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
848 | | DECLARE_OPERATOR(AggSinkLocalState) |
849 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
850 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
851 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
852 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
853 | | DECLARE_OPERATOR(UnionSinkLocalState) |
854 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
855 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
856 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
857 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
858 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
859 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
860 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
861 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
862 | | DECLARE_OPERATOR(CacheSinkLocalState) |
863 | | DECLARE_OPERATOR(DictSinkLocalState) |
864 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
865 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
866 | | |
867 | | #undef DECLARE_OPERATOR |
868 | | |
869 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
870 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
871 | | DECLARE_OPERATOR(OlapScanLocalState) |
872 | | DECLARE_OPERATOR(GroupCommitLocalState) |
873 | | DECLARE_OPERATOR(JDBCScanLocalState) |
874 | | DECLARE_OPERATOR(FileScanLocalState) |
875 | | DECLARE_OPERATOR(AnalyticLocalState) |
876 | | DECLARE_OPERATOR(SortLocalState) |
877 | | DECLARE_OPERATOR(SpillSortLocalState) |
878 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
879 | | DECLARE_OPERATOR(AggLocalState) |
880 | | DECLARE_OPERATOR(BucketedAggLocalState) |
881 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
882 | | DECLARE_OPERATOR(TableFunctionLocalState) |
883 | | DECLARE_OPERATOR(ExchangeLocalState) |
884 | | DECLARE_OPERATOR(RepeatLocalState) |
885 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
886 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
887 | | DECLARE_OPERATOR(EmptySetLocalState) |
888 | | DECLARE_OPERATOR(UnionSourceLocalState) |
889 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
890 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
891 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
892 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
893 | | DECLARE_OPERATOR(DataGenLocalState) |
894 | | DECLARE_OPERATOR(SchemaScanLocalState) |
895 | | DECLARE_OPERATOR(MetaScanLocalState) |
896 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
897 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
898 | | DECLARE_OPERATOR(CacheSourceLocalState) |
899 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
900 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
901 | | |
902 | | #ifdef BE_TEST |
903 | | DECLARE_OPERATOR(MockLocalState) |
904 | | DECLARE_OPERATOR(MockScanLocalState) |
905 | | #endif |
906 | | #undef DECLARE_OPERATOR |
907 | | |
908 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
909 | | template class StreamingOperatorX<SelectLocalState>; |
910 | | |
911 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
912 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
913 | | template class StatefulOperatorX<RepeatLocalState>; |
914 | | template class StatefulOperatorX<MaterializationLocalState>; |
915 | | template class StatefulOperatorX<StreamingAggLocalState>; |
916 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
917 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
918 | | template class StatefulOperatorX<TableFunctionLocalState>; |
919 | | |
920 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
921 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
922 | | template class PipelineXSinkLocalState<SortSharedState>; |
923 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
924 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
925 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
926 | | template class PipelineXSinkLocalState<AggSharedState>; |
927 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
928 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
929 | | template class PipelineXSinkLocalState<FakeSharedState>; |
930 | | template class PipelineXSinkLocalState<UnionSharedState>; |
931 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
932 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
933 | | template class PipelineXSinkLocalState<SetSharedState>; |
934 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
935 | | template class PipelineXSinkLocalState<BasicSharedState>; |
936 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
937 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
938 | | |
939 | | template class PipelineXLocalState<HashJoinSharedState>; |
940 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
941 | | template class PipelineXLocalState<SortSharedState>; |
942 | | template class PipelineXLocalState<SpillSortSharedState>; |
943 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
944 | | template class PipelineXLocalState<AnalyticSharedState>; |
945 | | template class PipelineXLocalState<AggSharedState>; |
946 | | template class PipelineXLocalState<BucketedAggSharedState>; |
947 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
948 | | template class PipelineXLocalState<FakeSharedState>; |
949 | | template class PipelineXLocalState<UnionSharedState>; |
950 | | template class PipelineXLocalState<DataQueueSharedState>; |
951 | | template class PipelineXLocalState<MultiCastSharedState>; |
952 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
953 | | template class PipelineXLocalState<SetSharedState>; |
954 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
955 | | template class PipelineXLocalState<BasicSharedState>; |
956 | | template class PipelineXLocalState<RecCTESharedState>; |
957 | | |
958 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
959 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
960 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
962 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
963 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
964 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
965 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
966 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
967 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
968 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
969 | | |
970 | | #ifdef BE_TEST |
971 | | template class OperatorX<DummyOperatorLocalState>; |
972 | | template class DataSinkOperatorX<DummySinkLocalState>; |
973 | | #endif |
974 | | |
975 | | } // namespace doris |