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_table_sink_operator.h" |
46 | | #include "exec/operator/jdbc_scan_operator.h" |
47 | | #include "exec/operator/jdbc_table_sink_operator.h" |
48 | | #include "exec/operator/local_merge_sort_source_operator.h" |
49 | | #include "exec/operator/materialization_opertor.h" |
50 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
51 | | #include "exec/operator/memory_scratch_sink_operator.h" |
52 | | #include "exec/operator/meta_scan_operator.h" |
53 | | #include "exec/operator/mock_operator.h" |
54 | | #include "exec/operator/mock_scan_operator.h" |
55 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
56 | | #include "exec/operator/multi_cast_data_stream_source.h" |
57 | | #include "exec/operator/nested_loop_join_build_operator.h" |
58 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
59 | | #include "exec/operator/olap_scan_operator.h" |
60 | | #include "exec/operator/olap_table_sink_operator.h" |
61 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
62 | | #include "exec/operator/partition_sort_sink_operator.h" |
63 | | #include "exec/operator/partition_sort_source_operator.h" |
64 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
65 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
66 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
67 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
68 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
69 | | #include "exec/operator/rec_cte_scan_operator.h" |
70 | | #include "exec/operator/rec_cte_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_source_operator.h" |
72 | | #include "exec/operator/repeat_operator.h" |
73 | | #include "exec/operator/result_file_sink_operator.h" |
74 | | #include "exec/operator/result_sink_operator.h" |
75 | | #include "exec/operator/schema_scan_operator.h" |
76 | | #include "exec/operator/select_operator.h" |
77 | | #include "exec/operator/set_probe_sink_operator.h" |
78 | | #include "exec/operator/set_sink_operator.h" |
79 | | #include "exec/operator/set_source_operator.h" |
80 | | #include "exec/operator/sort_sink_operator.h" |
81 | | #include "exec/operator/sort_source_operator.h" |
82 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
83 | | #include "exec/operator/spill_sort_sink_operator.h" |
84 | | #include "exec/operator/spill_sort_source_operator.h" |
85 | | #include "exec/operator/streaming_aggregation_operator.h" |
86 | | #include "exec/operator/table_function_operator.h" |
87 | | #include "exec/operator/tvf_table_sink_operator.h" |
88 | | #include "exec/operator/union_sink_operator.h" |
89 | | #include "exec/operator/union_source_operator.h" |
90 | | #include "exec/pipeline/dependency.h" |
91 | | #include "exec/pipeline/pipeline.h" |
92 | | #include "exprs/vexpr.h" |
93 | | #include "exprs/vexpr_context.h" |
94 | | #include "runtime/runtime_profile.h" |
95 | | #include "runtime/runtime_profile_counter_names.h" |
96 | | #include "util/debug_util.h" |
97 | | #include "util/string_util.h" |
98 | | |
99 | | namespace doris { |
100 | | #include "common/compile_check_begin.h" |
101 | | class RowDescriptor; |
102 | | class RuntimeState; |
103 | | } // namespace doris |
104 | | |
105 | | namespace doris { |
106 | | |
107 | 0 | Status OperatorBase::close(RuntimeState* state) { |
108 | 0 | if (_is_closed) { |
109 | 0 | return Status::OK(); |
110 | 0 | } |
111 | 0 | _is_closed = true; |
112 | 0 | return Status::OK(); |
113 | 0 | } |
114 | | |
115 | | template <typename SharedStateArg> |
116 | 38.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
117 | 38.5k | if (_parent->nereids_id() == -1) { |
118 | 6.92k | return fmt::format("(id={})", _parent->node_id()); |
119 | 31.6k | } else { |
120 | 31.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
121 | 31.6k | } |
122 | 38.5k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 24.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 24.0k | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 24.0k | } else { | 120 | 24.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 24.0k | } | 122 | 24.0k | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 1 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 1 | if (_parent->nereids_id() == -1) { | 118 | 1 | return fmt::format("(id={})", _parent->node_id()); | 119 | 1 | } else { | 120 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 0 | } | 122 | 1 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 531 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 531 | if (_parent->nereids_id() == -1) { | 118 | 12 | return fmt::format("(id={})", _parent->node_id()); | 119 | 519 | } else { | 120 | 519 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 519 | } | 122 | 531 | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 13 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 13 | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 13 | } else { | 120 | 13 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 13 | } | 122 | 13 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 980 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 980 | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 980 | } else { | 120 | 980 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 980 | } | 122 | 980 | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 9 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 9 | if (_parent->nereids_id() == -1) { | 118 | 9 | return fmt::format("(id={})", _parent->node_id()); | 119 | 9 | } else { | 120 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 0 | } | 122 | 9 | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 4.64k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 4.64k | if (_parent->nereids_id() == -1) { | 118 | 27 | return fmt::format("(id={})", _parent->node_id()); | 119 | 4.61k | } else { | 120 | 4.61k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 4.61k | } | 122 | 4.64k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 607 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 607 | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 607 | } else { | 120 | 607 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 607 | } | 122 | 607 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 5.91k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 5.91k | if (_parent->nereids_id() == -1) { | 118 | 5.20k | return fmt::format("(id={})", _parent->node_id()); | 119 | 5.20k | } else { | 120 | 711 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 711 | } | 122 | 5.91k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 130 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 130 | if (_parent->nereids_id() == -1) { | 118 | 2 | return fmt::format("(id={})", _parent->node_id()); | 119 | 128 | } else { | 120 | 128 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 128 | } | 122 | 130 | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 3 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 3 | if (_parent->nereids_id() == -1) { | 118 | 3 | return fmt::format("(id={})", _parent->node_id()); | 119 | 3 | } else { | 120 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 0 | } | 122 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 1.47k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 1.47k | if (_parent->nereids_id() == -1) { | 118 | 1.47k | return fmt::format("(id={})", _parent->node_id()); | 119 | 1.47k | } else { | 120 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 0 | } | 122 | 1.47k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 102 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 102 | if (_parent->nereids_id() == -1) { | 118 | 102 | return fmt::format("(id={})", _parent->node_id()); | 119 | 102 | } else { | 120 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 0 | } | 122 | 102 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 12 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 12 | if (_parent->nereids_id() == -1) { | 118 | 12 | return fmt::format("(id={})", _parent->node_id()); | 119 | 12 | } else { | 120 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 0 | } | 122 | 12 | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 82 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 82 | if (_parent->nereids_id() == -1) { | 118 | 82 | return fmt::format("(id={})", _parent->node_id()); | 119 | 82 | } else { | 120 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 0 | } | 122 | 82 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev |
123 | | |
124 | | template <typename SharedStateArg> |
125 | 81.1k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
126 | 81.1k | if (_parent->nereids_id() == -1) { |
127 | 2.36k | return fmt::format("(id={})", _parent->node_id()); |
128 | 78.8k | } else { |
129 | 78.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
130 | 78.8k | } |
131 | 81.1k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 72.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 72.0k | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 72.0k | } else { | 129 | 72.0k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 72.0k | } | 131 | 72.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 2 | if (_parent->nereids_id() == -1) { | 127 | 1 | return fmt::format("(id={})", _parent->node_id()); | 128 | 1 | } else { | 129 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 1 | } | 131 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 534 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 534 | if (_parent->nereids_id() == -1) { | 127 | 9 | return fmt::format("(id={})", _parent->node_id()); | 128 | 525 | } else { | 129 | 525 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 525 | } | 131 | 534 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 19 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 19 | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 19 | } else { | 129 | 19 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 19 | } | 131 | 19 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 980 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 980 | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 980 | } else { | 129 | 980 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 980 | } | 131 | 980 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 9 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 9 | if (_parent->nereids_id() == -1) { | 127 | 9 | return fmt::format("(id={})", _parent->node_id()); | 128 | 9 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 4.65k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 4.65k | if (_parent->nereids_id() == -1) { | 127 | 27 | return fmt::format("(id={})", _parent->node_id()); | 128 | 4.62k | } else { | 129 | 4.62k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 4.62k | } | 131 | 4.65k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 617 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 617 | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 617 | } else { | 129 | 617 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 617 | } | 131 | 617 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 3 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 3 | if (_parent->nereids_id() == -1) { | 127 | 3 | return fmt::format("(id={})", _parent->node_id()); | 128 | 3 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 102 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 102 | if (_parent->nereids_id() == -1) { | 127 | 102 | return fmt::format("(id={})", _parent->node_id()); | 128 | 102 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 102 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 27 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 27 | if (_parent->nereids_id() == -1) { | 127 | 27 | return fmt::format("(id={})", _parent->node_id()); | 128 | 27 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 27 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 10 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 10 | if (_parent->nereids_id() == -1) { | 127 | 10 | return fmt::format("(id={})", _parent->node_id()); | 128 | 10 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 10 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 2.17k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 2.17k | if (_parent->nereids_id() == -1) { | 127 | 2.17k | return fmt::format("(id={})", _parent->node_id()); | 128 | 2.17k | } else { | 129 | 2 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 2 | } | 131 | 2.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 3 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 3 | if (_parent->nereids_id() == -1) { | 127 | 3 | return fmt::format("(id={})", _parent->node_id()); | 128 | 3 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 3 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev |
132 | | |
133 | | template <typename SharedStateArg> |
134 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
135 | 24.0k | if (_terminated) { |
136 | 0 | return Status::OK(); |
137 | 0 | } |
138 | 24.0k | _terminated = true; |
139 | 24.0k | return Status::OK(); |
140 | 24.0k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 24.0k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 24.0k | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 24.0k | _terminated = true; | 139 | 24.0k | return Status::OK(); | 140 | 24.0k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 2 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 2 | _terminated = true; | 139 | 2 | return Status::OK(); | 140 | 2 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 1 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 1 | _terminated = true; | 139 | 1 | return Status::OK(); | 140 | 1 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 28 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 28 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 28 | _terminated = true; | 139 | 28 | return Status::OK(); | 140 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 2 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 2 | _terminated = true; | 139 | 2 | return Status::OK(); | 140 | 2 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 4 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 4 | _terminated = true; | 139 | 4 | return Status::OK(); | 140 | 4 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE |
141 | | |
142 | 19.7k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
143 | 19.7k | return _child && _child->is_serial_operator() && !is_source() |
144 | 19.7k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
145 | 19.7k | : DataDistribution(ExchangeType::NOOP); |
146 | 19.7k | } |
147 | | |
148 | 72.0k | const RowDescriptor& OperatorBase::row_desc() const { |
149 | 72.0k | return _child->row_desc(); |
150 | 72.0k | } |
151 | | |
152 | | template <typename SharedStateArg> |
153 | 51.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
154 | 51.3k | fmt::memory_buffer debug_string_buffer; |
155 | 51.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
156 | 51.3k | return fmt::to_string(debug_string_buffer); |
157 | 51.3k | } Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 3 | fmt::memory_buffer debug_string_buffer; | 155 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 3 | return fmt::to_string(debug_string_buffer); | 157 | 3 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 51.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 51.3k | fmt::memory_buffer debug_string_buffer; | 155 | 51.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 51.3k | return fmt::to_string(debug_string_buffer); | 157 | 51.3k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
158 | | |
159 | | template <typename SharedStateArg> |
160 | 51.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
161 | 51.3k | fmt::memory_buffer debug_string_buffer; |
162 | 51.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
163 | 51.3k | return fmt::to_string(debug_string_buffer); |
164 | 51.3k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 160 | 51.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 161 | 51.3k | fmt::memory_buffer debug_string_buffer; | 162 | 51.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 163 | 51.3k | return fmt::to_string(debug_string_buffer); | 164 | 51.3k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
165 | | |
166 | 51.4k | std::string OperatorXBase::debug_string(int indentation_level) const { |
167 | 51.4k | fmt::memory_buffer debug_string_buffer; |
168 | 51.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
169 | 51.4k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
170 | 51.4k | _is_serial_operator); |
171 | 51.4k | return fmt::to_string(debug_string_buffer); |
172 | 51.4k | } |
173 | | |
174 | 51.3k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
175 | 51.3k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
176 | 51.3k | } |
177 | | |
178 | 38.8k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
179 | 38.8k | std::string node_name = print_plan_node_type(tnode.node_type); |
180 | 38.8k | _nereids_id = tnode.nereids_id; |
181 | 38.8k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
182 | 0 | if (!tnode.__isset.output_tuple_id) { |
183 | 0 | return Status::InternalError("no final output tuple id"); |
184 | 0 | } |
185 | 0 | if (tnode.intermediate_output_tuple_id_list.size() != |
186 | 0 | tnode.intermediate_projections_list.size()) { |
187 | 0 | return Status::InternalError( |
188 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
189 | 0 | "intermediate_projections_list size:{}", |
190 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
191 | 0 | tnode.intermediate_projections_list.size()); |
192 | 0 | } |
193 | 0 | } |
194 | 38.8k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
195 | 38.8k | _op_name = substr + "_OPERATOR"; |
196 | | |
197 | 38.8k | if (tnode.__isset.vconjunct) { |
198 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
199 | 38.8k | } else if (tnode.__isset.conjuncts) { |
200 | 3.17k | for (const auto& conjunct : tnode.conjuncts) { |
201 | 3.17k | VExprContextSPtr context; |
202 | 3.17k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
203 | 3.17k | _conjuncts.emplace_back(context); |
204 | 3.17k | } |
205 | 930 | } |
206 | | |
207 | | // create the projections expr |
208 | 38.8k | if (tnode.__isset.projections) { |
209 | 29.5k | DCHECK(tnode.__isset.output_tuple_id); |
210 | 29.5k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
211 | 29.5k | } |
212 | 38.8k | if (!tnode.intermediate_projections_list.empty()) { |
213 | 0 | DCHECK(tnode.__isset.projections) << "no final projections"; |
214 | 0 | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
215 | 0 | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
216 | 0 | VExprContextSPtrs projections; |
217 | 0 | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
218 | 0 | _intermediate_projections.push_back(projections); |
219 | 0 | } |
220 | 0 | } |
221 | 38.8k | return Status::OK(); |
222 | 38.8k | } |
223 | | |
224 | 64.3k | Status OperatorXBase::prepare(RuntimeState* state) { |
225 | 64.3k | for (auto& conjunct : _conjuncts) { |
226 | 3.16k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
227 | 3.16k | } |
228 | 64.3k | if (state->enable_adjust_conjunct_order_by_cost()) { |
229 | 16.1k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
230 | 4.44k | return a->execute_cost() < b->execute_cost(); |
231 | 4.44k | }); |
232 | 16.1k | }; |
233 | | |
234 | 64.3k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
235 | 0 | RETURN_IF_ERROR( |
236 | 0 | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
237 | 0 | } |
238 | 64.3k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
239 | | |
240 | 64.3k | if (has_output_row_desc()) { |
241 | 29.5k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
242 | 29.5k | } |
243 | | |
244 | 64.3k | for (auto& conjunct : _conjuncts) { |
245 | 3.16k | RETURN_IF_ERROR(conjunct->open(state)); |
246 | 3.16k | } |
247 | 64.3k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
248 | 64.3k | for (auto& projections : _intermediate_projections) { |
249 | 0 | RETURN_IF_ERROR(VExpr::open(projections, state)); |
250 | 0 | } |
251 | 64.3k | if (_child && !is_source()) { |
252 | 25.7k | RETURN_IF_ERROR(_child->prepare(state)); |
253 | 25.7k | } |
254 | | |
255 | 64.3k | if (VExpr::contains_blockable_function(_conjuncts) || |
256 | 64.3k | VExpr::contains_blockable_function(_projections)) { |
257 | 0 | _blockable = true; |
258 | 0 | } |
259 | | |
260 | 64.3k | return Status::OK(); |
261 | 64.3k | } |
262 | | |
263 | 39 | Status OperatorXBase::terminate(RuntimeState* state) { |
264 | 39 | if (_child && !is_source()) { |
265 | 2 | RETURN_IF_ERROR(_child->terminate(state)); |
266 | 2 | } |
267 | 39 | auto result = state->get_local_state_result(operator_id()); |
268 | 39 | if (!result) { |
269 | 0 | return result.error(); |
270 | 0 | } |
271 | 39 | return result.value()->terminate(state); |
272 | 39 | } |
273 | | |
274 | 60.2k | Status OperatorXBase::close(RuntimeState* state) { |
275 | 60.2k | if (_child && !is_source()) { |
276 | 27.3k | RETURN_IF_ERROR(_child->close(state)); |
277 | 27.3k | } |
278 | 60.2k | auto result = state->get_local_state_result(operator_id()); |
279 | 60.2k | if (!result) { |
280 | 0 | return result.error(); |
281 | 0 | } |
282 | 60.2k | return result.value()->close(state); |
283 | 60.2k | } |
284 | | |
285 | 4.49k | void PipelineXLocalStateBase::clear_origin_block() { |
286 | 4.49k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
287 | 4.49k | } |
288 | | |
289 | 9.87k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
290 | 9.87k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
291 | | |
292 | 9.87k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
293 | 9.87k | return Status::OK(); |
294 | 9.87k | } |
295 | | |
296 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
297 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
298 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
299 | 0 | } |
300 | | |
301 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
302 | 4.49k | Block* output_block) const { |
303 | 4.49k | auto* local_state = state->get_local_state(operator_id()); |
304 | 4.49k | SCOPED_TIMER(local_state->exec_time_counter()); |
305 | 4.49k | SCOPED_TIMER(local_state->_projection_timer); |
306 | 4.49k | const size_t rows = origin_block->rows(); |
307 | 4.49k | if (rows == 0) { |
308 | 867 | return Status::OK(); |
309 | 867 | } |
310 | 3.62k | Block input_block = *origin_block; |
311 | | |
312 | 3.62k | size_t bytes_usage = 0; |
313 | 3.62k | ColumnsWithTypeAndName new_columns; |
314 | 3.62k | for (const auto& projections : local_state->_intermediate_projections) { |
315 | 0 | if (projections.empty()) { |
316 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
317 | 0 | node_id()); |
318 | 0 | } |
319 | 0 | new_columns.resize(projections.size()); |
320 | 0 | for (int i = 0; i < projections.size(); i++) { |
321 | 0 | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
322 | 0 | if (new_columns[i].column->size() != rows) { |
323 | 0 | return Status::InternalError( |
324 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
325 | 0 | "expr: {}", |
326 | 0 | new_columns[i].column->size(), rows, |
327 | 0 | projections[i]->root()->debug_string()); |
328 | 0 | } |
329 | 0 | } |
330 | 0 | Block tmp_block {new_columns}; |
331 | 0 | bytes_usage += tmp_block.allocated_bytes(); |
332 | 0 | input_block.swap(tmp_block); |
333 | 0 | } |
334 | | |
335 | 3.62k | if (input_block.rows() != rows) { |
336 | 0 | return Status::InternalError( |
337 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
338 | 0 | "input_block: {}", |
339 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
340 | 0 | } |
341 | 20.3k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
342 | 20.3k | if (to->is_nullable() && !from->is_nullable()) { |
343 | 0 | if (_keep_origin || !from->is_exclusive()) { |
344 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
345 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
346 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
347 | 0 | bytes_usage += null_column.allocated_bytes(); |
348 | 0 | } else { |
349 | 0 | to = make_nullable(from, false)->assume_mutable(); |
350 | 0 | } |
351 | 20.3k | } else { |
352 | 20.3k | if (_keep_origin || !from->is_exclusive()) { |
353 | 19.8k | to->insert_range_from(*from, 0, rows); |
354 | 19.8k | bytes_usage += from->allocated_bytes(); |
355 | 19.8k | } else { |
356 | 486 | to = from->assume_mutable(); |
357 | 486 | } |
358 | 20.3k | } |
359 | 20.3k | }; |
360 | | |
361 | 3.62k | MutableBlock mutable_block = |
362 | 3.62k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
363 | 3.62k | if (rows != 0) { |
364 | 3.62k | auto& mutable_columns = mutable_block.mutable_columns(); |
365 | 3.62k | const size_t origin_columns_count = input_block.columns(); |
366 | 3.62k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
367 | 23.9k | for (int i = 0; i < mutable_columns.size(); ++i) { |
368 | 20.3k | auto result_column_id = -1; |
369 | 20.3k | ColumnPtr column_ptr; |
370 | 20.3k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
371 | 20.3k | 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 | 20.3k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
378 | 20.3k | if (result_column_id >= origin_columns_count) { |
379 | 20.3k | bytes_usage += column_ptr->allocated_bytes(); |
380 | 20.3k | } |
381 | 20.3k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
382 | 20.3k | } |
383 | 3.62k | DCHECK(mutable_block.rows() == rows); |
384 | 3.62k | output_block->set_columns(std::move(mutable_columns)); |
385 | 3.62k | } |
386 | | |
387 | 3.62k | local_state->_estimate_memory_usage += bytes_usage; |
388 | | |
389 | 3.62k | return Status::OK(); |
390 | 3.62k | } |
391 | | |
392 | 908k | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
393 | 908k | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
394 | 908k | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
395 | 908k | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
396 | 908k | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
397 | 908k | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
398 | 908k | if (_debug_point_count++ % 2 == 0) { |
399 | 908k | return Status::OK(); |
400 | 908k | } |
401 | 908k | } |
402 | 908k | }); |
403 | | |
404 | 908k | Status status; |
405 | 908k | auto* local_state = state->get_local_state(operator_id()); |
406 | 908k | Defer defer([&]() { |
407 | 908k | if (status.ok()) { |
408 | 908k | if (auto rows = block->rows()) { |
409 | 30.5k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
410 | 30.5k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
411 | 30.5k | } |
412 | 908k | } |
413 | 908k | }); |
414 | 908k | if (_output_row_descriptor) { |
415 | 4.49k | local_state->clear_origin_block(); |
416 | 4.49k | status = get_block(state, &local_state->_origin_block, eos); |
417 | 4.49k | if (UNLIKELY(!status.ok())) { |
418 | 0 | return status; |
419 | 0 | } |
420 | 4.49k | status = do_projections(state, &local_state->_origin_block, block); |
421 | 4.49k | return status; |
422 | 4.49k | } |
423 | 903k | status = get_block(state, block, eos); |
424 | 903k | RETURN_IF_ERROR(block->check_type_and_column()); |
425 | 903k | return status; |
426 | 903k | } |
427 | | |
428 | 19.1k | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
429 | 19.1k | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
430 | 172 | block->set_num_rows(_parent->_limit - _num_rows_returned); |
431 | 172 | *eos = true; |
432 | 172 | } |
433 | | |
434 | 19.1k | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
435 | 19.1k | auto op_name = to_lower(_parent->_op_name); |
436 | 19.1k | auto arg_op_name = dp->param<std::string>("op_name"); |
437 | 19.1k | arg_op_name = to_lower(arg_op_name); |
438 | | |
439 | 19.1k | if (op_name == arg_op_name) { |
440 | 19.1k | *eos = true; |
441 | 19.1k | } |
442 | 19.1k | }); |
443 | | |
444 | 19.1k | if (auto rows = block->rows()) { |
445 | 10.7k | _num_rows_returned += rows; |
446 | 10.7k | } |
447 | 19.1k | } |
448 | | |
449 | 24.0k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
450 | 24.0k | auto result = state->get_sink_local_state_result(); |
451 | 24.0k | if (!result) { |
452 | 0 | return result.error(); |
453 | 0 | } |
454 | 24.0k | return result.value()->terminate(state); |
455 | 24.0k | } |
456 | | |
457 | 51.4k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
458 | 51.4k | fmt::memory_buffer debug_string_buffer; |
459 | | |
460 | 51.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
461 | 51.4k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
462 | 51.4k | return fmt::to_string(debug_string_buffer); |
463 | 51.4k | } |
464 | | |
465 | 51.3k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
466 | 51.3k | return state->get_sink_local_state()->debug_string(indentation_level); |
467 | 51.3k | } |
468 | | |
469 | 7.81k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
470 | 7.81k | std::string op_name = "UNKNOWN_SINK"; |
471 | 7.81k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
472 | | |
473 | 7.81k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
474 | 7.81k | op_name = it->second; |
475 | 7.81k | } |
476 | 7.81k | _name = op_name + "_OPERATOR"; |
477 | 7.81k | return Status::OK(); |
478 | 7.81k | } |
479 | | |
480 | 78.8k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
481 | 78.8k | std::string op_name = print_plan_node_type(tnode.node_type); |
482 | 78.8k | _nereids_id = tnode.nereids_id; |
483 | 78.8k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
484 | 78.8k | _name = substr + "_SINK_OPERATOR"; |
485 | 78.8k | return Status::OK(); |
486 | 78.8k | } |
487 | | |
488 | | template <typename LocalStateType> |
489 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
490 | 86.8k | LocalSinkStateInfo& info) { |
491 | 86.8k | auto local_state = LocalStateType::create_unique(this, state); |
492 | 86.8k | RETURN_IF_ERROR(local_state->init(state, info)); |
493 | 86.8k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
494 | 86.8k | return Status::OK(); |
495 | 86.8k | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 72.0k | LocalSinkStateInfo& info) { | 491 | 72.0k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 72.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 72.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 72.0k | return Status::OK(); | 495 | 72.0k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 1.96k | LocalSinkStateInfo& info) { | 491 | 1.96k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 1.96k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 1.96k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 1.96k | return Status::OK(); | 495 | 1.96k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 12 | LocalSinkStateInfo& info) { | 491 | 12 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 12 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 12 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 12 | return Status::OK(); | 495 | 12 | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 128 | LocalSinkStateInfo& info) { | 491 | 128 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 128 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 128 | return Status::OK(); | 495 | 128 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 525 | LocalSinkStateInfo& info) { | 491 | 525 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 525 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 525 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 525 | return Status::OK(); | 495 | 525 | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 19 | LocalSinkStateInfo& info) { | 491 | 19 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 19 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 19 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 19 | return Status::OK(); | 495 | 19 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 10 | LocalSinkStateInfo& info) { | 491 | 10 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 10 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 10 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 10 | return Status::OK(); | 495 | 10 | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 4.62k | LocalSinkStateInfo& info) { | 491 | 4.62k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 4.62k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 4.62k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 4.62k | return Status::OK(); | 495 | 4.62k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 617 | LocalSinkStateInfo& info) { | 491 | 617 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 617 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 617 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 617 | return Status::OK(); | 495 | 617 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 5.36k | LocalSinkStateInfo& info) { | 491 | 5.36k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 5.36k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 5.36k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 5.36k | return Status::OK(); | 495 | 5.36k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 980 | LocalSinkStateInfo& info) { | 491 | 980 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 980 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 980 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 980 | return Status::OK(); | 495 | 980 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 490 | LocalSinkStateInfo& info) { | 491 | 490 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 490 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 490 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 490 | return Status::OK(); | 495 | 490 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 1 | LocalSinkStateInfo& info) { | 491 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 1 | return Status::OK(); | 495 | 1 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 54 | LocalSinkStateInfo& info) { | 491 | 54 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 54 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 54 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 54 | return Status::OK(); | 495 | 54 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
496 | | |
497 | | template <typename LocalStateType> |
498 | 86.5k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
500 | 0 | LocalExchangeSharedState>) { |
501 | 0 | return nullptr; |
502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
503 | 0 | MultiCastSharedState>) { |
504 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
505 | 86.5k | } else { |
506 | 86.5k | auto ss = LocalStateType::SharedStateType::create_shared(); |
507 | 86.5k | ss->id = operator_id(); |
508 | 86.5k | for (auto& dest : dests_id()) { |
509 | 86.5k | ss->related_op_ids.insert(dest); |
510 | 86.5k | } |
511 | 86.5k | return ss; |
512 | 86.5k | } |
513 | 86.5k | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 72.0k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 72.0k | } else { | 506 | 72.0k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 72.0k | ss->id = operator_id(); | 508 | 72.0k | for (auto& dest : dests_id()) { | 509 | 72.0k | ss->related_op_ids.insert(dest); | 510 | 72.0k | } | 511 | 72.0k | return ss; | 512 | 72.0k | } | 513 | 72.0k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 1.96k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 1.96k | } else { | 506 | 1.96k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 1.96k | ss->id = operator_id(); | 508 | 1.96k | for (auto& dest : dests_id()) { | 509 | 1.96k | ss->related_op_ids.insert(dest); | 510 | 1.96k | } | 511 | 1.96k | return ss; | 512 | 1.96k | } | 513 | 1.96k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 12 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 12 | } else { | 506 | 12 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 12 | ss->id = operator_id(); | 508 | 12 | for (auto& dest : dests_id()) { | 509 | 12 | ss->related_op_ids.insert(dest); | 510 | 12 | } | 511 | 12 | return ss; | 512 | 12 | } | 513 | 12 | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 128 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 128 | } else { | 506 | 128 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 128 | ss->id = operator_id(); | 508 | 128 | for (auto& dest : dests_id()) { | 509 | 128 | ss->related_op_ids.insert(dest); | 510 | 128 | } | 511 | 128 | return ss; | 512 | 128 | } | 513 | 128 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 9 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 9 | } else { | 506 | 9 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 9 | ss->id = operator_id(); | 508 | 9 | for (auto& dest : dests_id()) { | 509 | 9 | ss->related_op_ids.insert(dest); | 510 | 9 | } | 511 | 9 | return ss; | 512 | 9 | } | 513 | 9 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 534 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 534 | } else { | 506 | 534 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 534 | ss->id = operator_id(); | 508 | 534 | for (auto& dest : dests_id()) { | 509 | 534 | ss->related_op_ids.insert(dest); | 510 | 534 | } | 511 | 534 | return ss; | 512 | 534 | } | 513 | 534 | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 21 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 21 | } else { | 506 | 21 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 21 | ss->id = operator_id(); | 508 | 21 | for (auto& dest : dests_id()) { | 509 | 21 | ss->related_op_ids.insert(dest); | 510 | 21 | } | 511 | 21 | return ss; | 512 | 21 | } | 513 | 21 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 4.65k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 4.65k | } else { | 506 | 4.65k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 4.65k | ss->id = operator_id(); | 508 | 4.65k | for (auto& dest : dests_id()) { | 509 | 4.65k | ss->related_op_ids.insert(dest); | 510 | 4.65k | } | 511 | 4.65k | return ss; | 512 | 4.65k | } | 513 | 4.65k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 616 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 616 | } else { | 506 | 616 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 616 | ss->id = operator_id(); | 508 | 616 | for (auto& dest : dests_id()) { | 509 | 616 | ss->related_op_ids.insert(dest); | 510 | 616 | } | 511 | 616 | return ss; | 512 | 616 | } | 513 | 616 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 5.37k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 5.37k | } else { | 506 | 5.37k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 5.37k | ss->id = operator_id(); | 508 | 5.37k | for (auto& dest : dests_id()) { | 509 | 5.36k | ss->related_op_ids.insert(dest); | 510 | 5.36k | } | 511 | 5.37k | return ss; | 512 | 5.37k | } | 513 | 5.37k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 980 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 980 | } else { | 506 | 980 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 980 | ss->id = operator_id(); | 508 | 980 | for (auto& dest : dests_id()) { | 509 | 980 | ss->related_op_ids.insert(dest); | 510 | 980 | } | 511 | 980 | return ss; | 512 | 980 | } | 513 | 980 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 102 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 102 | } else { | 506 | 102 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 102 | ss->id = operator_id(); | 508 | 102 | for (auto& dest : dests_id()) { | 509 | 102 | ss->related_op_ids.insert(dest); | 510 | 102 | } | 511 | 102 | return ss; | 512 | 102 | } | 513 | 102 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 498 | 7 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 7 | } else { | 506 | 7 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 7 | ss->id = operator_id(); | 508 | 7 | for (auto& dest : dests_id()) { | 509 | 7 | ss->related_op_ids.insert(dest); | 510 | 7 | } | 511 | 7 | return ss; | 512 | 7 | } | 513 | 7 | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 498 | 5 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 5 | } else { | 506 | 5 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 5 | ss->id = operator_id(); | 508 | 5 | for (auto& dest : dests_id()) { | 509 | 5 | ss->related_op_ids.insert(dest); | 510 | 5 | } | 511 | 5 | return ss; | 512 | 5 | } | 513 | 5 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 54 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 499 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 500 | | LocalExchangeSharedState>) { | 501 | | return nullptr; | 502 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 503 | | MultiCastSharedState>) { | 504 | | throw Exception(Status::FatalError("should not reach here!")); | 505 | 54 | } else { | 506 | 54 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 54 | ss->id = operator_id(); | 508 | 54 | for (auto& dest : dests_id()) { | 509 | 52 | ss->related_op_ids.insert(dest); | 510 | 52 | } | 511 | 54 | return ss; | 512 | 54 | } | 513 | 54 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
514 | | |
515 | | template <typename LocalStateType> |
516 | 40.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
517 | 40.4k | auto local_state = LocalStateType::create_unique(state, this); |
518 | 40.4k | RETURN_IF_ERROR(local_state->init(state, info)); |
519 | 40.4k | state->emplace_local_state(operator_id(), std::move(local_state)); |
520 | 40.4k | return Status::OK(); |
521 | 40.4k | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 24.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 24.0k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 24.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 24.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 24.0k | return Status::OK(); | 521 | 24.0k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 2.15k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 2.15k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 2.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 2.15k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 2.15k | return Status::OK(); | 521 | 2.15k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 6 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 6 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 6 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 6 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 6 | return Status::OK(); | 521 | 6 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 13 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 13 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 13 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 13 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 13 | return Status::OK(); | 521 | 13 | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 13 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 13 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 13 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 13 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 13 | return Status::OK(); | 521 | 13 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 506 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 506 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 506 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 506 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 506 | return Status::OK(); | 521 | 506 | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 4.61k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 4.61k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 4.61k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 4.61k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 4.61k | return Status::OK(); | 521 | 4.61k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 607 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 607 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 607 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 607 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 607 | return Status::OK(); | 521 | 607 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 2 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 2 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 2 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 2 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 2 | return Status::OK(); | 521 | 2 | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 5.17k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 5.17k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 5.17k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 5.17k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 5.17k | return Status::OK(); | 521 | 5.17k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 980 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 980 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 980 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 980 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 980 | return Status::OK(); | 521 | 980 | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 3 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 3 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 3 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 3 | return Status::OK(); | 521 | 3 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 3 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 3 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 3 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 3 | return Status::OK(); | 521 | 3 | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 128 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 128 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 128 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 128 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 128 | return Status::OK(); | 521 | 128 | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 1.47k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 1.47k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 1.47k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 1.47k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 1.47k | return Status::OK(); | 521 | 1.47k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 3 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 3 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 3 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 3 | return Status::OK(); | 521 | 3 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 82 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 82 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 82 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 82 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 82 | return Status::OK(); | 521 | 82 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 486 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 486 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 486 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 486 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 486 | return Status::OK(); | 521 | 486 | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 215 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 215 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 215 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 215 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 215 | return Status::OK(); | 521 | 215 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE |
522 | | |
523 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
524 | | RuntimeState* state) |
525 | 87.0k | : _parent(parent), _state(state) {} |
526 | | |
527 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
528 | 40.8k | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
529 | | |
530 | | template <typename SharedStateArg> |
531 | 40.6k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
532 | 40.6k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
533 | 40.6k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
534 | 40.6k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
535 | 40.6k | _operator_profile->set_metadata(_parent->node_id()); |
536 | | // indent is false so that source operator will have same |
537 | | // indentation_level with its parent operator. |
538 | 40.6k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
539 | 40.6k | _operator_profile->add_child(_common_profile.get(), true); |
540 | 40.6k | _operator_profile->add_child(_custom_profile.get(), true); |
541 | 40.6k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
542 | 40.6k | if constexpr (!is_fake_shared) { |
543 | 32.6k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
544 | 82 | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
545 | 82 | .first.get() |
546 | 82 | ->template cast<SharedStateArg>(); |
547 | | |
548 | 82 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
549 | 82 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
550 | 82 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
551 | 32.5k | } else if (info.shared_state) { |
552 | 32.4k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
553 | 0 | DCHECK(false); |
554 | 0 | } |
555 | | // For UnionSourceOperator without children, there is no shared state. |
556 | 32.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
557 | | |
558 | 32.4k | _dependency = _shared_state->create_source_dependency( |
559 | 32.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
560 | 32.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
561 | 32.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
562 | 32.4k | } else { |
563 | 129 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
564 | 0 | DCHECK(false); |
565 | 0 | } |
566 | 129 | } |
567 | 32.6k | } |
568 | | |
569 | 40.6k | if (must_set_shared_state() && _shared_state == nullptr) { |
570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
571 | 0 | } |
572 | | |
573 | 40.6k | _rows_returned_counter = |
574 | 40.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
575 | 40.6k | _blocks_returned_counter = |
576 | 40.6k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
577 | 40.6k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
578 | 40.6k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
579 | 40.6k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
580 | 40.6k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
581 | 40.6k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
582 | 40.6k | _memory_used_counter = |
583 | 40.6k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
584 | 40.6k | _common_profile->add_info_string("IsColocate", |
585 | 40.6k | std::to_string(_parent->is_colocated_operator())); |
586 | 40.6k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
587 | 40.6k | _common_profile->add_info_string("FollowedByShuffledOperator", |
588 | 40.6k | std::to_string(_parent->followed_by_shuffled_operator())); |
589 | 40.6k | return Status::OK(); |
590 | 40.6k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 24.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 24.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 24.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 24.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 24.0k | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 24.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 24.0k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 24.0k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 24.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 24.0k | if constexpr (!is_fake_shared) { | 543 | 24.0k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 24.0k | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 24.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 24.0k | _dependency = _shared_state->create_source_dependency( | 559 | 24.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 24.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 24.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 24.0k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 24.0k | } | 568 | | | 569 | 24.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 24.0k | _rows_returned_counter = | 574 | 24.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 24.0k | _blocks_returned_counter = | 576 | 24.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 24.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 24.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 24.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 24.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 24.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 24.0k | _memory_used_counter = | 583 | 24.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 24.0k | _common_profile->add_info_string("IsColocate", | 585 | 24.0k | std::to_string(_parent->is_colocated_operator())); | 586 | 24.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 24.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 24.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 24.0k | return Status::OK(); | 590 | 24.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 1 | if constexpr (!is_fake_shared) { | 543 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 1 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 1 | _dependency = _shared_state->create_source_dependency( | 559 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 1 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 1 | } | 568 | | | 569 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 1 | _rows_returned_counter = | 574 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 1 | _blocks_returned_counter = | 576 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 1 | _memory_used_counter = | 583 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 1 | _common_profile->add_info_string("IsColocate", | 585 | 1 | std::to_string(_parent->is_colocated_operator())); | 586 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 1 | return Status::OK(); | 590 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 531 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 531 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 531 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 531 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 531 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 531 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 531 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 531 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 531 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 531 | if constexpr (!is_fake_shared) { | 543 | 531 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 531 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 531 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 531 | _dependency = _shared_state->create_source_dependency( | 559 | 531 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 531 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 531 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 531 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 531 | } | 568 | | | 569 | 531 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 531 | _rows_returned_counter = | 574 | 531 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 531 | _blocks_returned_counter = | 576 | 531 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 531 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 531 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 531 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 531 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 531 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 531 | _memory_used_counter = | 583 | 531 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 531 | _common_profile->add_info_string("IsColocate", | 585 | 531 | std::to_string(_parent->is_colocated_operator())); | 586 | 531 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 531 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 531 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 531 | return Status::OK(); | 590 | 531 | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 13 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 13 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 13 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 13 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 13 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 13 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 13 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 13 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 13 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 13 | if constexpr (!is_fake_shared) { | 543 | 13 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 13 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 13 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 13 | _dependency = _shared_state->create_source_dependency( | 559 | 13 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 13 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 13 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 13 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 13 | } | 568 | | | 569 | 13 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 13 | _rows_returned_counter = | 574 | 13 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 13 | _blocks_returned_counter = | 576 | 13 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 13 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 13 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 13 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 13 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 13 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 13 | _memory_used_counter = | 583 | 13 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 13 | _common_profile->add_info_string("IsColocate", | 585 | 13 | std::to_string(_parent->is_colocated_operator())); | 586 | 13 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 13 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 13 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 13 | return Status::OK(); | 590 | 13 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 980 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 980 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 980 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 980 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 980 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 980 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 980 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 980 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 980 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 980 | if constexpr (!is_fake_shared) { | 543 | 980 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 980 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 980 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 980 | _dependency = _shared_state->create_source_dependency( | 559 | 980 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 980 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 980 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 980 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 980 | } | 568 | | | 569 | 980 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 980 | _rows_returned_counter = | 574 | 980 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 980 | _blocks_returned_counter = | 576 | 980 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 980 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 980 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 980 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 980 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 980 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 980 | _memory_used_counter = | 583 | 980 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 980 | _common_profile->add_info_string("IsColocate", | 585 | 980 | std::to_string(_parent->is_colocated_operator())); | 586 | 980 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 980 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 980 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 980 | return Status::OK(); | 590 | 980 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 9 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 9 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 9 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 9 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 9 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 9 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 9 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 9 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 9 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 9 | if constexpr (!is_fake_shared) { | 543 | 9 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 9 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 9 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 9 | _dependency = _shared_state->create_source_dependency( | 559 | 9 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 9 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 9 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 9 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 9 | } | 568 | | | 569 | 9 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 9 | _rows_returned_counter = | 574 | 9 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 9 | _blocks_returned_counter = | 576 | 9 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 9 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 9 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 9 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 9 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 9 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 9 | _memory_used_counter = | 583 | 9 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 9 | _common_profile->add_info_string("IsColocate", | 585 | 9 | std::to_string(_parent->is_colocated_operator())); | 586 | 9 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 9 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 9 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 9 | return Status::OK(); | 590 | 9 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 4.64k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 4.64k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 4.64k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 4.64k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 4.64k | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 4.64k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 4.64k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 4.64k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 4.64k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 4.64k | if constexpr (!is_fake_shared) { | 543 | 4.64k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 4.64k | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 4.64k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 4.64k | _dependency = _shared_state->create_source_dependency( | 559 | 4.64k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 4.64k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 4.64k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 4.64k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 4.64k | } | 568 | | | 569 | 4.64k | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 4.64k | _rows_returned_counter = | 574 | 4.64k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 4.64k | _blocks_returned_counter = | 576 | 4.64k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 4.64k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 4.64k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 4.64k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 4.64k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 4.64k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 4.64k | _memory_used_counter = | 583 | 4.64k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 4.64k | _common_profile->add_info_string("IsColocate", | 585 | 4.64k | std::to_string(_parent->is_colocated_operator())); | 586 | 4.64k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 4.64k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 4.64k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 4.64k | return Status::OK(); | 590 | 4.64k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 607 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 607 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 607 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 607 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 607 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 607 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 607 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 607 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 607 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 607 | if constexpr (!is_fake_shared) { | 543 | 607 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 607 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 607 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 607 | _dependency = _shared_state->create_source_dependency( | 559 | 607 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 607 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 607 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 607 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 607 | } | 568 | | | 569 | 607 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 607 | _rows_returned_counter = | 574 | 607 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 607 | _blocks_returned_counter = | 576 | 607 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 607 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 607 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 607 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 607 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 607 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 607 | _memory_used_counter = | 583 | 607 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 607 | _common_profile->add_info_string("IsColocate", | 585 | 607 | std::to_string(_parent->is_colocated_operator())); | 586 | 607 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 607 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 607 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 607 | return Status::OK(); | 590 | 607 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 8.07k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 8.07k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 8.07k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 8.07k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 8.07k | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 8.07k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 8.07k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 8.07k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 8.07k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | | if constexpr (!is_fake_shared) { | 543 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | | .first.get() | 546 | | ->template cast<SharedStateArg>(); | 547 | | | 548 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | | _dependency = _shared_state->create_source_dependency( | 559 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | | } | 567 | | } | 568 | | | 569 | 8.07k | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 8.07k | _rows_returned_counter = | 574 | 8.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 8.07k | _blocks_returned_counter = | 576 | 8.07k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 8.07k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 8.07k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 8.07k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 8.07k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 8.07k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 8.07k | _memory_used_counter = | 583 | 8.07k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 8.07k | _common_profile->add_info_string("IsColocate", | 585 | 8.07k | std::to_string(_parent->is_colocated_operator())); | 586 | 8.07k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 8.07k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 8.07k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 8.07k | return Status::OK(); | 590 | 8.07k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 130 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 130 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 130 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 130 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 130 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 130 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 130 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 130 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 130 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 130 | if constexpr (!is_fake_shared) { | 543 | 130 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 130 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 1 | _dependency = _shared_state->create_source_dependency( | 559 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 129 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 129 | } | 567 | 130 | } | 568 | | | 569 | 130 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 130 | _rows_returned_counter = | 574 | 130 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 130 | _blocks_returned_counter = | 576 | 130 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 130 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 130 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 130 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 130 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 130 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 130 | _memory_used_counter = | 583 | 130 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 130 | _common_profile->add_info_string("IsColocate", | 585 | 130 | std::to_string(_parent->is_colocated_operator())); | 586 | 130 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 130 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 130 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 130 | return Status::OK(); | 590 | 130 | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 3 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 3 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 3 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 3 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 3 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 3 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 3 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 3 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 3 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 3 | if constexpr (!is_fake_shared) { | 543 | 3 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 3 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 3 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 3 | _dependency = _shared_state->create_source_dependency( | 559 | 3 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 3 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 3 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 3 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 3 | } | 568 | | | 569 | 3 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 3 | _rows_returned_counter = | 574 | 3 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 3 | _blocks_returned_counter = | 576 | 3 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 3 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 3 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 3 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 3 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 3 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 3 | _memory_used_counter = | 583 | 3 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 3 | _common_profile->add_info_string("IsColocate", | 585 | 3 | std::to_string(_parent->is_colocated_operator())); | 586 | 3 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 3 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 3 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 3 | return Status::OK(); | 590 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 1.47k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 1.47k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 1.47k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 1.47k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 1.47k | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 1.47k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 1.47k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 1.47k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 1.47k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 1.47k | if constexpr (!is_fake_shared) { | 543 | 1.47k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 1.47k | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 1.47k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 1.47k | _dependency = _shared_state->create_source_dependency( | 559 | 1.47k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 1.47k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 1.47k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 1.47k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 1.47k | } | 568 | | | 569 | 1.47k | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 1.47k | _rows_returned_counter = | 574 | 1.47k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 1.47k | _blocks_returned_counter = | 576 | 1.47k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 1.47k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 1.47k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 1.47k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 1.47k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 1.47k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 1.47k | _memory_used_counter = | 583 | 1.47k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 1.47k | _common_profile->add_info_string("IsColocate", | 585 | 1.47k | std::to_string(_parent->is_colocated_operator())); | 586 | 1.47k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 1.47k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 1.47k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 1.47k | return Status::OK(); | 590 | 1.47k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 102 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 102 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 102 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 102 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 102 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 102 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 102 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 102 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 102 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 102 | if constexpr (!is_fake_shared) { | 543 | 102 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 102 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 102 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 102 | _dependency = _shared_state->create_source_dependency( | 559 | 102 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 102 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 102 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 102 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 102 | } | 568 | | | 569 | 102 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 102 | _rows_returned_counter = | 574 | 102 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 102 | _blocks_returned_counter = | 576 | 102 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 102 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 102 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 102 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 102 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 102 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 102 | _memory_used_counter = | 583 | 102 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 102 | _common_profile->add_info_string("IsColocate", | 585 | 102 | std::to_string(_parent->is_colocated_operator())); | 586 | 102 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 102 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 102 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 102 | return Status::OK(); | 590 | 102 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 12 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 12 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 12 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 12 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 12 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 12 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 12 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 12 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 12 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 12 | if constexpr (!is_fake_shared) { | 543 | 12 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 0 | .first.get() | 546 | 0 | ->template cast<SharedStateArg>(); | 547 | |
| 548 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 12 | } else if (info.shared_state) { | 552 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | | DCHECK(false); | 554 | | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 12 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 12 | _dependency = _shared_state->create_source_dependency( | 559 | 12 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 12 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 12 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 12 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 12 | } | 568 | | | 569 | 12 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 12 | _rows_returned_counter = | 574 | 12 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 12 | _blocks_returned_counter = | 576 | 12 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 12 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 12 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 12 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 12 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 12 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 12 | _memory_used_counter = | 583 | 12 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 12 | _common_profile->add_info_string("IsColocate", | 585 | 12 | std::to_string(_parent->is_colocated_operator())); | 586 | 12 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 12 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 12 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 12 | return Status::OK(); | 590 | 12 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 82 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 82 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 82 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 82 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 82 | _operator_profile->set_metadata(_parent->node_id()); | 536 | | // indent is false so that source operator will have same | 537 | | // indentation_level with its parent operator. | 538 | 82 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 82 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 82 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 82 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 82 | if constexpr (!is_fake_shared) { | 543 | 82 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 82 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 82 | .first.get() | 546 | 82 | ->template cast<SharedStateArg>(); | 547 | | | 548 | 82 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 82 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 82 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 82 | } else if (info.shared_state) { | 552 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 553 | 0 | DCHECK(false); | 554 | 0 | } | 555 | | // For UnionSourceOperator without children, there is no shared state. | 556 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | |
| 558 | 0 | _dependency = _shared_state->create_source_dependency( | 559 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 0 | } else { | 563 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | 0 | DCHECK(false); | 565 | 0 | } | 566 | 0 | } | 567 | 82 | } | 568 | | | 569 | 82 | if (must_set_shared_state() && _shared_state == nullptr) { | 570 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 571 | 0 | } | 572 | | | 573 | 82 | _rows_returned_counter = | 574 | 82 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 82 | _blocks_returned_counter = | 576 | 82 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 82 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 82 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 82 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 82 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 82 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 82 | _memory_used_counter = | 583 | 82 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 82 | _common_profile->add_info_string("IsColocate", | 585 | 82 | std::to_string(_parent->is_colocated_operator())); | 586 | 82 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 82 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 82 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 82 | return Status::OK(); | 590 | 82 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE |
591 | | |
592 | | template <typename SharedStateArg> |
593 | 40.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
594 | 40.6k | _conjuncts.resize(_parent->_conjuncts.size()); |
595 | 40.6k | _projections.resize(_parent->_projections.size()); |
596 | 44.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { |
597 | 4.06k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
598 | 4.06k | } |
599 | 139k | for (size_t i = 0; i < _projections.size(); i++) { |
600 | 99.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
601 | 99.0k | } |
602 | 40.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
603 | 40.6k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
607 | 0 | state, _intermediate_projections[i][j])); |
608 | 0 | } |
609 | 0 | } |
610 | 40.6k | return Status::OK(); |
611 | 40.6k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 24.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 24.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 24.0k | _projections.resize(_parent->_projections.size()); | 596 | 24.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 89.9k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 65.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 65.9k | } | 602 | 24.0k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 24.0k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 24.0k | return Status::OK(); | 611 | 24.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 3 | _projections.resize(_parent->_projections.size()); | 596 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 3 | return Status::OK(); | 611 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 528 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 528 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 528 | _projections.resize(_parent->_projections.size()); | 596 | 528 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 528 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 528 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 528 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 528 | return Status::OK(); | 611 | 528 | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 13 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 13 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 13 | _projections.resize(_parent->_projections.size()); | 596 | 13 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 13 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 13 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 13 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 13 | return Status::OK(); | 611 | 13 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 980 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 980 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 980 | _projections.resize(_parent->_projections.size()); | 596 | 980 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 8.82k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 7.84k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 7.84k | } | 602 | 980 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 980 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 980 | return Status::OK(); | 611 | 980 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 9 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 9 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 9 | _projections.resize(_parent->_projections.size()); | 596 | 9 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 9 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 9 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 9 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 9 | return Status::OK(); | 611 | 9 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 4.63k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 4.63k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 4.63k | _projections.resize(_parent->_projections.size()); | 596 | 4.63k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 13.9k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 9.30k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 9.30k | } | 602 | 4.63k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 4.63k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 4.63k | return Status::OK(); | 611 | 4.63k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 611 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 611 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 611 | _projections.resize(_parent->_projections.size()); | 596 | 611 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 1.41k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 806 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 806 | } | 602 | 611 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 611 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 611 | return Status::OK(); | 611 | 611 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 8.05k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 8.05k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 8.05k | _projections.resize(_parent->_projections.size()); | 596 | 11.2k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 3.16k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 3.16k | } | 599 | 21.1k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 13.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 13.1k | } | 602 | 8.05k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 8.05k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 8.05k | return Status::OK(); | 611 | 8.05k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 130 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 130 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 130 | _projections.resize(_parent->_projections.size()); | 596 | 130 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 2.10k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 1.97k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 1.97k | } | 602 | 130 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 130 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 130 | return Status::OK(); | 611 | 130 | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 3 | _projections.resize(_parent->_projections.size()); | 596 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 3 | return Status::OK(); | 611 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 1.47k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 1.47k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 1.47k | _projections.resize(_parent->_projections.size()); | 596 | 2.37k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 900 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 900 | } | 599 | 1.47k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 1.47k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 1.47k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 1.47k | return Status::OK(); | 611 | 1.47k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 102 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 102 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 102 | _projections.resize(_parent->_projections.size()); | 596 | 102 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 102 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 102 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 102 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 102 | return Status::OK(); | 611 | 102 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 12 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 12 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 12 | _projections.resize(_parent->_projections.size()); | 596 | 12 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 12 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 12 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 12 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 12 | return Status::OK(); | 611 | 12 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 82 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 82 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 82 | _projections.resize(_parent->_projections.size()); | 596 | 82 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 82 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 82 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 82 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 0 | state, _intermediate_projections[i][j])); | 608 | 0 | } | 609 | 0 | } | 610 | 82 | return Status::OK(); | 611 | 82 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE |
612 | | |
613 | | template <typename SharedStateArg> |
614 | 39 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
615 | 39 | if (_terminated) { |
616 | 0 | return Status::OK(); |
617 | 0 | } |
618 | 39 | _terminated = true; |
619 | 39 | return Status::OK(); |
620 | 39 | } Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 2 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 2 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 2 | _terminated = true; | 619 | 2 | return Status::OK(); | 620 | 2 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 37 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 37 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 37 | _terminated = true; | 619 | 37 | return Status::OK(); | 620 | 37 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE |
621 | | |
622 | | template <typename SharedStateArg> |
623 | 40.8k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
624 | 40.8k | if (_closed) { |
625 | 995 | return Status::OK(); |
626 | 995 | } |
627 | 39.8k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
628 | 31.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
629 | 31.7k | } |
630 | 39.8k | _closed = true; |
631 | 39.8k | return Status::OK(); |
632 | 40.8k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 24.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 24.0k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 24.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 24.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 24.0k | } | 630 | 24.0k | _closed = true; | 631 | 24.0k | return Status::OK(); | 632 | 24.0k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 3 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 3 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 3 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 3 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 3 | } | 630 | 3 | _closed = true; | 631 | 3 | return Status::OK(); | 632 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 1.01k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 1.01k | if (_closed) { | 625 | 506 | return Status::OK(); | 626 | 506 | } | 627 | 506 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 506 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 506 | } | 630 | 506 | _closed = true; | 631 | 506 | return Status::OK(); | 632 | 1.01k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 13 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 13 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 13 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 13 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 13 | } | 630 | 13 | _closed = true; | 631 | 13 | return Status::OK(); | 632 | 13 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 980 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 980 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 980 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 980 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 980 | } | 630 | 980 | _closed = true; | 631 | 980 | return Status::OK(); | 632 | 980 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 1 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 1 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 1 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 1 | } | 630 | 1 | _closed = true; | 631 | 1 | return Status::OK(); | 632 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 4.00k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 4.00k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 4.00k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 4.00k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 4.00k | } | 630 | 4.00k | _closed = true; | 631 | 4.00k | return Status::OK(); | 632 | 4.00k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 606 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 606 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 606 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 606 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 606 | } | 630 | 606 | _closed = true; | 631 | 606 | return Status::OK(); | 632 | 606 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 8.53k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 8.53k | if (_closed) { | 625 | 489 | return Status::OK(); | 626 | 489 | } | 627 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | | } | 630 | 8.04k | _closed = true; | 631 | 8.04k | return Status::OK(); | 632 | 8.53k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 128 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 128 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 128 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 128 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 128 | } | 630 | 128 | _closed = true; | 631 | 128 | return Status::OK(); | 632 | 128 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 1.46k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 1.46k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 1.46k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 1.46k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 1.46k | } | 630 | 1.46k | _closed = true; | 631 | 1.46k | return Status::OK(); | 632 | 1.46k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 82 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 82 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 82 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 82 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 82 | } | 630 | 82 | _closed = true; | 631 | 82 | return Status::OK(); | 632 | 82 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE |
633 | | |
634 | | template <typename SharedState> |
635 | 87.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
636 | | // create profile |
637 | 87.0k | _operator_profile = |
638 | 87.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
639 | 87.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
640 | 87.0k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
641 | | |
642 | | // indentation is true |
643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
644 | | // So we should set the indentation to true. |
645 | 87.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
646 | 87.0k | _operator_profile->add_child(_common_profile, true); |
647 | 87.0k | _operator_profile->add_child(_custom_profile, true); |
648 | | |
649 | 87.0k | _operator_profile->set_metadata(_parent->node_id()); |
650 | 87.0k | _wait_for_finish_dependency_timer = |
651 | 87.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
652 | 87.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
653 | 87.0k | if constexpr (!is_fake_shared) { |
654 | 81.6k | if (info.shared_state_map.find(_parent->dests_id().front()) != |
655 | 81.6k | info.shared_state_map.end()) { |
656 | 10 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
657 | 10 | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
658 | 10 | } |
659 | 10 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
660 | 10 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
661 | 10 | ? 0 |
662 | 10 | : info.task_idx] |
663 | 10 | .get(); |
664 | 10 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
665 | 81.6k | } else { |
666 | 81.6k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
667 | 0 | DCHECK(false); |
668 | 0 | } |
669 | 81.6k | _shared_state = info.shared_state->template cast<SharedState>(); |
670 | 81.6k | _dependency = _shared_state->create_sink_dependency( |
671 | 81.6k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
672 | 81.6k | } |
673 | 81.6k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
674 | 81.6k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
675 | 81.6k | } |
676 | | |
677 | 87.0k | if (must_set_shared_state() && _shared_state == nullptr) { |
678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
679 | 0 | } |
680 | | |
681 | 87.0k | _rows_input_counter = |
682 | 87.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
683 | 87.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
684 | 87.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
685 | 87.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
686 | 87.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
687 | 87.0k | _memory_used_counter = |
688 | 87.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
689 | 87.0k | _common_profile->add_info_string("IsColocate", |
690 | 87.0k | std::to_string(_parent->is_colocated_operator())); |
691 | 87.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
692 | 87.0k | _common_profile->add_info_string("FollowedByShuffledOperator", |
693 | 87.0k | std::to_string(_parent->followed_by_shuffled_operator())); |
694 | 87.0k | return Status::OK(); |
695 | 87.0k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 72.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 72.0k | _operator_profile = | 638 | 72.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 72.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 72.0k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 72.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 72.0k | _operator_profile->add_child(_common_profile, true); | 647 | 72.0k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 72.0k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 72.0k | _wait_for_finish_dependency_timer = | 651 | 72.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 72.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 72.0k | if constexpr (!is_fake_shared) { | 654 | 72.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 72.0k | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 72.0k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 72.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 72.0k | _dependency = _shared_state->create_sink_dependency( | 671 | 72.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 72.0k | } | 673 | 72.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 72.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 72.0k | } | 676 | | | 677 | 72.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 72.0k | _rows_input_counter = | 682 | 72.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 72.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 72.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 72.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 72.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 72.0k | _memory_used_counter = | 688 | 72.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 72.0k | _common_profile->add_info_string("IsColocate", | 690 | 72.0k | std::to_string(_parent->is_colocated_operator())); | 691 | 72.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 72.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 72.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 72.0k | return Status::OK(); | 695 | 72.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 2 | _operator_profile = | 638 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 2 | _operator_profile->add_child(_common_profile, true); | 647 | 2 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 2 | _wait_for_finish_dependency_timer = | 651 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 2 | if constexpr (!is_fake_shared) { | 654 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 2 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 2 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 2 | _dependency = _shared_state->create_sink_dependency( | 671 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 2 | } | 673 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 2 | } | 676 | | | 677 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 2 | _rows_input_counter = | 682 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 2 | _memory_used_counter = | 688 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 2 | _common_profile->add_info_string("IsColocate", | 690 | 2 | std::to_string(_parent->is_colocated_operator())); | 691 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 2 | return Status::OK(); | 695 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 534 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 534 | _operator_profile = | 638 | 534 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 534 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 534 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 534 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 534 | _operator_profile->add_child(_common_profile, true); | 647 | 534 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 534 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 534 | _wait_for_finish_dependency_timer = | 651 | 534 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 534 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 534 | if constexpr (!is_fake_shared) { | 654 | 534 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 534 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 534 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 534 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 534 | _dependency = _shared_state->create_sink_dependency( | 671 | 534 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 534 | } | 673 | 534 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 534 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 534 | } | 676 | | | 677 | 534 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 534 | _rows_input_counter = | 682 | 534 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 534 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 534 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 534 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 534 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 534 | _memory_used_counter = | 688 | 534 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 534 | _common_profile->add_info_string("IsColocate", | 690 | 534 | std::to_string(_parent->is_colocated_operator())); | 691 | 534 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 534 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 534 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 534 | return Status::OK(); | 695 | 534 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 19 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 19 | _operator_profile = | 638 | 19 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 19 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 19 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 19 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 19 | _operator_profile->add_child(_common_profile, true); | 647 | 19 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 19 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 19 | _wait_for_finish_dependency_timer = | 651 | 19 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 19 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 19 | if constexpr (!is_fake_shared) { | 654 | 19 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 19 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 19 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 19 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 19 | _dependency = _shared_state->create_sink_dependency( | 671 | 19 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 19 | } | 673 | 19 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 19 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 19 | } | 676 | | | 677 | 19 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 19 | _rows_input_counter = | 682 | 19 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 19 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 19 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 19 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 19 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 19 | _memory_used_counter = | 688 | 19 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 19 | _common_profile->add_info_string("IsColocate", | 690 | 19 | std::to_string(_parent->is_colocated_operator())); | 691 | 19 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 19 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 19 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 19 | return Status::OK(); | 695 | 19 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 980 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 980 | _operator_profile = | 638 | 980 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 980 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 980 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 980 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 980 | _operator_profile->add_child(_common_profile, true); | 647 | 980 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 980 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 980 | _wait_for_finish_dependency_timer = | 651 | 980 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 980 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 980 | if constexpr (!is_fake_shared) { | 654 | 980 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 980 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 980 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 980 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 980 | _dependency = _shared_state->create_sink_dependency( | 671 | 980 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 980 | } | 673 | 980 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 980 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 980 | } | 676 | | | 677 | 980 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 980 | _rows_input_counter = | 682 | 980 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 980 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 980 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 980 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 980 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 980 | _memory_used_counter = | 688 | 980 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 980 | _common_profile->add_info_string("IsColocate", | 690 | 980 | std::to_string(_parent->is_colocated_operator())); | 691 | 980 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 980 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 980 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 980 | return Status::OK(); | 695 | 980 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 9 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 9 | _operator_profile = | 638 | 9 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 9 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 9 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 9 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 9 | _operator_profile->add_child(_common_profile, true); | 647 | 9 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 9 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 9 | _wait_for_finish_dependency_timer = | 651 | 9 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 9 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 9 | if constexpr (!is_fake_shared) { | 654 | 9 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 9 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 9 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 9 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 9 | _dependency = _shared_state->create_sink_dependency( | 671 | 9 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 9 | } | 673 | 9 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 9 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 9 | } | 676 | | | 677 | 9 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 9 | _rows_input_counter = | 682 | 9 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 9 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 9 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 9 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 9 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 9 | _memory_used_counter = | 688 | 9 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 9 | _common_profile->add_info_string("IsColocate", | 690 | 9 | std::to_string(_parent->is_colocated_operator())); | 691 | 9 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 9 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 9 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 9 | return Status::OK(); | 695 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 4.65k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 4.65k | _operator_profile = | 638 | 4.65k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 4.65k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 4.65k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 4.65k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 4.65k | _operator_profile->add_child(_common_profile, true); | 647 | 4.65k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 4.65k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 4.65k | _wait_for_finish_dependency_timer = | 651 | 4.65k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 4.65k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 4.65k | if constexpr (!is_fake_shared) { | 654 | 4.65k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 4.65k | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 4.65k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 4.65k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 4.65k | _dependency = _shared_state->create_sink_dependency( | 671 | 4.65k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 4.65k | } | 673 | 4.65k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 4.65k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 4.65k | } | 676 | | | 677 | 4.65k | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 4.65k | _rows_input_counter = | 682 | 4.65k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 4.65k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 4.65k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 4.65k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 4.65k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 4.65k | _memory_used_counter = | 688 | 4.65k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 4.65k | _common_profile->add_info_string("IsColocate", | 690 | 4.65k | std::to_string(_parent->is_colocated_operator())); | 691 | 4.65k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 4.65k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 4.65k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 4.65k | return Status::OK(); | 695 | 4.65k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 617 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 617 | _operator_profile = | 638 | 617 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 617 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 617 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 617 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 617 | _operator_profile->add_child(_common_profile, true); | 647 | 617 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 617 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 617 | _wait_for_finish_dependency_timer = | 651 | 617 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 617 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 617 | if constexpr (!is_fake_shared) { | 654 | 617 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 617 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 617 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 617 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 617 | _dependency = _shared_state->create_sink_dependency( | 671 | 617 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 617 | } | 673 | 617 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 617 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 617 | } | 676 | | | 677 | 617 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 617 | _rows_input_counter = | 682 | 617 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 617 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 617 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 617 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 617 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 617 | _memory_used_counter = | 688 | 617 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 617 | _common_profile->add_info_string("IsColocate", | 690 | 617 | std::to_string(_parent->is_colocated_operator())); | 691 | 617 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 617 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 617 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 617 | return Status::OK(); | 695 | 617 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 5.37k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 5.37k | _operator_profile = | 638 | 5.37k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 5.37k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 5.37k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 5.37k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 5.37k | _operator_profile->add_child(_common_profile, true); | 647 | 5.37k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 5.37k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 5.37k | _wait_for_finish_dependency_timer = | 651 | 5.37k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 5.37k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | | if constexpr (!is_fake_shared) { | 654 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | | ? 0 | 662 | | : info.task_idx] | 663 | | .get(); | 664 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | | _dependency = _shared_state->create_sink_dependency( | 671 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | | } | 673 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | | } | 676 | | | 677 | 5.37k | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 5.37k | _rows_input_counter = | 682 | 5.37k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 5.37k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 5.37k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 5.37k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 5.37k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 5.37k | _memory_used_counter = | 688 | 5.37k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 5.37k | _common_profile->add_info_string("IsColocate", | 690 | 5.37k | std::to_string(_parent->is_colocated_operator())); | 691 | 5.37k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 5.37k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 5.37k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 5.37k | return Status::OK(); | 695 | 5.37k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 3 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 3 | _operator_profile = | 638 | 3 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 3 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 3 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 3 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 3 | _operator_profile->add_child(_common_profile, true); | 647 | 3 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 3 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 3 | _wait_for_finish_dependency_timer = | 651 | 3 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 3 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 3 | if constexpr (!is_fake_shared) { | 654 | 3 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 3 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 3 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 3 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 3 | _dependency = _shared_state->create_sink_dependency( | 671 | 3 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 3 | } | 673 | 3 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 3 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 3 | } | 676 | | | 677 | 3 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 3 | _rows_input_counter = | 682 | 3 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 3 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 3 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 3 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 3 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 3 | _memory_used_counter = | 688 | 3 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 3 | _common_profile->add_info_string("IsColocate", | 690 | 3 | std::to_string(_parent->is_colocated_operator())); | 691 | 3 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 3 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 3 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 3 | return Status::OK(); | 695 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 102 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 102 | _operator_profile = | 638 | 102 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 102 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 102 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 102 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 102 | _operator_profile->add_child(_common_profile, true); | 647 | 102 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 102 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 102 | _wait_for_finish_dependency_timer = | 651 | 102 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 102 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 102 | if constexpr (!is_fake_shared) { | 654 | 102 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 102 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 102 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 102 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 102 | _dependency = _shared_state->create_sink_dependency( | 671 | 102 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 102 | } | 673 | 102 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 102 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 102 | } | 676 | | | 677 | 102 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 102 | _rows_input_counter = | 682 | 102 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 102 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 102 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 102 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 102 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 102 | _memory_used_counter = | 688 | 102 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 102 | _common_profile->add_info_string("IsColocate", | 690 | 102 | std::to_string(_parent->is_colocated_operator())); | 691 | 102 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 102 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 102 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 102 | return Status::OK(); | 695 | 102 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 490 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 490 | _operator_profile = | 638 | 490 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 490 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 490 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 490 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 490 | _operator_profile->add_child(_common_profile, true); | 647 | 490 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 490 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 490 | _wait_for_finish_dependency_timer = | 651 | 490 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 490 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 490 | if constexpr (!is_fake_shared) { | 654 | 490 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 490 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 490 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 490 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 490 | _dependency = _shared_state->create_sink_dependency( | 671 | 490 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 490 | } | 673 | 490 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 490 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 490 | } | 676 | | | 677 | 490 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 490 | _rows_input_counter = | 682 | 490 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 490 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 490 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 490 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 490 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 490 | _memory_used_counter = | 688 | 490 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 490 | _common_profile->add_info_string("IsColocate", | 690 | 490 | std::to_string(_parent->is_colocated_operator())); | 691 | 490 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 490 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 490 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 490 | return Status::OK(); | 695 | 490 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 27 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 27 | _operator_profile = | 638 | 27 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 27 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 27 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 27 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 27 | _operator_profile->add_child(_common_profile, true); | 647 | 27 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 27 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 27 | _wait_for_finish_dependency_timer = | 651 | 27 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 27 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 27 | if constexpr (!is_fake_shared) { | 654 | 27 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 27 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 27 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 27 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 27 | _dependency = _shared_state->create_sink_dependency( | 671 | 27 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 27 | } | 673 | 27 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 27 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 27 | } | 676 | | | 677 | 27 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 27 | _rows_input_counter = | 682 | 27 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 27 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 27 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 27 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 27 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 27 | _memory_used_counter = | 688 | 27 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 27 | _common_profile->add_info_string("IsColocate", | 690 | 27 | std::to_string(_parent->is_colocated_operator())); | 691 | 27 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 27 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 27 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 27 | return Status::OK(); | 695 | 27 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 10 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 10 | _operator_profile = | 638 | 10 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 10 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 10 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 10 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 10 | _operator_profile->add_child(_common_profile, true); | 647 | 10 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 10 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 10 | _wait_for_finish_dependency_timer = | 651 | 10 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 10 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 10 | if constexpr (!is_fake_shared) { | 654 | 10 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 10 | info.shared_state_map.end()) { | 656 | 10 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | 10 | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | 10 | } | 659 | 10 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 10 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 10 | ? 0 | 662 | 10 | : info.task_idx] | 663 | 10 | .get(); | 664 | 10 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 10 | } else { | 666 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | 0 | DCHECK(false); | 668 | 0 | } | 669 | 0 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 0 | _dependency = _shared_state->create_sink_dependency( | 671 | 0 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 0 | } | 673 | 10 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 10 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 10 | } | 676 | | | 677 | 10 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 10 | _rows_input_counter = | 682 | 10 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 10 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 10 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 10 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 10 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 10 | _memory_used_counter = | 688 | 10 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 10 | _common_profile->add_info_string("IsColocate", | 690 | 10 | std::to_string(_parent->is_colocated_operator())); | 691 | 10 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 10 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 10 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 10 | return Status::OK(); | 695 | 10 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 2.17k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 2.17k | _operator_profile = | 638 | 2.17k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 2.17k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 2.17k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 2.17k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 2.17k | _operator_profile->add_child(_common_profile, true); | 647 | 2.17k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 2.17k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 2.17k | _wait_for_finish_dependency_timer = | 651 | 2.17k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 2.17k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 2.17k | if constexpr (!is_fake_shared) { | 654 | 2.17k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 2.17k | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 2.17k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 2.17k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 2.17k | _dependency = _shared_state->create_sink_dependency( | 671 | 2.17k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 2.17k | } | 673 | 2.17k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 2.17k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 2.17k | } | 676 | | | 677 | 2.17k | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 2.17k | _rows_input_counter = | 682 | 2.17k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 2.17k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 2.17k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 2.17k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 2.17k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 2.17k | _memory_used_counter = | 688 | 2.17k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 2.17k | _common_profile->add_info_string("IsColocate", | 690 | 2.17k | std::to_string(_parent->is_colocated_operator())); | 691 | 2.17k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 2.17k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 2.17k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 2.17k | return Status::OK(); | 695 | 2.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 3 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 3 | _operator_profile = | 638 | 3 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 3 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 3 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 641 | | | 642 | | // indentation is true | 643 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 644 | | // So we should set the indentation to true. | 645 | 3 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 3 | _operator_profile->add_child(_common_profile, true); | 647 | 3 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 3 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 3 | _wait_for_finish_dependency_timer = | 651 | 3 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 3 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 3 | if constexpr (!is_fake_shared) { | 654 | 3 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 3 | info.shared_state_map.end()) { | 656 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | | } | 659 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 0 | ? 0 | 662 | 0 | : info.task_idx] | 663 | 0 | .get(); | 664 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 3 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 3 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 3 | _dependency = _shared_state->create_sink_dependency( | 671 | 3 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 3 | } | 673 | 3 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 3 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 3 | } | 676 | | | 677 | 3 | if (must_set_shared_state() && _shared_state == nullptr) { | 678 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 679 | 0 | } | 680 | | | 681 | 3 | _rows_input_counter = | 682 | 3 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 3 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 3 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 3 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 3 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 3 | _memory_used_counter = | 688 | 3 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 3 | _common_profile->add_info_string("IsColocate", | 690 | 3 | std::to_string(_parent->is_colocated_operator())); | 691 | 3 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 3 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 3 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 3 | return Status::OK(); | 695 | 3 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
696 | | |
697 | | template <typename SharedState> |
698 | 86.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
699 | 86.1k | if (_closed) { |
700 | 2 | return Status::OK(); |
701 | 2 | } |
702 | 86.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
703 | 80.8k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
704 | 80.8k | } |
705 | 86.1k | _closed = true; |
706 | 86.1k | return Status::OK(); |
707 | 86.1k | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 72.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 72.0k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 72.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 72.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 72.0k | } | 705 | 72.0k | _closed = true; | 706 | 72.0k | return Status::OK(); | 707 | 72.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 1 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 1 | } | 705 | 1 | _closed = true; | 706 | 1 | return Status::OK(); | 707 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 506 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 506 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 506 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 506 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 506 | } | 705 | 506 | _closed = true; | 706 | 506 | return Status::OK(); | 707 | 506 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 11 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 11 | if (_closed) { | 700 | 2 | return Status::OK(); | 701 | 2 | } | 702 | 9 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 9 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 9 | } | 705 | 9 | _closed = true; | 706 | 9 | return Status::OK(); | 707 | 11 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 980 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 980 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 980 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 980 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 980 | } | 705 | 980 | _closed = true; | 706 | 980 | return Status::OK(); | 707 | 980 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 1 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 1 | } | 705 | 1 | _closed = true; | 706 | 1 | return Status::OK(); | 707 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 4.00k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 4.00k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 4.00k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 4.00k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 4.00k | } | 705 | 4.00k | _closed = true; | 706 | 4.00k | return Status::OK(); | 707 | 4.00k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 606 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 606 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 606 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 606 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 606 | } | 705 | 606 | _closed = true; | 706 | 606 | return Status::OK(); | 707 | 606 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 5.36k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 5.36k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | | } | 705 | 5.36k | _closed = true; | 706 | 5.36k | return Status::OK(); | 707 | 5.36k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 490 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 490 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 490 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 490 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 490 | } | 705 | 490 | _closed = true; | 706 | 490 | return Status::OK(); | 707 | 490 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 10 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 10 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 10 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 10 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 10 | } | 705 | 10 | _closed = true; | 706 | 10 | return Status::OK(); | 707 | 10 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 2.16k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 2.16k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 2.16k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 2.16k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 2.16k | } | 705 | 2.16k | _closed = true; | 706 | 2.16k | return Status::OK(); | 707 | 2.16k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE |
708 | | |
709 | | template <typename LocalStateType> |
710 | 3.02k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
711 | 3.02k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
712 | 3.02k | return pull(state, block, eos); |
713 | 3.02k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 710 | 4 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 711 | 4 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 712 | 4 | return pull(state, block, eos); | 713 | 4 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 710 | 3.02k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 711 | 3.02k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 712 | 3.02k | return pull(state, block, eos); | 713 | 3.02k | } |
|
714 | | |
715 | | template <typename LocalStateType> |
716 | 3.16k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
717 | 3.16k | auto& local_state = get_local_state(state); |
718 | 3.16k | if (need_more_input_data(state)) { |
719 | 3.12k | local_state._child_block->clear_column_data( |
720 | 3.12k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
721 | 3.12k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
722 | 3.12k | state, local_state._child_block.get(), &local_state._child_eos)); |
723 | 3.12k | *eos = local_state._child_eos; |
724 | 3.12k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
725 | 490 | return Status::OK(); |
726 | 490 | } |
727 | 2.63k | { |
728 | 2.63k | SCOPED_TIMER(local_state.exec_time_counter()); |
729 | 2.63k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
730 | 2.63k | } |
731 | 2.63k | } |
732 | | |
733 | 2.67k | if (!need_more_input_data(state)) { |
734 | 1.59k | SCOPED_TIMER(local_state.exec_time_counter()); |
735 | 1.59k | bool new_eos = false; |
736 | 1.59k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
737 | 1.59k | if (new_eos) { |
738 | 1.23k | *eos = true; |
739 | 1.23k | } else if (!need_more_input_data(state)) { |
740 | 30 | *eos = false; |
741 | 30 | } |
742 | 1.59k | } |
743 | 2.67k | return Status::OK(); |
744 | 2.67k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 60 | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 60 | auto& local_state = get_local_state(state); | 718 | 60 | if (need_more_input_data(state)) { | 719 | 54 | local_state._child_block->clear_column_data( | 720 | 54 | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 54 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 54 | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 54 | *eos = local_state._child_eos; | 724 | 54 | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 2 | return Status::OK(); | 726 | 2 | } | 727 | 52 | { | 728 | 52 | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 52 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 52 | } | 731 | 52 | } | 732 | | | 733 | 58 | if (!need_more_input_data(state)) { | 734 | 58 | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 58 | bool new_eos = false; | 736 | 58 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 58 | if (new_eos) { | 738 | 33 | *eos = true; | 739 | 33 | } else if (!need_more_input_data(state)) { | 740 | 0 | *eos = false; | 741 | 0 | } | 742 | 58 | } | 743 | 58 | return Status::OK(); | 744 | 58 | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 1.32k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 1.32k | auto& local_state = get_local_state(state); | 718 | 1.32k | if (need_more_input_data(state)) { | 719 | 1.29k | local_state._child_block->clear_column_data( | 720 | 1.29k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 1.29k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 1.29k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 1.29k | *eos = local_state._child_eos; | 724 | 1.29k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 0 | return Status::OK(); | 726 | 0 | } | 727 | 1.29k | { | 728 | 1.29k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 1.29k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 1.29k | } | 731 | 1.29k | } | 732 | | | 733 | 1.32k | if (!need_more_input_data(state)) { | 734 | 245 | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 245 | bool new_eos = false; | 736 | 245 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 245 | if (new_eos) { | 738 | 215 | *eos = true; | 739 | 215 | } else if (!need_more_input_data(state)) { | 740 | 30 | *eos = false; | 741 | 30 | } | 742 | 245 | } | 743 | 1.32k | return Status::OK(); | 744 | 1.32k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 2 | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 2 | auto& local_state = get_local_state(state); | 718 | 2 | if (need_more_input_data(state)) { | 719 | 2 | local_state._child_block->clear_column_data( | 720 | 2 | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 2 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 2 | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 2 | *eos = local_state._child_eos; | 724 | 2 | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 0 | return Status::OK(); | 726 | 0 | } | 727 | 2 | { | 728 | 2 | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 2 | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 2 | } | 731 | 2 | } | 732 | | | 733 | 2 | if (!need_more_input_data(state)) { | 734 | 2 | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 2 | bool new_eos = false; | 736 | 2 | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 2 | if (new_eos) { | 738 | 2 | *eos = true; | 739 | 2 | } else if (!need_more_input_data(state)) { | 740 | 0 | *eos = false; | 741 | 0 | } | 742 | 2 | } | 743 | 2 | return Status::OK(); | 744 | 2 | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 1.78k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 1.78k | auto& local_state = get_local_state(state); | 718 | 1.78k | if (need_more_input_data(state)) { | 719 | 1.78k | local_state._child_block->clear_column_data( | 720 | 1.78k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 1.78k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 1.78k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 1.78k | *eos = local_state._child_eos; | 724 | 1.78k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 488 | return Status::OK(); | 726 | 488 | } | 727 | 1.29k | { | 728 | 1.29k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 1.29k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 1.29k | } | 731 | 1.29k | } | 732 | | | 733 | 1.29k | if (!need_more_input_data(state)) { | 734 | 1.29k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 1.29k | bool new_eos = false; | 736 | 1.29k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 1.29k | if (new_eos) { | 738 | 980 | *eos = true; | 739 | 980 | } else if (!need_more_input_data(state)) { | 740 | 0 | *eos = false; | 741 | 0 | } | 742 | 1.29k | } | 743 | 1.29k | return Status::OK(); | 744 | 1.29k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb |
745 | | |
746 | | template <typename Writer, typename Parent> |
747 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
748 | 140 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
749 | 140 | RETURN_IF_ERROR(Base::init(state, info)); |
750 | 140 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
751 | 140 | "AsyncWriterDependency", true); |
752 | 140 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
753 | 140 | _finish_dependency)); |
754 | | |
755 | 140 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
756 | 140 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
757 | 140 | return Status::OK(); |
758 | 140 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 12 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 12 | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 12 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 12 | "AsyncWriterDependency", true); | 752 | 12 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 12 | _finish_dependency)); | 754 | | | 755 | 12 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 12 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 12 | return Status::OK(); | 758 | 12 | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 128 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 128 | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 128 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 128 | "AsyncWriterDependency", true); | 752 | 128 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 128 | _finish_dependency)); | 754 | | | 755 | 128 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 128 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 128 | return Status::OK(); | 758 | 128 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE |
759 | | |
760 | | template <typename Writer, typename Parent> |
761 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
762 | 140 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
763 | 140 | RETURN_IF_ERROR(Base::open(state)); |
764 | 140 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
765 | 2.36k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
766 | 2.22k | RETURN_IF_ERROR( |
767 | 2.22k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
768 | 2.22k | } |
769 | 140 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
770 | 140 | return Status::OK(); |
771 | 140 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 12 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 12 | RETURN_IF_ERROR(Base::open(state)); | 764 | 12 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 60 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 48 | RETURN_IF_ERROR( | 767 | 48 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 48 | } | 769 | 12 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 12 | return Status::OK(); | 771 | 12 | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 128 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 128 | RETURN_IF_ERROR(Base::open(state)); | 764 | 128 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 2.30k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 2.17k | RETURN_IF_ERROR( | 767 | 2.17k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 2.17k | } | 769 | 128 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 128 | return Status::OK(); | 771 | 128 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE |
772 | | |
773 | | template <typename Writer, typename Parent> |
774 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
775 | 172 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
776 | 172 | return _writer->sink(block, eos); |
777 | 172 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 44 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 44 | return _writer->sink(block, eos); | 777 | 44 | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 128 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 128 | return _writer->sink(block, eos); | 777 | 128 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb |
778 | | |
779 | | template <typename Writer, typename Parent> |
780 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
781 | 140 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
782 | 140 | if (_closed) { |
783 | 0 | return Status::OK(); |
784 | 0 | } |
785 | 140 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
786 | 140 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
787 | | // if the init failed, the _writer may be nullptr. so here need check |
788 | 140 | if (_writer) { |
789 | 140 | Status st = _writer->get_writer_status(); |
790 | 140 | if (exec_status.ok()) { |
791 | 140 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
792 | 140 | : Status::Cancelled("force close")); |
793 | 140 | } else { |
794 | 0 | _writer->force_close(exec_status); |
795 | 0 | } |
796 | | // If there is an error in process_block thread, then we should get the writer |
797 | | // status before call force_close. For example, the thread may failed in commit |
798 | | // transaction. |
799 | 140 | RETURN_IF_ERROR(st); |
800 | 140 | } |
801 | 140 | return Base::close(state, exec_status); |
802 | 140 | } Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 12 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 12 | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 12 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 12 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 787 | | // if the init failed, the _writer may be nullptr. so here need check | 788 | 12 | if (_writer) { | 789 | 12 | Status st = _writer->get_writer_status(); | 790 | 12 | if (exec_status.ok()) { | 791 | 12 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 12 | : Status::Cancelled("force close")); | 793 | 12 | } else { | 794 | 0 | _writer->force_close(exec_status); | 795 | 0 | } | 796 | | // If there is an error in process_block thread, then we should get the writer | 797 | | // status before call force_close. For example, the thread may failed in commit | 798 | | // transaction. | 799 | 12 | RETURN_IF_ERROR(st); | 800 | 12 | } | 801 | 12 | return Base::close(state, exec_status); | 802 | 12 | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 128 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 128 | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 128 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 128 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 787 | | // if the init failed, the _writer may be nullptr. so here need check | 788 | 128 | if (_writer) { | 789 | 128 | Status st = _writer->get_writer_status(); | 790 | 128 | if (exec_status.ok()) { | 791 | 128 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 128 | : Status::Cancelled("force close")); | 793 | 128 | } else { | 794 | 0 | _writer->force_close(exec_status); | 795 | 0 | } | 796 | | // If there is an error in process_block thread, then we should get the writer | 797 | | // status before call force_close. For example, the thread may failed in commit | 798 | | // transaction. | 799 | 128 | RETURN_IF_ERROR(st); | 800 | 128 | } | 801 | 128 | return Base::close(state, exec_status); | 802 | 128 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE |
803 | | |
804 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
805 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
806 | | DECLARE_OPERATOR(ResultSinkLocalState) |
807 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
808 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
809 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
810 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
811 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
812 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
813 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
814 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
815 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
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::VMCTableWriter, MCTableSinkOperatorX>; |
937 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
938 | | |
939 | | #ifdef BE_TEST |
940 | | template class OperatorX<DummyOperatorLocalState>; |
941 | | template class DataSinkOperatorX<DummySinkLocalState>; |
942 | | #endif |
943 | | |
944 | | #include "common/compile_check_end.h" |
945 | | } // namespace doris |