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