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 | 2.56M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
117 | 2.56M | if (_parent->nereids_id() == -1) { |
118 | 1.34M | return fmt::format("(id={})", _parent->node_id()); |
119 | 1.34M | } else { |
120 | 1.21M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
121 | 1.21M | } |
122 | 2.56M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 143k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 143k | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 143k | } else { | 120 | 143k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 143k | } | 122 | 143k | } |
_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 | 279k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 279k | if (_parent->nereids_id() == -1) { | 118 | 12 | return fmt::format("(id={})", _parent->node_id()); | 119 | 279k | } else { | 120 | 279k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 279k | } | 122 | 279k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 21 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 21 | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 21 | } else { | 120 | 21 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 21 | } | 122 | 21 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 9.98k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 9.98k | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 9.98k | } else { | 120 | 9.98k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 9.98k | } | 122 | 9.98k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 9.52k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 9.52k | if (_parent->nereids_id() == -1) { | 118 | 9 | return fmt::format("(id={})", _parent->node_id()); | 119 | 9.51k | } else { | 120 | 9.51k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 9.51k | } | 122 | 9.52k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 163k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 163k | if (_parent->nereids_id() == -1) { | 118 | 27 | return fmt::format("(id={})", _parent->node_id()); | 119 | 163k | } else { | 120 | 163k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 163k | } | 122 | 163k | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 660 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 660 | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 660 | } else { | 120 | 660 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 660 | } | 122 | 660 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 1.04M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 1.04M | if (_parent->nereids_id() == -1) { | 118 | 491k | return fmt::format("(id={})", _parent->node_id()); | 119 | 549k | } else { | 120 | 549k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 549k | } | 122 | 1.04M | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 55.7k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 55.7k | if (_parent->nereids_id() == -1) { | 118 | 2 | return fmt::format("(id={})", _parent->node_id()); | 119 | 55.7k | } else { | 120 | 55.7k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 55.7k | } | 122 | 55.7k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 107 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 107 | if (_parent->nereids_id() == -1) { | 118 | 106 | return fmt::format("(id={})", _parent->node_id()); | 119 | 106 | } else { | 120 | 1 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 1 | } | 122 | 107 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 11.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 11.2k | if (_parent->nereids_id() == -1) { | 118 | 11.2k | return fmt::format("(id={})", _parent->node_id()); | 119 | 18.4E | } else { | 120 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 18.4E | } | 122 | 11.2k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 459 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 459 | if (_parent->nereids_id() == -1) { | 118 | 102 | return fmt::format("(id={})", _parent->node_id()); | 119 | 357 | } else { | 120 | 357 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 357 | } | 122 | 459 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 5.32k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 5.32k | if (_parent->nereids_id() == -1) { | 118 | 12 | return fmt::format("(id={})", _parent->node_id()); | 119 | 5.30k | } else { | 120 | 5.30k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 5.30k | } | 122 | 5.32k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 845k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 845k | if (_parent->nereids_id() == -1) { | 118 | 844k | return fmt::format("(id={})", _parent->node_id()); | 119 | 844k | } else { | 120 | 647 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 647 | } | 122 | 845k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 116 | 150 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 117 | 150 | if (_parent->nereids_id() == -1) { | 118 | 0 | return fmt::format("(id={})", _parent->node_id()); | 119 | 150 | } else { | 120 | 150 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 121 | 150 | } | 122 | 150 | } |
|
123 | | |
124 | | template <typename SharedStateArg> |
125 | 1.59M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
126 | 1.59M | if (_parent->nereids_id() == -1) { |
127 | 927k | return fmt::format("(id={})", _parent->node_id()); |
128 | 927k | } else { |
129 | 666k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
130 | 666k | } |
131 | 1.59M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 191k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 191k | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 191k | } else { | 129 | 191k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 191k | } | 131 | 191k | } |
_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 | 280k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 280k | if (_parent->nereids_id() == -1) { | 127 | 9 | return fmt::format("(id={})", _parent->node_id()); | 128 | 280k | } else { | 129 | 280k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 280k | } | 131 | 280k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 27 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 27 | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 27 | } else { | 129 | 27 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 27 | } | 131 | 27 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 9.97k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 9.97k | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 9.97k | } else { | 129 | 9.97k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 9.97k | } | 131 | 9.97k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 9.53k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 9.53k | if (_parent->nereids_id() == -1) { | 127 | 9 | return fmt::format("(id={})", _parent->node_id()); | 128 | 9.52k | } else { | 129 | 9.52k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 9.52k | } | 131 | 9.53k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 163k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 163k | if (_parent->nereids_id() == -1) { | 127 | 27 | return fmt::format("(id={})", _parent->node_id()); | 128 | 163k | } else { | 129 | 163k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 163k | } | 131 | 163k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 670 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 670 | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 670 | } else { | 129 | 670 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 670 | } | 131 | 670 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 92 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 92 | if (_parent->nereids_id() == -1) { | 127 | 92 | return fmt::format("(id={})", _parent->node_id()); | 128 | 92 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 92 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 8.86k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 8.86k | if (_parent->nereids_id() == -1) { | 127 | 3 | return fmt::format("(id={})", _parent->node_id()); | 128 | 8.86k | } else { | 129 | 8.86k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 8.86k | } | 131 | 8.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 459 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 459 | if (_parent->nereids_id() == -1) { | 127 | 102 | return fmt::format("(id={})", _parent->node_id()); | 128 | 357 | } else { | 129 | 357 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 357 | } | 131 | 459 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 12.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 12.9k | if (_parent->nereids_id() == -1) { | 127 | 12.9k | return fmt::format("(id={})", _parent->node_id()); | 128 | 18.4E | } else { | 129 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 18.4E | } | 131 | 12.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 376k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 376k | if (_parent->nereids_id() == -1) { | 127 | 376k | return fmt::format("(id={})", _parent->node_id()); | 128 | 376k | } else { | 129 | 55 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 55 | } | 131 | 376k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 538k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 538k | if (_parent->nereids_id() == -1) { | 127 | 538k | return fmt::format("(id={})", _parent->node_id()); | 128 | 538k | } else { | 129 | 514 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 514 | } | 131 | 538k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 111 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 111 | if (_parent->nereids_id() == -1) { | 127 | 111 | return fmt::format("(id={})", _parent->node_id()); | 128 | 111 | } else { | 129 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 0 | } | 131 | 111 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 125 | 300 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 126 | 300 | if (_parent->nereids_id() == -1) { | 127 | 0 | return fmt::format("(id={})", _parent->node_id()); | 128 | 300 | } else { | 129 | 300 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 130 | 300 | } | 131 | 300 | } |
|
132 | | |
133 | | template <typename SharedStateArg> |
134 | 31.4k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
135 | 31.4k | if (_terminated) { |
136 | 0 | return Status::OK(); |
137 | 0 | } |
138 | 31.4k | _terminated = true; |
139 | 31.4k | return Status::OK(); |
140 | 31.4k | } _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 | 700 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 700 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 700 | _terminated = true; | 139 | 700 | return Status::OK(); | 140 | 700 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 8 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 8 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 8 | _terminated = true; | 139 | 8 | return Status::OK(); | 140 | 8 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_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 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 3.78k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 3.78k | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 3.78k | _terminated = true; | 139 | 3.78k | return Status::OK(); | 140 | 3.78k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 6 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 6 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 6 | _terminated = true; | 139 | 6 | return Status::OK(); | 140 | 6 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 2.53k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 2.53k | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 2.53k | _terminated = true; | 139 | 2.53k | return Status::OK(); | 140 | 2.53k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 9 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 9 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 9 | _terminated = true; | 139 | 9 | return Status::OK(); | 140 | 9 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 5 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 5 | _terminated = true; | 139 | 5 | return Status::OK(); | 140 | 5 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 67 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 67 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 67 | _terminated = true; | 139 | 67 | return Status::OK(); | 140 | 67 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 3 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 3 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 3 | _terminated = true; | 139 | 3 | return Status::OK(); | 140 | 3 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 165 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 165 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 165 | _terminated = true; | 139 | 165 | return Status::OK(); | 140 | 165 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_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 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 134 | 135 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 135 | 135 | if (_terminated) { | 136 | 0 | return Status::OK(); | 137 | 0 | } | 138 | 135 | _terminated = true; | 139 | 135 | return Status::OK(); | 140 | 135 | } |
|
141 | | |
142 | 863k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
143 | 863k | return _child && _child->is_serial_operator() && !is_source() |
144 | 863k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
145 | 863k | : DataDistribution(ExchangeType::NOOP); |
146 | 863k | } |
147 | | |
148 | 81.9k | const RowDescriptor& OperatorBase::row_desc() const { |
149 | 81.9k | return _child->row_desc(); |
150 | 81.9k | } |
151 | | |
152 | | template <typename SharedStateArg> |
153 | 55.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
154 | 55.4k | fmt::memory_buffer debug_string_buffer; |
155 | 55.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
156 | 55.4k | return fmt::to_string(debug_string_buffer); |
157 | 55.4k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 56 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 56 | fmt::memory_buffer debug_string_buffer; | 155 | 56 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 56 | return fmt::to_string(debug_string_buffer); | 157 | 56 | } |
_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 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 16 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 16 | fmt::memory_buffer debug_string_buffer; | 155 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 16 | return fmt::to_string(debug_string_buffer); | 157 | 16 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 14 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 14 | fmt::memory_buffer debug_string_buffer; | 155 | 14 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 14 | return fmt::to_string(debug_string_buffer); | 157 | 14 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 55.2k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 55.2k | fmt::memory_buffer debug_string_buffer; | 155 | 55.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 55.2k | return fmt::to_string(debug_string_buffer); | 157 | 55.2k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 1 | fmt::memory_buffer debug_string_buffer; | 155 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 1 | return fmt::to_string(debug_string_buffer); | 157 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 153 | 72 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 154 | 72 | fmt::memory_buffer debug_string_buffer; | 155 | 72 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 156 | 72 | return fmt::to_string(debug_string_buffer); | 157 | 72 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
158 | | |
159 | | template <typename SharedStateArg> |
160 | 55.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
161 | 55.3k | fmt::memory_buffer debug_string_buffer; |
162 | 55.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
163 | 55.3k | return fmt::to_string(debug_string_buffer); |
164 | 55.3k | } Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 160 | 16 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 161 | 16 | fmt::memory_buffer debug_string_buffer; | 162 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 163 | 16 | return fmt::to_string(debug_string_buffer); | 164 | 16 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 160 | 14 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 161 | 14 | fmt::memory_buffer debug_string_buffer; | 162 | 14 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 163 | 14 | return fmt::to_string(debug_string_buffer); | 164 | 14 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 160 | 30 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 161 | 30 | fmt::memory_buffer debug_string_buffer; | 162 | 30 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 163 | 30 | return fmt::to_string(debug_string_buffer); | 164 | 30 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 160 | 46 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 161 | 46 | fmt::memory_buffer debug_string_buffer; | 162 | 46 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 163 | 46 | return fmt::to_string(debug_string_buffer); | 164 | 46 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 160 | 55.2k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 161 | 55.2k | fmt::memory_buffer debug_string_buffer; | 162 | 55.2k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 163 | 55.2k | return fmt::to_string(debug_string_buffer); | 164 | 55.2k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
165 | | |
166 | 55.6k | std::string OperatorXBase::debug_string(int indentation_level) const { |
167 | 55.6k | fmt::memory_buffer debug_string_buffer; |
168 | 55.6k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
169 | 55.6k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
170 | 55.6k | _is_serial_operator); |
171 | 55.6k | return fmt::to_string(debug_string_buffer); |
172 | 55.6k | } |
173 | | |
174 | 55.4k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
175 | 55.4k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
176 | 55.4k | } |
177 | | |
178 | 748k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
179 | 748k | std::string node_name = print_plan_node_type(tnode.node_type); |
180 | 748k | _nereids_id = tnode.nereids_id; |
181 | 748k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
182 | 3.03k | if (!tnode.__isset.output_tuple_id) { |
183 | 0 | return Status::InternalError("no final output tuple id"); |
184 | 0 | } |
185 | 3.03k | if (tnode.intermediate_output_tuple_id_list.size() != |
186 | 3.03k | 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 | 3.03k | } |
194 | 748k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
195 | 748k | _op_name = substr + "_OPERATOR"; |
196 | | |
197 | 748k | if (tnode.__isset.vconjunct) { |
198 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
199 | 748k | } else if (tnode.__isset.conjuncts) { |
200 | 441k | for (const auto& conjunct : tnode.conjuncts) { |
201 | 441k | VExprContextSPtr context; |
202 | 441k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
203 | 441k | _conjuncts.emplace_back(context); |
204 | 441k | } |
205 | 141k | } |
206 | | |
207 | | // create the projections expr |
208 | 748k | if (tnode.__isset.projections) { |
209 | 321k | DCHECK(tnode.__isset.output_tuple_id); |
210 | 321k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
211 | 321k | } |
212 | 748k | if (!tnode.intermediate_projections_list.empty()) { |
213 | 3.03k | DCHECK(tnode.__isset.projections) << "no final projections"; |
214 | 3.03k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
215 | 4.13k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
216 | 4.13k | VExprContextSPtrs projections; |
217 | 4.13k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
218 | 4.13k | _intermediate_projections.push_back(projections); |
219 | 4.13k | } |
220 | 3.03k | } |
221 | 748k | return Status::OK(); |
222 | 748k | } |
223 | | |
224 | 780k | Status OperatorXBase::prepare(RuntimeState* state) { |
225 | 780k | for (auto& conjunct : _conjuncts) { |
226 | 441k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
227 | 441k | } |
228 | 780k | if (state->enable_adjust_conjunct_order_by_cost()) { |
229 | 730k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
230 | 600k | return a->execute_cost() < b->execute_cost(); |
231 | 600k | }); |
232 | 730k | }; |
233 | | |
234 | 784k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
235 | 4.13k | RETURN_IF_ERROR( |
236 | 4.13k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
237 | 4.13k | } |
238 | 780k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
239 | | |
240 | 780k | if (has_output_row_desc()) { |
241 | 321k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
242 | 321k | } |
243 | | |
244 | 780k | for (auto& conjunct : _conjuncts) { |
245 | 441k | RETURN_IF_ERROR(conjunct->open(state)); |
246 | 441k | } |
247 | 780k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
248 | 780k | for (auto& projections : _intermediate_projections) { |
249 | 4.13k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
250 | 4.13k | } |
251 | 780k | if (_child && !is_source()) { |
252 | 148k | RETURN_IF_ERROR(_child->prepare(state)); |
253 | 148k | } |
254 | | |
255 | 780k | if (VExpr::contains_blockable_function(_conjuncts) || |
256 | 780k | VExpr::contains_blockable_function(_projections)) { |
257 | 0 | _blockable = true; |
258 | 0 | } |
259 | | |
260 | 780k | return Status::OK(); |
261 | 780k | } |
262 | | |
263 | 10.0k | Status OperatorXBase::terminate(RuntimeState* state) { |
264 | 10.0k | if (_child && !is_source()) { |
265 | 2.54k | RETURN_IF_ERROR(_child->terminate(state)); |
266 | 2.54k | } |
267 | 10.0k | auto result = state->get_local_state_result(operator_id()); |
268 | 10.0k | if (!result) { |
269 | 0 | return result.error(); |
270 | 0 | } |
271 | 10.0k | return result.value()->terminate(state); |
272 | 10.0k | } |
273 | | |
274 | 7.32M | Status OperatorXBase::close(RuntimeState* state) { |
275 | 7.32M | if (_child && !is_source()) { |
276 | 1.44M | RETURN_IF_ERROR(_child->close(state)); |
277 | 1.44M | } |
278 | 7.32M | auto result = state->get_local_state_result(operator_id()); |
279 | 7.32M | if (!result) { |
280 | 0 | return result.error(); |
281 | 0 | } |
282 | 7.32M | return result.value()->close(state); |
283 | 7.32M | } |
284 | | |
285 | 369k | void PipelineXLocalStateBase::clear_origin_block() { |
286 | 369k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
287 | 369k | } |
288 | | |
289 | 692k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
290 | 692k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
291 | | |
292 | 692k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
293 | 692k | return Status::OK(); |
294 | 692k | } |
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 | 369k | Block* output_block) const { |
303 | 369k | auto* local_state = state->get_local_state(operator_id()); |
304 | 369k | SCOPED_TIMER(local_state->exec_time_counter()); |
305 | 369k | SCOPED_TIMER(local_state->_projection_timer); |
306 | 369k | const size_t rows = origin_block->rows(); |
307 | 369k | if (rows == 0) { |
308 | 229k | return Status::OK(); |
309 | 229k | } |
310 | 140k | Block input_block = *origin_block; |
311 | | |
312 | 140k | size_t bytes_usage = 0; |
313 | 140k | ColumnsWithTypeAndName new_columns; |
314 | 140k | for (const auto& projections : local_state->_intermediate_projections) { |
315 | 1.24k | if (projections.empty()) { |
316 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
317 | 0 | node_id()); |
318 | 0 | } |
319 | 1.24k | new_columns.resize(projections.size()); |
320 | 8.64k | for (int i = 0; i < projections.size(); i++) { |
321 | 7.39k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
322 | 7.39k | 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 | 7.39k | } |
330 | 1.24k | Block tmp_block {new_columns}; |
331 | 1.24k | bytes_usage += tmp_block.allocated_bytes(); |
332 | 1.24k | input_block.swap(tmp_block); |
333 | 1.24k | } |
334 | | |
335 | 140k | 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 | 726k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
342 | 726k | 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 | 726k | } else { |
352 | 726k | if (_keep_origin || !from->is_exclusive()) { |
353 | 716k | to->insert_range_from(*from, 0, rows); |
354 | 716k | bytes_usage += from->allocated_bytes(); |
355 | 716k | } else { |
356 | 10.4k | to = from->assume_mutable(); |
357 | 10.4k | } |
358 | 726k | } |
359 | 726k | }; |
360 | | |
361 | 140k | MutableBlock mutable_block = |
362 | 140k | VectorizedUtils::build_mutable_mem_reuse_block(output_block, *_output_row_descriptor); |
363 | 140k | if (rows != 0) { |
364 | 140k | auto& mutable_columns = mutable_block.mutable_columns(); |
365 | 140k | const size_t origin_columns_count = input_block.columns(); |
366 | 140k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
367 | 866k | for (int i = 0; i < mutable_columns.size(); ++i) { |
368 | 726k | auto result_column_id = -1; |
369 | 726k | ColumnPtr column_ptr; |
370 | 726k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
371 | 726k | 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 | 726k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
378 | 726k | if (result_column_id >= origin_columns_count) { |
379 | 726k | bytes_usage += column_ptr->allocated_bytes(); |
380 | 726k | } |
381 | 726k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
382 | 726k | } |
383 | 140k | DCHECK(mutable_block.rows() == rows); |
384 | 140k | output_block->set_columns(std::move(mutable_columns)); |
385 | 140k | } |
386 | | |
387 | 140k | local_state->_estimate_memory_usage += bytes_usage; |
388 | | |
389 | 140k | return Status::OK(); |
390 | 140k | } |
391 | | |
392 | 4.46M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
393 | 4.46M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
394 | 4.46M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
395 | 4.46M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
396 | 4.46M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
397 | 4.46M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
398 | 4.46M | if (_debug_point_count++ % 2 == 0) { |
399 | 4.46M | return Status::OK(); |
400 | 4.46M | } |
401 | 4.46M | } |
402 | 4.46M | }); |
403 | | |
404 | 4.46M | Status status; |
405 | 4.46M | auto* local_state = state->get_local_state(operator_id()); |
406 | 4.46M | Defer defer([&]() { |
407 | 4.46M | if (status.ok()) { |
408 | 4.46M | if (auto rows = block->rows()) { |
409 | 935k | COUNTER_UPDATE(local_state->_rows_returned_counter, rows); |
410 | 935k | COUNTER_UPDATE(local_state->_blocks_returned_counter, 1); |
411 | 935k | } |
412 | 4.46M | } |
413 | 4.46M | }); |
414 | 4.46M | if (_output_row_descriptor) { |
415 | 369k | local_state->clear_origin_block(); |
416 | 369k | status = get_block(state, &local_state->_origin_block, eos); |
417 | 369k | if (UNLIKELY(!status.ok())) { |
418 | 13 | return status; |
419 | 13 | } |
420 | 369k | status = do_projections(state, &local_state->_origin_block, block); |
421 | 369k | return status; |
422 | 369k | } |
423 | 4.09M | status = get_block(state, block, eos); |
424 | 4.09M | RETURN_IF_ERROR(block->check_type_and_column()); |
425 | 4.09M | return status; |
426 | 4.09M | } |
427 | | |
428 | 3.26M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
429 | 3.26M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
430 | 5.28k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
431 | 5.28k | *eos = true; |
432 | 5.28k | } |
433 | | |
434 | 3.26M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
435 | 3.26M | auto op_name = to_lower(_parent->_op_name); |
436 | 3.26M | auto arg_op_name = dp->param<std::string>("op_name"); |
437 | 3.26M | arg_op_name = to_lower(arg_op_name); |
438 | | |
439 | 3.26M | if (op_name == arg_op_name) { |
440 | 3.26M | *eos = true; |
441 | 3.26M | } |
442 | 3.26M | }); |
443 | | |
444 | 3.26M | if (auto rows = block->rows()) { |
445 | 861k | _num_rows_returned += rows; |
446 | 861k | } |
447 | 3.26M | } |
448 | | |
449 | 31.4k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
450 | 31.4k | auto result = state->get_sink_local_state_result(); |
451 | 31.4k | if (!result) { |
452 | 0 | return result.error(); |
453 | 0 | } |
454 | 31.4k | return result.value()->terminate(state); |
455 | 31.4k | } |
456 | | |
457 | 55.5k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
458 | 55.5k | fmt::memory_buffer debug_string_buffer; |
459 | | |
460 | 55.5k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
461 | 55.5k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
462 | 55.5k | return fmt::to_string(debug_string_buffer); |
463 | 55.5k | } |
464 | | |
465 | 55.3k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
466 | 55.3k | return state->get_sink_local_state()->debug_string(indentation_level); |
467 | 55.3k | } |
468 | | |
469 | 466k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
470 | 466k | std::string op_name = "UNKNOWN_SINK"; |
471 | 466k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
472 | | |
473 | 466k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
474 | 466k | op_name = it->second; |
475 | 466k | } |
476 | 466k | _name = op_name + "_OPERATOR"; |
477 | 466k | return Status::OK(); |
478 | 466k | } |
479 | | |
480 | 211k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
481 | 211k | std::string op_name = print_plan_node_type(tnode.node_type); |
482 | 211k | _nereids_id = tnode.nereids_id; |
483 | 211k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
484 | 211k | _name = substr + "_SINK_OPERATOR"; |
485 | 211k | return Status::OK(); |
486 | 211k | } |
487 | | |
488 | | template <typename LocalStateType> |
489 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
490 | 2.34M | LocalSinkStateInfo& info) { |
491 | 2.34M | auto local_state = LocalStateType::create_unique(this, state); |
492 | 2.34M | RETURN_IF_ERROR(local_state->init(state, info)); |
493 | 2.34M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
494 | 2.34M | return Status::OK(); |
495 | 2.34M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 191k | LocalSinkStateInfo& info) { | 491 | 191k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 191k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 191k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 191k | return Status::OK(); | 495 | 191k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 457k | LocalSinkStateInfo& info) { | 491 | 457k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 457k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 457k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 457k | return Status::OK(); | 495 | 457k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 80 | LocalSinkStateInfo& info) { | 491 | 80 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 80 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 80 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 80 | return Status::OK(); | 495 | 80 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 3 | LocalSinkStateInfo& info) { | 491 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 3 | return Status::OK(); | 495 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 482 | LocalSinkStateInfo& info) { | 491 | 482 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 482 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 482 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 482 | return Status::OK(); | 495 | 482 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 66.4k | LocalSinkStateInfo& info) { | 491 | 66.4k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 66.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 66.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 66.4k | return Status::OK(); | 495 | 66.4k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 5.63k | LocalSinkStateInfo& info) { | 491 | 5.63k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 5.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 5.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 5.63k | return Status::OK(); | 495 | 5.63k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 5.22k | LocalSinkStateInfo& info) { | 491 | 5.22k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 5.22k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 5.22k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 5.22k | return Status::OK(); | 495 | 5.22k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 156 | LocalSinkStateInfo& info) { | 491 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 156 | return Status::OK(); | 495 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 3.23k | LocalSinkStateInfo& info) { | 491 | 3.23k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 3.23k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 3.23k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 3.23k | return Status::OK(); | 495 | 3.23k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 9.53k | LocalSinkStateInfo& info) { | 491 | 9.53k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 9.53k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 9.53k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 9.53k | return Status::OK(); | 495 | 9.53k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 89 | LocalSinkStateInfo& info) { | 491 | 89 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 89 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 89 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 89 | return Status::OK(); | 495 | 89 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 281k | LocalSinkStateInfo& info) { | 491 | 281k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 281k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 281k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 281k | return Status::OK(); | 495 | 281k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 27 | LocalSinkStateInfo& info) { | 491 | 27 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 27 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 27 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 27 | return Status::OK(); | 495 | 27 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 376k | LocalSinkStateInfo& info) { | 491 | 376k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 376k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 376k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 376k | return Status::OK(); | 495 | 376k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 163k | LocalSinkStateInfo& info) { | 491 | 163k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 163k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 163k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 163k | return Status::OK(); | 495 | 163k | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 670 | LocalSinkStateInfo& info) { | 491 | 670 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 670 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 670 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 670 | return Status::OK(); | 495 | 670 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 750k | LocalSinkStateInfo& info) { | 491 | 750k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 750k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 750k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 750k | return Status::OK(); | 495 | 750k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 9.98k | LocalSinkStateInfo& info) { | 491 | 9.98k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 9.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 9.98k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 9.98k | return Status::OK(); | 495 | 9.98k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 8.86k | LocalSinkStateInfo& info) { | 491 | 8.86k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 8.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 8.86k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 8.86k | return Status::OK(); | 495 | 8.86k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 3.98k | LocalSinkStateInfo& info) { | 491 | 3.98k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 3.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 3.98k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 3.98k | return Status::OK(); | 495 | 3.98k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 357 | LocalSinkStateInfo& info) { | 491 | 357 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 357 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 357 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 357 | return Status::OK(); | 495 | 357 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 5.00k | LocalSinkStateInfo& info) { | 491 | 5.00k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 5.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 5.00k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 5.00k | return Status::OK(); | 495 | 5.00k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 2.57k | LocalSinkStateInfo& info) { | 491 | 2.57k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 2.57k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 2.57k | return Status::OK(); | 495 | 2.57k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 2.78k | LocalSinkStateInfo& info) { | 491 | 2.78k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 2.78k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 2.78k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 2.78k | return Status::OK(); | 495 | 2.78k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 2.51k | LocalSinkStateInfo& info) { | 491 | 2.51k | auto local_state = LocalStateType::create_unique(this, state); | 492 | 2.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 2.51k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 2.51k | return Status::OK(); | 495 | 2.51k | } |
_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 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 165 | LocalSinkStateInfo& info) { | 491 | 165 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 165 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 165 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 165 | return Status::OK(); | 495 | 165 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 108 | LocalSinkStateInfo& info) { | 491 | 108 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 108 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 108 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 108 | return Status::OK(); | 495 | 108 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 105 | LocalSinkStateInfo& info) { | 491 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 105 | return Status::OK(); | 495 | 105 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 150 | LocalSinkStateInfo& info) { | 491 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 150 | return Status::OK(); | 495 | 150 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 490 | 150 | LocalSinkStateInfo& info) { | 491 | 150 | auto local_state = LocalStateType::create_unique(this, state); | 492 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 493 | 150 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 494 | 150 | return Status::OK(); | 495 | 150 | } |
|
496 | | |
497 | | template <typename LocalStateType> |
498 | 1.92M | 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 | 1.92M | } else { |
506 | 1.92M | auto ss = LocalStateType::SharedStateType::create_shared(); |
507 | 1.92M | ss->id = operator_id(); |
508 | 1.92M | for (auto& dest : dests_id()) { |
509 | 1.92M | ss->related_op_ids.insert(dest); |
510 | 1.92M | } |
511 | 1.92M | return ss; |
512 | 1.92M | } |
513 | 1.92M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 169k | 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 | 169k | } else { | 506 | 169k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 169k | ss->id = operator_id(); | 508 | 169k | for (auto& dest : dests_id()) { | 509 | 168k | ss->related_op_ids.insert(dest); | 510 | 168k | } | 511 | 169k | return ss; | 512 | 169k | } | 513 | 169k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 458k | 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 | 458k | } else { | 506 | 458k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 458k | ss->id = operator_id(); | 508 | 458k | for (auto& dest : dests_id()) { | 509 | 457k | ss->related_op_ids.insert(dest); | 510 | 457k | } | 511 | 458k | return ss; | 512 | 458k | } | 513 | 458k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 80 | 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 | 80 | } else { | 506 | 80 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 80 | ss->id = operator_id(); | 508 | 80 | for (auto& dest : dests_id()) { | 509 | 80 | ss->related_op_ids.insert(dest); | 510 | 80 | } | 511 | 80 | return ss; | 512 | 80 | } | 513 | 80 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 3 | 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 | 3 | } else { | 506 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 3 | ss->id = operator_id(); | 508 | 3 | for (auto& dest : dests_id()) { | 509 | 3 | ss->related_op_ids.insert(dest); | 510 | 3 | } | 511 | 3 | return ss; | 512 | 3 | } | 513 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 483 | 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 | 483 | } else { | 506 | 483 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 483 | ss->id = operator_id(); | 508 | 483 | for (auto& dest : dests_id()) { | 509 | 483 | ss->related_op_ids.insert(dest); | 510 | 483 | } | 511 | 483 | return ss; | 512 | 483 | } | 513 | 483 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 65.4k | 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 | 65.4k | } else { | 506 | 65.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 65.4k | ss->id = operator_id(); | 508 | 65.4k | for (auto& dest : dests_id()) { | 509 | 65.4k | ss->related_op_ids.insert(dest); | 510 | 65.4k | } | 511 | 65.4k | return ss; | 512 | 65.4k | } | 513 | 65.4k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 5.07k | 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.07k | } else { | 506 | 5.07k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 5.07k | ss->id = operator_id(); | 508 | 5.07k | for (auto& dest : dests_id()) { | 509 | 5.07k | ss->related_op_ids.insert(dest); | 510 | 5.07k | } | 511 | 5.07k | return ss; | 512 | 5.07k | } | 513 | 5.07k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 5.22k | 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.22k | } else { | 506 | 5.22k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 5.22k | ss->id = operator_id(); | 508 | 5.22k | for (auto& dest : dests_id()) { | 509 | 5.22k | ss->related_op_ids.insert(dest); | 510 | 5.22k | } | 511 | 5.22k | return ss; | 512 | 5.22k | } | 513 | 5.22k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 156 | 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 | 156 | } else { | 506 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 156 | ss->id = operator_id(); | 508 | 156 | for (auto& dest : dests_id()) { | 509 | 156 | ss->related_op_ids.insert(dest); | 510 | 156 | } | 511 | 156 | return ss; | 512 | 156 | } | 513 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 3.23k | 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 | 3.23k | } else { | 506 | 3.23k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 3.23k | ss->id = operator_id(); | 508 | 3.23k | for (auto& dest : dests_id()) { | 509 | 3.23k | ss->related_op_ids.insert(dest); | 510 | 3.23k | } | 511 | 3.23k | return ss; | 512 | 3.23k | } | 513 | 3.23k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 9.54k | 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.54k | } else { | 506 | 9.54k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 9.54k | ss->id = operator_id(); | 508 | 9.54k | for (auto& dest : dests_id()) { | 509 | 9.53k | ss->related_op_ids.insert(dest); | 510 | 9.53k | } | 511 | 9.54k | return ss; | 512 | 9.54k | } | 513 | 9.54k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 89 | 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 | 89 | } else { | 506 | 89 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 89 | ss->id = operator_id(); | 508 | 89 | for (auto& dest : dests_id()) { | 509 | 89 | ss->related_op_ids.insert(dest); | 510 | 89 | } | 511 | 89 | return ss; | 512 | 89 | } | 513 | 89 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 281k | 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 | 281k | } else { | 506 | 281k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 281k | ss->id = operator_id(); | 508 | 281k | for (auto& dest : dests_id()) { | 509 | 280k | ss->related_op_ids.insert(dest); | 510 | 280k | } | 511 | 281k | return ss; | 512 | 281k | } | 513 | 281k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 29 | 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 | 29 | } else { | 506 | 29 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 29 | ss->id = operator_id(); | 508 | 29 | for (auto& dest : dests_id()) { | 509 | 29 | ss->related_op_ids.insert(dest); | 510 | 29 | } | 511 | 29 | return ss; | 512 | 29 | } | 513 | 29 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 163k | 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 | 163k | } else { | 506 | 163k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 163k | ss->id = operator_id(); | 508 | 163k | for (auto& dest : dests_id()) { | 509 | 163k | ss->related_op_ids.insert(dest); | 510 | 163k | } | 511 | 163k | return ss; | 512 | 163k | } | 513 | 163k | } |
_ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 669 | 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 | 669 | } else { | 506 | 669 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 669 | ss->id = operator_id(); | 508 | 669 | for (auto& dest : dests_id()) { | 509 | 669 | ss->related_op_ids.insert(dest); | 510 | 669 | } | 511 | 669 | return ss; | 512 | 669 | } | 513 | 669 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 751k | 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 | 751k | } else { | 506 | 751k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 751k | ss->id = operator_id(); | 508 | 751k | for (auto& dest : dests_id()) { | 509 | 750k | ss->related_op_ids.insert(dest); | 510 | 750k | } | 511 | 751k | return ss; | 512 | 751k | } | 513 | 751k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 9.98k | 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.98k | } else { | 506 | 9.98k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 9.98k | ss->id = operator_id(); | 508 | 9.98k | for (auto& dest : dests_id()) { | 509 | 9.97k | ss->related_op_ids.insert(dest); | 510 | 9.97k | } | 511 | 9.98k | return ss; | 512 | 9.98k | } | 513 | 9.98k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 459 | 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 | 459 | } else { | 506 | 459 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 459 | ss->id = operator_id(); | 508 | 459 | for (auto& dest : dests_id()) { | 509 | 459 | ss->related_op_ids.insert(dest); | 510 | 459 | } | 511 | 459 | return ss; | 512 | 459 | } | 513 | 459 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 498 | 2.78k | 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 | 2.78k | } else { | 506 | 2.78k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 2.78k | ss->id = operator_id(); | 508 | 2.78k | for (auto& dest : dests_id()) { | 509 | 2.77k | ss->related_op_ids.insert(dest); | 510 | 2.77k | } | 511 | 2.78k | return ss; | 512 | 2.78k | } | 513 | 2.78k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 498 | 2.52k | 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 | 2.52k | } else { | 506 | 2.52k | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 2.52k | ss->id = operator_id(); | 508 | 2.52k | for (auto& dest : dests_id()) { | 509 | 2.52k | ss->related_op_ids.insert(dest); | 510 | 2.52k | } | 511 | 2.52k | return ss; | 512 | 2.52k | } | 513 | 2.52k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 165 | 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 | 165 | } else { | 506 | 165 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 165 | ss->id = operator_id(); | 508 | 165 | for (auto& dest : dests_id()) { | 509 | 165 | ss->related_op_ids.insert(dest); | 510 | 165 | } | 511 | 165 | return ss; | 512 | 165 | } | 513 | 165 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 498 | 105 | 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 | 105 | } else { | 506 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 507 | 105 | ss->id = operator_id(); | 508 | 105 | for (auto& dest : dests_id()) { | 509 | 105 | ss->related_op_ids.insert(dest); | 510 | 105 | } | 511 | 105 | return ss; | 512 | 105 | } | 513 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
514 | | |
515 | | template <typename LocalStateType> |
516 | 2.96M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
517 | 2.96M | auto local_state = LocalStateType::create_unique(state, this); |
518 | 2.96M | RETURN_IF_ERROR(local_state->init(state, info)); |
519 | 2.96M | state->emplace_local_state(operator_id(), std::move(local_state)); |
520 | 2.96M | return Status::OK(); |
521 | 2.96M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 143k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 143k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 143k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 143k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 143k | return Status::OK(); | 521 | 143k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 364k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 364k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 364k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 364k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 364k | return Status::OK(); | 521 | 364k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 80 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 80 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 80 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 80 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 80 | return Status::OK(); | 521 | 80 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 34.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 34.3k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 34.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 34.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 34.3k | return Status::OK(); | 521 | 34.3k | } |
_ZN5doris9OperatorXINS_16EsScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 676 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 676 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 676 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 676 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 676 | return Status::OK(); | 521 | 676 | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 9.51k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 9.51k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 9.51k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 9.51k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 9.51k | return Status::OK(); | 521 | 9.51k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 12.8k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 12.8k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 12.8k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 12.8k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 12.8k | return Status::OK(); | 521 | 12.8k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 21 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 21 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 21 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 21 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 21 | return Status::OK(); | 521 | 21 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 267k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 267k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 267k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 267k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 267k | return Status::OK(); | 521 | 267k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 163k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 163k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 163k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 163k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 163k | return Status::OK(); | 521 | 163k | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 660 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 660 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 660 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 660 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 660 | return Status::OK(); | 521 | 660 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 3.86k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 3.86k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 3.86k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 3.86k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 3.86k | return Status::OK(); | 521 | 3.86k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 489k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 489k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 489k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 489k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 489k | return Status::OK(); | 521 | 489k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 1.29k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 1.29k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 1.29k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 1.29k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 1.29k | return Status::OK(); | 521 | 1.29k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 9.97k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 9.97k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 9.97k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 9.97k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 9.97k | return Status::OK(); | 521 | 9.97k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 233 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 233 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 233 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 233 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 233 | return Status::OK(); | 521 | 233 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 1.69k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 1.69k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 1.69k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 1.69k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 1.69k | return Status::OK(); | 521 | 1.69k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 55.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 55.7k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 55.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 55.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 55.7k | return Status::OK(); | 521 | 55.7k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 11.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 11.2k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 11.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 11.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 11.2k | return Status::OK(); | 521 | 11.2k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 357 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 357 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 357 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 357 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 357 | return Status::OK(); | 521 | 357 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 2.78k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 2.78k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 2.78k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 2.78k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 2.78k | return Status::OK(); | 521 | 2.78k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 2.52k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 2.52k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 2.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 2.52k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 2.52k | return Status::OK(); | 521 | 2.52k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 464 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 464 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 464 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 464 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 464 | return Status::OK(); | 521 | 464 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 2.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 2.34k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 2.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 2.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 2.34k | return Status::OK(); | 521 | 2.34k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 7.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 7.08k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 7.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 7.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 7.08k | return Status::OK(); | 521 | 7.08k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 845k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 845k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 845k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 845k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 845k | return Status::OK(); | 521 | 845k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 106 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 106 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 106 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 106 | return Status::OK(); | 521 | 106 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 150 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 150 | auto local_state = LocalStateType::create_unique(state, this); | 518 | 150 | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 150 | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 150 | return Status::OK(); | 521 | 150 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 1.84k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 1.84k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 1.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 1.84k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 1.84k | return Status::OK(); | 521 | 1.84k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 1.90k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 1.90k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 1.90k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 1.90k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 1.90k | return Status::OK(); | 521 | 1.90k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 2.57k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 2.57k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 2.57k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 2.57k | return Status::OK(); | 521 | 2.57k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 16.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 16.0k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 16.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 16.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 16.0k | return Status::OK(); | 521 | 16.0k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 516 | 512k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 517 | 512k | auto local_state = LocalStateType::create_unique(state, this); | 518 | 512k | RETURN_IF_ERROR(local_state->init(state, info)); | 519 | 512k | state->emplace_local_state(operator_id(), std::move(local_state)); | 520 | 512k | return Status::OK(); | 521 | 512k | } |
|
522 | | |
523 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
524 | | RuntimeState* state) |
525 | 2.35M | : _parent(parent), _state(state) {} |
526 | | |
527 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
528 | 2.96M | : _num_rows_returned(0), _rows_returned_counter(nullptr), _parent(parent), _state(state) {} |
529 | | |
530 | | template <typename SharedStateArg> |
531 | 2.96M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
532 | 2.96M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
533 | 2.96M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
534 | 2.96M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
535 | 2.96M | _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 | 2.96M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
539 | 2.96M | _operator_profile->add_child(_common_profile.get(), true); |
540 | 2.96M | _operator_profile->add_child(_custom_profile.get(), true); |
541 | 2.96M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
542 | 2.96M | if constexpr (!is_fake_shared) { |
543 | 1.52M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
544 | 869k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
545 | 869k | .first.get() |
546 | 869k | ->template cast<SharedStateArg>(); |
547 | | |
548 | 869k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
549 | 869k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
550 | 869k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
551 | 869k | } else if (info.shared_state) { |
552 | 602k | 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 | 602k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
557 | | |
558 | 602k | _dependency = _shared_state->create_source_dependency( |
559 | 602k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
560 | 602k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
561 | 602k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
562 | 602k | } else { |
563 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
564 | 18.4E | DCHECK(false); |
565 | 18.4E | } |
566 | 55.7k | } |
567 | 1.52M | } |
568 | | |
569 | 2.96M | 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 | 2.96M | _rows_returned_counter = |
574 | 2.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
575 | 2.96M | _blocks_returned_counter = |
576 | 2.96M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
577 | 2.96M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
578 | 2.96M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
579 | 2.96M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
580 | 2.96M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
581 | 2.96M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
582 | 2.96M | _memory_used_counter = |
583 | 2.96M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
584 | 2.96M | _common_profile->add_info_string("IsColocate", |
585 | 2.96M | std::to_string(_parent->is_colocated_operator())); |
586 | 2.96M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
587 | 2.96M | _common_profile->add_info_string("FollowedByShuffledOperator", |
588 | 2.96M | std::to_string(_parent->followed_by_shuffled_operator())); |
589 | 2.96M | return Status::OK(); |
590 | 2.96M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 143k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 143k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 143k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 143k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 143k | _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 | 143k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 143k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 143k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 143k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 143k | if constexpr (!is_fake_shared) { | 543 | 143k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 22.7k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 22.7k | .first.get() | 546 | 22.7k | ->template cast<SharedStateArg>(); | 547 | | | 548 | 22.7k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 22.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 22.7k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 121k | } 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 | 120k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 120k | _dependency = _shared_state->create_source_dependency( | 559 | 120k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 120k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 120k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 120k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 803 | } | 567 | 143k | } | 568 | | | 569 | 143k | 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 | 143k | _rows_returned_counter = | 574 | 143k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 143k | _blocks_returned_counter = | 576 | 143k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 143k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 143k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 143k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 143k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 143k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 143k | _memory_used_counter = | 583 | 143k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 143k | _common_profile->add_info_string("IsColocate", | 585 | 143k | std::to_string(_parent->is_colocated_operator())); | 586 | 143k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 143k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 143k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 143k | return Status::OK(); | 590 | 143k | } |
_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 | 280k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 280k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 280k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 280k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 280k | _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 | 280k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 280k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 280k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 280k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 280k | if constexpr (!is_fake_shared) { | 543 | 280k | 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 | 280k | } 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 | 277k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 277k | _dependency = _shared_state->create_source_dependency( | 559 | 277k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 277k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 277k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 277k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 3.16k | } | 567 | 280k | } | 568 | | | 569 | 280k | 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 | 280k | _rows_returned_counter = | 574 | 280k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 280k | _blocks_returned_counter = | 576 | 280k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 280k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 280k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 280k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 280k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 280k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 280k | _memory_used_counter = | 583 | 280k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 280k | _common_profile->add_info_string("IsColocate", | 585 | 280k | std::to_string(_parent->is_colocated_operator())); | 586 | 280k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 280k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 280k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 280k | return Status::OK(); | 590 | 280k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 21 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 21 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 21 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 21 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 21 | _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 | 21 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 21 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 21 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 21 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 21 | if constexpr (!is_fake_shared) { | 543 | 21 | 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 | 21 | } 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 | 21 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 21 | _dependency = _shared_state->create_source_dependency( | 559 | 21 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 21 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 21 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 21 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 21 | } | 568 | | | 569 | 21 | 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 | 21 | _rows_returned_counter = | 574 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 21 | _blocks_returned_counter = | 576 | 21 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 21 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 21 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 21 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 21 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 21 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 21 | _memory_used_counter = | 583 | 21 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 21 | _common_profile->add_info_string("IsColocate", | 585 | 21 | std::to_string(_parent->is_colocated_operator())); | 586 | 21 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 21 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 21 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 21 | return Status::OK(); | 590 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 9.98k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 9.98k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 9.98k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 9.98k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 9.98k | _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.98k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 9.98k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 9.98k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 9.98k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 9.98k | if constexpr (!is_fake_shared) { | 543 | 9.98k | 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.98k | } 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.97k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 9.97k | _dependency = _shared_state->create_source_dependency( | 559 | 9.97k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 9.97k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 9.97k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 9.97k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 7 | } | 567 | 9.98k | } | 568 | | | 569 | 9.98k | 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.98k | _rows_returned_counter = | 574 | 9.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 9.98k | _blocks_returned_counter = | 576 | 9.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 9.98k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 9.98k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 9.98k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 9.98k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 9.98k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 9.98k | _memory_used_counter = | 583 | 9.98k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 9.98k | _common_profile->add_info_string("IsColocate", | 585 | 9.98k | std::to_string(_parent->is_colocated_operator())); | 586 | 9.98k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 9.98k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 9.98k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 9.98k | return Status::OK(); | 590 | 9.98k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 9.52k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 9.52k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 9.52k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 9.52k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 9.52k | _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.52k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 9.52k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 9.52k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 9.52k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 9.52k | if constexpr (!is_fake_shared) { | 543 | 9.52k | 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.52k | } 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.50k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 9.50k | _dependency = _shared_state->create_source_dependency( | 559 | 9.50k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 9.50k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 9.50k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 9.50k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 23 | } | 567 | 9.52k | } | 568 | | | 569 | 9.52k | 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.52k | _rows_returned_counter = | 574 | 9.52k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 9.52k | _blocks_returned_counter = | 576 | 9.52k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 9.52k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 9.52k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 9.52k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 9.52k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 9.52k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 9.52k | _memory_used_counter = | 583 | 9.52k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 9.52k | _common_profile->add_info_string("IsColocate", | 585 | 9.52k | std::to_string(_parent->is_colocated_operator())); | 586 | 9.52k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 9.52k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 9.52k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 9.52k | return Status::OK(); | 590 | 9.52k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 163k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 163k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 163k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 163k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 163k | _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 | 163k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 163k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 163k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 163k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 163k | if constexpr (!is_fake_shared) { | 543 | 163k | 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 | 163k | } 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 | 163k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 163k | _dependency = _shared_state->create_source_dependency( | 559 | 163k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 163k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 163k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 163k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 754 | } | 567 | 163k | } | 568 | | | 569 | 163k | 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 | 163k | _rows_returned_counter = | 574 | 163k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 163k | _blocks_returned_counter = | 576 | 163k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 163k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 163k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 163k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 163k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 163k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 163k | _memory_used_counter = | 583 | 163k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 163k | _common_profile->add_info_string("IsColocate", | 585 | 163k | std::to_string(_parent->is_colocated_operator())); | 586 | 163k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 163k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 163k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 163k | return Status::OK(); | 590 | 163k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 660 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 660 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 660 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 660 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 660 | _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 | 660 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 660 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 660 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 660 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 660 | if constexpr (!is_fake_shared) { | 543 | 660 | 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 | 660 | } 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 | 660 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 660 | _dependency = _shared_state->create_source_dependency( | 559 | 660 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 660 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 660 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 660 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 660 | } | 568 | | | 569 | 660 | 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 | 660 | _rows_returned_counter = | 574 | 660 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 660 | _blocks_returned_counter = | 576 | 660 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 660 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 660 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 660 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 660 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 660 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 660 | _memory_used_counter = | 583 | 660 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 660 | _common_profile->add_info_string("IsColocate", | 585 | 660 | std::to_string(_parent->is_colocated_operator())); | 586 | 660 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 660 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 660 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 660 | return Status::OK(); | 590 | 660 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 1.44M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 1.44M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 1.44M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 1.44M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 1.44M | _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.44M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 1.44M | _operator_profile->add_child(_common_profile.get(), true); | 540 | 1.44M | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 1.44M | 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 | 1.44M | 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.44M | _rows_returned_counter = | 574 | 1.44M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 1.44M | _blocks_returned_counter = | 576 | 1.44M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 1.44M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 1.44M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 1.44M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 1.44M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 1.44M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 1.44M | _memory_used_counter = | 583 | 1.44M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 1.44M | _common_profile->add_info_string("IsColocate", | 585 | 1.44M | std::to_string(_parent->is_colocated_operator())); | 586 | 1.44M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 1.44M | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 1.44M | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 1.44M | return Status::OK(); | 590 | 1.44M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 55.7k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 55.7k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 55.7k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 55.7k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 55.7k | _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 | 55.7k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 55.7k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 55.7k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 55.7k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 55.7k | if constexpr (!is_fake_shared) { | 543 | 55.7k | 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 | 55.7k | } 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.31k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 4.31k | _dependency = _shared_state->create_source_dependency( | 559 | 4.31k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 4.31k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 4.31k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 51.4k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 51.4k | } | 567 | 55.7k | } | 568 | | | 569 | 55.7k | 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 | 55.7k | _rows_returned_counter = | 574 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 55.7k | _blocks_returned_counter = | 576 | 55.7k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 55.7k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 55.7k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 55.7k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 55.7k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 55.7k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 55.7k | _memory_used_counter = | 583 | 55.7k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 55.7k | _common_profile->add_info_string("IsColocate", | 585 | 55.7k | std::to_string(_parent->is_colocated_operator())); | 586 | 55.7k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 55.7k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 55.7k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 55.7k | return Status::OK(); | 590 | 55.7k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 107 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 107 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 107 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 107 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 107 | _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 | 107 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 107 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 107 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 107 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 107 | if constexpr (!is_fake_shared) { | 543 | 107 | 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 | 109 | } 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 | 109 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 109 | _dependency = _shared_state->create_source_dependency( | 559 | 109 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 109 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 109 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 18.4E | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 18.4E | } | 567 | 107 | } | 568 | | | 569 | 108 | 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 | 107 | _rows_returned_counter = | 574 | 107 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 107 | _blocks_returned_counter = | 576 | 107 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 107 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 107 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 107 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 107 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 107 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 107 | _memory_used_counter = | 583 | 107 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 107 | _common_profile->add_info_string("IsColocate", | 585 | 107 | std::to_string(_parent->is_colocated_operator())); | 586 | 107 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 107 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 107 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 107 | return Status::OK(); | 590 | 107 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 11.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 11.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 11.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 11.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 11.2k | _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 | 11.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 11.2k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 11.2k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 11.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 11.2k | if constexpr (!is_fake_shared) { | 543 | 11.2k | 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 | 11.2k | } 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 | 11.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 11.2k | _dependency = _shared_state->create_source_dependency( | 559 | 11.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 11.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 11.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 11.2k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 2 | } | 567 | 11.2k | } | 568 | | | 569 | 11.2k | 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 | 11.2k | _rows_returned_counter = | 574 | 11.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 11.2k | _blocks_returned_counter = | 576 | 11.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 11.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 11.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 11.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 11.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 11.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 11.2k | _memory_used_counter = | 583 | 11.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 11.2k | _common_profile->add_info_string("IsColocate", | 585 | 11.2k | std::to_string(_parent->is_colocated_operator())); | 586 | 11.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 11.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 11.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 11.2k | return Status::OK(); | 590 | 11.2k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 459 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 459 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 459 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 459 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 459 | _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 | 459 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 459 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 459 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 459 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 459 | if constexpr (!is_fake_shared) { | 543 | 459 | 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 | 459 | } 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 | 459 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 459 | _dependency = _shared_state->create_source_dependency( | 559 | 459 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 459 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 459 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 459 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 459 | } | 568 | | | 569 | 459 | 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 | 459 | _rows_returned_counter = | 574 | 459 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 459 | _blocks_returned_counter = | 576 | 459 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 459 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 459 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 459 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 459 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 459 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 459 | _memory_used_counter = | 583 | 459 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 459 | _common_profile->add_info_string("IsColocate", | 585 | 459 | std::to_string(_parent->is_colocated_operator())); | 586 | 459 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 459 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 459 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 459 | return Status::OK(); | 590 | 459 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 5.32k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 5.32k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 5.32k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 5.32k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 5.32k | _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 | 5.32k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 5.32k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 5.32k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 5.32k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 5.32k | if constexpr (!is_fake_shared) { | 543 | 5.32k | 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 | 5.32k | } 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 | 5.31k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 5.31k | _dependency = _shared_state->create_source_dependency( | 559 | 5.31k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 5.31k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 5.31k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 5.31k | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 16 | } | 567 | 5.32k | } | 568 | | | 569 | 5.32k | 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 | 5.32k | _rows_returned_counter = | 574 | 5.32k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 5.32k | _blocks_returned_counter = | 576 | 5.32k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 5.32k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 5.32k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 5.32k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 5.32k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 5.32k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 5.32k | _memory_used_counter = | 583 | 5.32k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 5.32k | _common_profile->add_info_string("IsColocate", | 585 | 5.32k | std::to_string(_parent->is_colocated_operator())); | 586 | 5.32k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 5.32k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 5.32k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 5.32k | return Status::OK(); | 590 | 5.32k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 846k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 846k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 846k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 846k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 846k | _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 | 846k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 846k | _operator_profile->add_child(_common_profile.get(), true); | 540 | 846k | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 846k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 846k | if constexpr (!is_fake_shared) { | 543 | 846k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 544 | 846k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 545 | 846k | .first.get() | 546 | 846k | ->template cast<SharedStateArg>(); | 547 | | | 548 | 846k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 549 | 846k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 550 | 846k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 551 | 18.4E | } 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 | 18.4E | } else { | 563 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | 18.4E | DCHECK(false); | 565 | 18.4E | } | 566 | 18.4E | } | 567 | 846k | } | 568 | | | 569 | 846k | 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 | 846k | _rows_returned_counter = | 574 | 846k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 846k | _blocks_returned_counter = | 576 | 846k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 846k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 846k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 846k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 846k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 846k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 846k | _memory_used_counter = | 583 | 846k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 846k | _common_profile->add_info_string("IsColocate", | 585 | 846k | std::to_string(_parent->is_colocated_operator())); | 586 | 846k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 846k | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 846k | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 846k | return Status::OK(); | 590 | 846k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 531 | 150 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 532 | 150 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 533 | 150 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 534 | 150 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 535 | 150 | _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 | 150 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 539 | 150 | _operator_profile->add_child(_common_profile.get(), true); | 540 | 150 | _operator_profile->add_child(_custom_profile.get(), true); | 541 | 150 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 542 | 150 | if constexpr (!is_fake_shared) { | 543 | 150 | 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 | 150 | } 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 | 150 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 557 | | | 558 | 150 | _dependency = _shared_state->create_source_dependency( | 559 | 150 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 560 | 150 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 561 | 150 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 562 | 150 | } else { | 563 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 564 | | DCHECK(false); | 565 | | } | 566 | 0 | } | 567 | 150 | } | 568 | | | 569 | 150 | 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 | 150 | _rows_returned_counter = | 574 | 150 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 575 | 150 | _blocks_returned_counter = | 576 | 150 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 577 | 150 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 578 | 150 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 579 | 150 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 580 | 150 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 581 | 150 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 582 | 150 | _memory_used_counter = | 583 | 150 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 584 | 150 | _common_profile->add_info_string("IsColocate", | 585 | 150 | std::to_string(_parent->is_colocated_operator())); | 586 | 150 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 587 | 150 | _common_profile->add_info_string("FollowedByShuffledOperator", | 588 | 150 | std::to_string(_parent->followed_by_shuffled_operator())); | 589 | 150 | return Status::OK(); | 590 | 150 | } |
|
591 | | |
592 | | template <typename SharedStateArg> |
593 | 2.97M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
594 | 2.97M | _conjuncts.resize(_parent->_conjuncts.size()); |
595 | 2.97M | _projections.resize(_parent->_projections.size()); |
596 | 3.49M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
597 | 519k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
598 | 519k | } |
599 | 6.37M | for (size_t i = 0; i < _projections.size(); i++) { |
600 | 3.40M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
601 | 3.40M | } |
602 | 2.97M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
603 | 2.98M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
604 | 8.25k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
605 | 51.8k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
606 | 43.6k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
607 | 43.6k | state, _intermediate_projections[i][j])); |
608 | 43.6k | } |
609 | 8.25k | } |
610 | 2.97M | return Status::OK(); |
611 | 2.97M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 144k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 144k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 144k | _projections.resize(_parent->_projections.size()); | 596 | 145k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 1.48k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 1.48k | } | 599 | 745k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 601k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 601k | } | 602 | 144k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 144k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 530 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 5.05k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 4.52k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 4.52k | state, _intermediate_projections[i][j])); | 608 | 4.52k | } | 609 | 530 | } | 610 | 144k | return Status::OK(); | 611 | 144k | } |
_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 | 281k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 281k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 281k | _projections.resize(_parent->_projections.size()); | 596 | 281k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 302k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 21.0k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 21.0k | } | 602 | 281k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 281k | 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 | 281k | return Status::OK(); | 611 | 281k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 21 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 21 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 21 | _projections.resize(_parent->_projections.size()); | 596 | 21 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 21 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 21 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 21 | 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 | 21 | return Status::OK(); | 611 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 9.97k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 9.97k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 9.97k | _projections.resize(_parent->_projections.size()); | 596 | 10.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 75 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 75 | } | 599 | 61.8k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 51.8k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 51.8k | } | 602 | 9.97k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 9.99k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 15 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 99 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 84 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 84 | state, _intermediate_projections[i][j])); | 608 | 84 | } | 609 | 15 | } | 610 | 9.97k | return Status::OK(); | 611 | 9.97k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 9.54k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 9.54k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 9.54k | _projections.resize(_parent->_projections.size()); | 596 | 10.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 848 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 848 | } | 599 | 25.0k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 15.5k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 15.5k | } | 602 | 9.54k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 9.72k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 174 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 1.31k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 1.14k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 1.14k | state, _intermediate_projections[i][j])); | 608 | 1.14k | } | 609 | 174 | } | 610 | 9.54k | return Status::OK(); | 611 | 9.54k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 163k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 163k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 163k | _projections.resize(_parent->_projections.size()); | 596 | 168k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 4.53k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 4.53k | } | 599 | 527k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 363k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 363k | } | 602 | 163k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 164k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 378 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 2.62k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 2.24k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 2.24k | state, _intermediate_projections[i][j])); | 608 | 2.24k | } | 609 | 378 | } | 610 | 163k | return Status::OK(); | 611 | 163k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 664 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 664 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 664 | _projections.resize(_parent->_projections.size()); | 596 | 664 | 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.54k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 880 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 880 | } | 602 | 664 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 664 | 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 | 664 | return Status::OK(); | 611 | 664 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 1.44M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 1.44M | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 1.44M | _projections.resize(_parent->_projections.size()); | 596 | 1.95M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 508k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 508k | } | 599 | 3.68M | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 2.24M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 2.24M | } | 602 | 1.44M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 1.45M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 7.15k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 42.8k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 35.6k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 35.6k | state, _intermediate_projections[i][j])); | 608 | 35.6k | } | 609 | 7.15k | } | 610 | 1.44M | return Status::OK(); | 611 | 1.44M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 55.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 55.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 55.9k | _projections.resize(_parent->_projections.size()); | 596 | 55.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 159k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 104k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 104k | } | 602 | 55.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 55.9k | 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 | 55.9k | return Status::OK(); | 611 | 55.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 111 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 111 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 111 | _projections.resize(_parent->_projections.size()); | 596 | 111 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 111 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 111 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 111 | 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 | 111 | return Status::OK(); | 611 | 111 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 11.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 11.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 11.2k | _projections.resize(_parent->_projections.size()); | 596 | 15.0k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 3.74k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 3.74k | } | 599 | 11.2k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 11.2k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 11.2k | 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 | 11.2k | return Status::OK(); | 611 | 11.2k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 459 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 459 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 459 | _projections.resize(_parent->_projections.size()); | 596 | 459 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 459 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 459 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 459 | 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 | 459 | return Status::OK(); | 611 | 459 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 5.32k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 5.32k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 5.32k | _projections.resize(_parent->_projections.size()); | 596 | 5.32k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 5.39k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 64 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 64 | } | 602 | 5.32k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 5.32k | 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 | 5.32k | return Status::OK(); | 611 | 5.32k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 849k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 849k | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 849k | _projections.resize(_parent->_projections.size()); | 596 | 849k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 0 | } | 599 | 849k | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 0 | } | 602 | 849k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 849k | 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 | 849k | return Status::OK(); | 611 | 849k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 593 | 150 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 594 | 150 | _conjuncts.resize(_parent->_conjuncts.size()); | 595 | 150 | _projections.resize(_parent->_projections.size()); | 596 | 157 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 597 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 598 | 7 | } | 599 | 443 | for (size_t i = 0; i < _projections.size(); i++) { | 600 | 293 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 601 | 293 | } | 602 | 150 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 603 | 151 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 604 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 605 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 606 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 607 | 2 | state, _intermediate_projections[i][j])); | 608 | 2 | } | 609 | 1 | } | 610 | 150 | return Status::OK(); | 611 | 150 | } |
|
612 | | |
613 | | template <typename SharedStateArg> |
614 | 10.0k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
615 | 10.0k | if (_terminated) { |
616 | 0 | return Status::OK(); |
617 | 0 | } |
618 | 10.0k | _terminated = true; |
619 | 10.0k | return Status::OK(); |
620 | 10.0k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 1.66k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 1.66k | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 1.66k | _terminated = true; | 619 | 1.66k | return Status::OK(); | 620 | 1.66k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 143 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 143 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 143 | _terminated = true; | 619 | 143 | return Status::OK(); | 620 | 143 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 259 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 259 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 259 | _terminated = true; | 619 | 259 | return Status::OK(); | 620 | 259 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 1 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 1 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 1 | _terminated = true; | 619 | 1 | return Status::OK(); | 620 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 1.28k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 1.28k | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 1.28k | _terminated = true; | 619 | 1.28k | return Status::OK(); | 620 | 1.28k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 5.19k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 5.19k | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 5.19k | _terminated = true; | 619 | 5.19k | return Status::OK(); | 620 | 5.19k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 6 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 6 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 6 | _terminated = true; | 619 | 6 | return Status::OK(); | 620 | 6 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 41 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 41 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 41 | _terminated = true; | 619 | 41 | return Status::OK(); | 620 | 41 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 44 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 44 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 44 | _terminated = true; | 619 | 44 | return Status::OK(); | 620 | 44 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 1.34k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 1.34k | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 1.34k | _terminated = true; | 619 | 1.34k | return Status::OK(); | 620 | 1.34k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 614 | 18 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 615 | 18 | if (_terminated) { | 616 | 0 | return Status::OK(); | 617 | 0 | } | 618 | 18 | _terminated = true; | 619 | 18 | return Status::OK(); | 620 | 18 | } |
|
621 | | |
622 | | template <typename SharedStateArg> |
623 | 3.29M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
624 | 3.29M | if (_closed) { |
625 | 313k | return Status::OK(); |
626 | 313k | } |
627 | 2.97M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
628 | 1.53M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
629 | 1.53M | } |
630 | 2.97M | _closed = true; |
631 | 2.97M | return Status::OK(); |
632 | 3.29M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 144k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 144k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 144k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 144k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 144k | } | 630 | 144k | _closed = true; | 631 | 144k | return Status::OK(); | 632 | 144k | } |
_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 | 559k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 559k | if (_closed) { | 625 | 279k | return Status::OK(); | 626 | 279k | } | 627 | 279k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 279k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 279k | } | 630 | 279k | _closed = true; | 631 | 279k | return Status::OK(); | 632 | 559k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 21 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 21 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 21 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 21 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 21 | } | 630 | 21 | _closed = true; | 631 | 21 | return Status::OK(); | 632 | 21 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 9.97k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 9.97k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 9.97k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 9.97k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 9.97k | } | 630 | 9.97k | _closed = true; | 631 | 9.97k | return Status::OK(); | 632 | 9.97k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 19.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 19.1k | if (_closed) { | 625 | 9.63k | return Status::OK(); | 626 | 9.63k | } | 627 | 9.53k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 9.53k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 9.53k | } | 630 | 9.53k | _closed = true; | 631 | 9.53k | return Status::OK(); | 632 | 19.1k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 163k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 163k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 163k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 163k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 163k | } | 630 | 163k | _closed = true; | 631 | 163k | return Status::OK(); | 632 | 163k | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 659 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 659 | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 659 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 659 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 659 | } | 630 | 659 | _closed = true; | 631 | 659 | return Status::OK(); | 632 | 659 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 1.46M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 1.46M | if (_closed) { | 625 | 18.1k | return Status::OK(); | 626 | 18.1k | } | 627 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | | } | 630 | 1.44M | _closed = true; | 631 | 1.44M | return Status::OK(); | 632 | 1.46M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 55.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 55.9k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 55.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 55.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 55.9k | } | 630 | 55.9k | _closed = true; | 631 | 55.9k | return Status::OK(); | 632 | 55.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 215 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 215 | if (_closed) { | 625 | 108 | return Status::OK(); | 626 | 108 | } | 627 | 107 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 107 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 107 | } | 630 | 107 | _closed = true; | 631 | 107 | return Status::OK(); | 632 | 215 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 11.2k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 11.2k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 11.2k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 11.2k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 11.2k | } | 630 | 11.2k | _closed = true; | 631 | 11.2k | return Status::OK(); | 632 | 11.2k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 713 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 713 | if (_closed) { | 625 | 357 | return Status::OK(); | 626 | 357 | } | 627 | 356 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 356 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 356 | } | 630 | 356 | _closed = true; | 631 | 356 | return Status::OK(); | 632 | 713 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 10.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 10.7k | if (_closed) { | 625 | 5.38k | return Status::OK(); | 626 | 5.38k | } | 627 | 5.32k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 5.32k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 5.32k | } | 630 | 5.32k | _closed = true; | 631 | 5.32k | return Status::OK(); | 632 | 10.7k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 850k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 850k | if (_closed) { | 625 | 0 | return Status::OK(); | 626 | 0 | } | 627 | 850k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 850k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 850k | } | 630 | 850k | _closed = true; | 631 | 850k | return Status::OK(); | 632 | 850k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 623 | 303 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 624 | 303 | if (_closed) { | 625 | 155 | return Status::OK(); | 626 | 155 | } | 627 | 148 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 628 | 148 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 629 | 148 | } | 630 | 148 | _closed = true; | 631 | 148 | return Status::OK(); | 632 | 303 | } |
|
633 | | |
634 | | template <typename SharedState> |
635 | 2.35M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
636 | | // create profile |
637 | 2.35M | _operator_profile = |
638 | 2.35M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
639 | 2.35M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
640 | 2.35M | _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.35M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
646 | 2.35M | _operator_profile->add_child(_common_profile, true); |
647 | 2.35M | _operator_profile->add_child(_custom_profile, true); |
648 | | |
649 | 2.35M | _operator_profile->set_metadata(_parent->node_id()); |
650 | 2.35M | _wait_for_finish_dependency_timer = |
651 | 2.35M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
652 | 2.35M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
653 | 2.35M | if constexpr (!is_fake_shared) { |
654 | 1.59M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
655 | 1.59M | info.shared_state_map.end()) { |
656 | 401k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
657 | 376k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
658 | 376k | } |
659 | 401k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
660 | 401k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
661 | 401k | ? 0 |
662 | 401k | : info.task_idx] |
663 | 401k | .get(); |
664 | 401k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
665 | 1.19M | } else { |
666 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
667 | 18.4E | DCHECK(false); |
668 | 18.4E | } |
669 | 1.19M | _shared_state = info.shared_state->template cast<SharedState>(); |
670 | 1.19M | _dependency = _shared_state->create_sink_dependency( |
671 | 1.19M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
672 | 1.19M | } |
673 | 1.59M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
674 | 1.59M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
675 | 1.59M | } |
676 | | |
677 | 2.35M | 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.35M | _rows_input_counter = |
682 | 2.35M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
683 | 2.35M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
684 | 2.35M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
685 | 2.35M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
686 | 2.35M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
687 | 2.35M | _memory_used_counter = |
688 | 2.35M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
689 | 2.35M | _common_profile->add_info_string("IsColocate", |
690 | 2.35M | std::to_string(_parent->is_colocated_operator())); |
691 | 2.35M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
692 | 2.35M | _common_profile->add_info_string("FollowedByShuffledOperator", |
693 | 2.35M | std::to_string(_parent->followed_by_shuffled_operator())); |
694 | 2.35M | return Status::OK(); |
695 | 2.35M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 192k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 192k | _operator_profile = | 638 | 192k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 192k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 192k | _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 | 192k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 192k | _operator_profile->add_child(_common_profile, true); | 647 | 192k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 192k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 192k | _wait_for_finish_dependency_timer = | 651 | 192k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 192k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 192k | if constexpr (!is_fake_shared) { | 654 | 192k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 192k | 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 | 22.7k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 22.7k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 22.7k | ? 0 | 662 | 22.7k | : info.task_idx] | 663 | 22.7k | .get(); | 664 | 22.7k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 169k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 169k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 169k | _dependency = _shared_state->create_sink_dependency( | 671 | 169k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 169k | } | 673 | 192k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 192k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 192k | } | 676 | | | 677 | 192k | 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 | 192k | _rows_input_counter = | 682 | 192k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 192k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 192k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 192k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 192k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 192k | _memory_used_counter = | 688 | 192k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 192k | _common_profile->add_info_string("IsColocate", | 690 | 192k | std::to_string(_parent->is_colocated_operator())); | 691 | 192k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 192k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 192k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 192k | return Status::OK(); | 695 | 192k | } |
_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 | 281k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 281k | _operator_profile = | 638 | 281k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 281k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 281k | _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 | 281k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 281k | _operator_profile->add_child(_common_profile, true); | 647 | 281k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 281k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 281k | _wait_for_finish_dependency_timer = | 651 | 281k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 281k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 281k | if constexpr (!is_fake_shared) { | 654 | 281k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 281k | 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 | 281k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 281k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 281k | _dependency = _shared_state->create_sink_dependency( | 671 | 281k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 281k | } | 673 | 281k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 281k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 281k | } | 676 | | | 677 | 281k | 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 | 281k | _rows_input_counter = | 682 | 281k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 281k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 281k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 281k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 281k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 281k | _memory_used_counter = | 688 | 281k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 281k | _common_profile->add_info_string("IsColocate", | 690 | 281k | std::to_string(_parent->is_colocated_operator())); | 691 | 281k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 281k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 281k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 281k | return Status::OK(); | 695 | 281k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_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_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 9.98k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 9.98k | _operator_profile = | 638 | 9.98k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 9.98k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 9.98k | _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.98k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 9.98k | _operator_profile->add_child(_common_profile, true); | 647 | 9.98k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 9.98k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 9.98k | _wait_for_finish_dependency_timer = | 651 | 9.98k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 9.98k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 9.98k | if constexpr (!is_fake_shared) { | 654 | 9.98k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 9.98k | 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.98k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 9.98k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 9.98k | _dependency = _shared_state->create_sink_dependency( | 671 | 9.98k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 9.98k | } | 673 | 9.98k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 9.98k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 9.98k | } | 676 | | | 677 | 9.98k | 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.98k | _rows_input_counter = | 682 | 9.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 9.98k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 9.98k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 9.98k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 9.98k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 9.98k | _memory_used_counter = | 688 | 9.98k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 9.98k | _common_profile->add_info_string("IsColocate", | 690 | 9.98k | std::to_string(_parent->is_colocated_operator())); | 691 | 9.98k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 9.98k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 9.98k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 9.98k | return Status::OK(); | 695 | 9.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 9.55k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 9.55k | _operator_profile = | 638 | 9.55k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 9.55k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 9.55k | _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.55k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 9.55k | _operator_profile->add_child(_common_profile, true); | 647 | 9.55k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 9.55k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 9.55k | _wait_for_finish_dependency_timer = | 651 | 9.55k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 9.55k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 9.55k | if constexpr (!is_fake_shared) { | 654 | 9.55k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 9.55k | 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.55k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 9.55k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 9.55k | _dependency = _shared_state->create_sink_dependency( | 671 | 9.55k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 9.55k | } | 673 | 9.55k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 9.55k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 9.55k | } | 676 | | | 677 | 9.55k | 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.55k | _rows_input_counter = | 682 | 9.55k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 9.55k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 9.55k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 9.55k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 9.55k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 9.55k | _memory_used_counter = | 688 | 9.55k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 9.55k | _common_profile->add_info_string("IsColocate", | 690 | 9.55k | std::to_string(_parent->is_colocated_operator())); | 691 | 9.55k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 9.55k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 9.55k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 9.55k | return Status::OK(); | 695 | 9.55k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 163k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 163k | _operator_profile = | 638 | 163k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 163k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 163k | _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 | 163k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 163k | _operator_profile->add_child(_common_profile, true); | 647 | 163k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 163k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 163k | _wait_for_finish_dependency_timer = | 651 | 163k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 163k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 163k | if constexpr (!is_fake_shared) { | 654 | 163k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 163k | 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 | 163k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 163k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 163k | _dependency = _shared_state->create_sink_dependency( | 671 | 163k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 163k | } | 673 | 163k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 163k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 163k | } | 676 | | | 677 | 163k | 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 | 163k | _rows_input_counter = | 682 | 163k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 163k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 163k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 163k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 163k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 163k | _memory_used_counter = | 688 | 163k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 163k | _common_profile->add_info_string("IsColocate", | 690 | 163k | std::to_string(_parent->is_colocated_operator())); | 691 | 163k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 163k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 163k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 163k | return Status::OK(); | 695 | 163k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 670 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 670 | _operator_profile = | 638 | 670 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 670 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 670 | _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 | 670 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 670 | _operator_profile->add_child(_common_profile, true); | 647 | 670 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 670 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 670 | _wait_for_finish_dependency_timer = | 651 | 670 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 670 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 670 | if constexpr (!is_fake_shared) { | 654 | 670 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 670 | 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 | 670 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 670 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 670 | _dependency = _shared_state->create_sink_dependency( | 671 | 670 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 670 | } | 673 | 670 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 670 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 670 | } | 676 | | | 677 | 670 | 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 | 670 | _rows_input_counter = | 682 | 670 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 670 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 670 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 670 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 670 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 670 | _memory_used_counter = | 688 | 670 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 670 | _common_profile->add_info_string("IsColocate", | 690 | 670 | std::to_string(_parent->is_colocated_operator())); | 691 | 670 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 670 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 670 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 670 | return Status::OK(); | 695 | 670 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 752k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 752k | _operator_profile = | 638 | 752k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 752k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 752k | _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 | 752k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 752k | _operator_profile->add_child(_common_profile, true); | 647 | 752k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 752k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 752k | _wait_for_finish_dependency_timer = | 651 | 752k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 752k | 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 | 752k | 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 | 752k | _rows_input_counter = | 682 | 752k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 752k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 752k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 752k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 752k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 752k | _memory_used_counter = | 688 | 752k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 752k | _common_profile->add_info_string("IsColocate", | 690 | 752k | std::to_string(_parent->is_colocated_operator())); | 691 | 752k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 752k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 752k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 752k | return Status::OK(); | 695 | 752k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 8.87k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 8.87k | _operator_profile = | 638 | 8.87k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 8.87k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 8.87k | _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 | 8.87k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 8.87k | _operator_profile->add_child(_common_profile, true); | 647 | 8.87k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 8.87k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 8.87k | _wait_for_finish_dependency_timer = | 651 | 8.87k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 8.87k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 8.87k | if constexpr (!is_fake_shared) { | 654 | 8.87k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 8.87k | 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 | 8.87k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 8.87k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 8.87k | _dependency = _shared_state->create_sink_dependency( | 671 | 8.87k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 8.87k | } | 673 | 8.87k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 8.87k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 8.87k | } | 676 | | | 677 | 8.87k | 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 | 8.87k | _rows_input_counter = | 682 | 8.87k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 8.87k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 8.87k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 8.87k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 8.87k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 8.87k | _memory_used_counter = | 688 | 8.87k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 8.87k | _common_profile->add_info_string("IsColocate", | 690 | 8.87k | std::to_string(_parent->is_colocated_operator())); | 691 | 8.87k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 8.87k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 8.87k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 8.87k | return Status::OK(); | 695 | 8.87k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 459 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 459 | _operator_profile = | 638 | 459 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 459 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 459 | _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 | 459 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 459 | _operator_profile->add_child(_common_profile, true); | 647 | 459 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 459 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 459 | _wait_for_finish_dependency_timer = | 651 | 459 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 459 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 459 | if constexpr (!is_fake_shared) { | 654 | 459 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 459 | 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 | 459 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 459 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 459 | _dependency = _shared_state->create_sink_dependency( | 671 | 459 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 459 | } | 673 | 459 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 459 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 459 | } | 676 | | | 677 | 459 | 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 | 459 | _rows_input_counter = | 682 | 459 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 459 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 459 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 459 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 459 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 459 | _memory_used_counter = | 688 | 459 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 459 | _common_profile->add_info_string("IsColocate", | 690 | 459 | std::to_string(_parent->is_colocated_operator())); | 691 | 459 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 459 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 459 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 459 | return Status::OK(); | 695 | 459 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 3.98k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 3.98k | _operator_profile = | 638 | 3.98k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 3.98k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 3.98k | _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.98k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 3.98k | _operator_profile->add_child(_common_profile, true); | 647 | 3.98k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 3.98k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 3.98k | _wait_for_finish_dependency_timer = | 651 | 3.98k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 3.98k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 3.98k | if constexpr (!is_fake_shared) { | 654 | 3.98k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 3.98k | 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.98k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 3.98k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 3.98k | _dependency = _shared_state->create_sink_dependency( | 671 | 3.98k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 3.98k | } | 673 | 3.98k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 3.98k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 3.98k | } | 676 | | | 677 | 3.98k | 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.98k | _rows_input_counter = | 682 | 3.98k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 3.98k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 3.98k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 3.98k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 3.98k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 3.98k | _memory_used_counter = | 688 | 3.98k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 3.98k | _common_profile->add_info_string("IsColocate", | 690 | 3.98k | std::to_string(_parent->is_colocated_operator())); | 691 | 3.98k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 3.98k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 3.98k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 3.98k | return Status::OK(); | 695 | 3.98k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 12.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 12.9k | _operator_profile = | 638 | 12.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 12.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 12.9k | _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 | 12.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 12.9k | _operator_profile->add_child(_common_profile, true); | 647 | 12.9k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 12.9k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 12.9k | _wait_for_finish_dependency_timer = | 651 | 12.9k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 12.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 12.9k | if constexpr (!is_fake_shared) { | 654 | 12.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 12.9k | 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 | 12.9k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 12.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 12.9k | _dependency = _shared_state->create_sink_dependency( | 671 | 12.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 12.9k | } | 673 | 12.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 12.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 12.9k | } | 676 | | | 677 | 12.9k | 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 | 12.9k | _rows_input_counter = | 682 | 12.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 12.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 12.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 12.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 12.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 12.9k | _memory_used_counter = | 688 | 12.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 12.9k | _common_profile->add_info_string("IsColocate", | 690 | 12.9k | std::to_string(_parent->is_colocated_operator())); | 691 | 12.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 12.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 12.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 12.9k | return Status::OK(); | 695 | 12.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 376k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 376k | _operator_profile = | 638 | 376k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 376k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 376k | _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 | 376k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 376k | _operator_profile->add_child(_common_profile, true); | 647 | 376k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 376k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 376k | _wait_for_finish_dependency_timer = | 651 | 376k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 376k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 376k | if constexpr (!is_fake_shared) { | 654 | 376k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 376k | info.shared_state_map.end()) { | 656 | 376k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 657 | 376k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 658 | 376k | } | 659 | 376k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 376k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 376k | ? 0 | 662 | 376k | : info.task_idx] | 663 | 376k | .get(); | 664 | 376k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 18.4E | } else { | 666 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | 18.4E | DCHECK(false); | 668 | 18.4E | } | 669 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 671 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 18.4E | } | 673 | 376k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 376k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 376k | } | 676 | | | 677 | 376k | 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 | 376k | _rows_input_counter = | 682 | 376k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 376k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 376k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 376k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 376k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 376k | _memory_used_counter = | 688 | 376k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 376k | _common_profile->add_info_string("IsColocate", | 690 | 376k | std::to_string(_parent->is_colocated_operator())); | 691 | 376k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 376k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 376k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 376k | return Status::OK(); | 695 | 376k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 538k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 538k | _operator_profile = | 638 | 538k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 538k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 538k | _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 | 538k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 538k | _operator_profile->add_child(_common_profile, true); | 647 | 538k | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 538k | _operator_profile->set_metadata(_parent->node_id()); | 650 | 538k | _wait_for_finish_dependency_timer = | 651 | 538k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 538k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 538k | if constexpr (!is_fake_shared) { | 654 | 538k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 538k | 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 | 1.50k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 660 | 1.50k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 661 | 1.50k | ? 0 | 662 | 1.50k | : info.task_idx] | 663 | 1.50k | .get(); | 664 | 1.50k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 665 | 537k | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 537k | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 537k | _dependency = _shared_state->create_sink_dependency( | 671 | 537k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 537k | } | 673 | 538k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 538k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 538k | } | 676 | | | 677 | 538k | 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 | 538k | _rows_input_counter = | 682 | 538k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 538k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 538k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 538k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 538k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 538k | _memory_used_counter = | 688 | 538k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 538k | _common_profile->add_info_string("IsColocate", | 690 | 538k | std::to_string(_parent->is_colocated_operator())); | 691 | 538k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 538k | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 538k | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 538k | return Status::OK(); | 695 | 538k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 111 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 111 | _operator_profile = | 638 | 111 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 111 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 111 | _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 | 111 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 111 | _operator_profile->add_child(_common_profile, true); | 647 | 111 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 111 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 111 | _wait_for_finish_dependency_timer = | 651 | 111 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 111 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 111 | if constexpr (!is_fake_shared) { | 654 | 111 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 111 | 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 | 111 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 111 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 111 | _dependency = _shared_state->create_sink_dependency( | 671 | 111 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 111 | } | 673 | 111 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 111 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 111 | } | 676 | | | 677 | 111 | 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 | 111 | _rows_input_counter = | 682 | 111 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 111 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 111 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 111 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 111 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 111 | _memory_used_counter = | 688 | 111 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 111 | _common_profile->add_info_string("IsColocate", | 690 | 111 | std::to_string(_parent->is_colocated_operator())); | 691 | 111 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 111 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 111 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 111 | return Status::OK(); | 695 | 111 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 635 | 300 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 636 | | // create profile | 637 | 300 | _operator_profile = | 638 | 300 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 639 | 300 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 640 | 300 | _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 | 300 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 646 | 300 | _operator_profile->add_child(_common_profile, true); | 647 | 300 | _operator_profile->add_child(_custom_profile, true); | 648 | | | 649 | 300 | _operator_profile->set_metadata(_parent->node_id()); | 650 | 300 | _wait_for_finish_dependency_timer = | 651 | 300 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 652 | 300 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 653 | 300 | if constexpr (!is_fake_shared) { | 654 | 300 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 655 | 300 | 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 | 300 | } else { | 666 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 667 | | DCHECK(false); | 668 | | } | 669 | 300 | _shared_state = info.shared_state->template cast<SharedState>(); | 670 | 300 | _dependency = _shared_state->create_sink_dependency( | 671 | 300 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 672 | 300 | } | 673 | 300 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 674 | 300 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 675 | 300 | } | 676 | | | 677 | 300 | 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 | 300 | _rows_input_counter = | 682 | 300 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 683 | 300 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 684 | 300 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 685 | 300 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 686 | 300 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 687 | 300 | _memory_used_counter = | 688 | 300 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 689 | 300 | _common_profile->add_info_string("IsColocate", | 690 | 300 | std::to_string(_parent->is_colocated_operator())); | 691 | 300 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 692 | 300 | _common_profile->add_info_string("FollowedByShuffledOperator", | 693 | 300 | std::to_string(_parent->followed_by_shuffled_operator())); | 694 | 300 | return Status::OK(); | 695 | 300 | } |
|
696 | | |
697 | | template <typename SharedState> |
698 | 2.35M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
699 | 2.35M | if (_closed) { |
700 | 2 | return Status::OK(); |
701 | 2 | } |
702 | 2.35M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
703 | 1.60M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
704 | 1.60M | } |
705 | 2.35M | _closed = true; |
706 | 2.35M | return Status::OK(); |
707 | 2.35M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 191k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 191k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 191k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 191k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 191k | } | 705 | 191k | _closed = true; | 706 | 191k | return Status::OK(); | 707 | 191k | } |
_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 | 280k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 280k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 280k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 280k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 280k | } | 705 | 280k | _closed = true; | 706 | 280k | return Status::OK(); | 707 | 280k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 19 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 19 | if (_closed) { | 700 | 2 | return Status::OK(); | 701 | 2 | } | 702 | 17 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 17 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 17 | } | 705 | 17 | _closed = true; | 706 | 17 | return Status::OK(); | 707 | 19 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 9.96k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 9.96k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 9.96k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 9.96k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 9.96k | } | 705 | 9.96k | _closed = true; | 706 | 9.96k | return Status::OK(); | 707 | 9.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 9.52k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 9.52k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 9.52k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 9.52k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 9.52k | } | 705 | 9.52k | _closed = true; | 706 | 9.52k | return Status::OK(); | 707 | 9.52k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 163k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 163k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 163k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 163k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 163k | } | 705 | 163k | _closed = true; | 706 | 163k | return Status::OK(); | 707 | 163k | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 659 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 659 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 659 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 659 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 659 | } | 705 | 659 | _closed = true; | 706 | 659 | return Status::OK(); | 707 | 659 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 751k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 751k | 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 | 751k | _closed = true; | 706 | 751k | return Status::OK(); | 707 | 751k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 8.86k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 8.86k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 8.86k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 8.86k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 8.86k | } | 705 | 8.86k | _closed = true; | 706 | 8.86k | return Status::OK(); | 707 | 8.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 356 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 356 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 356 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 356 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 356 | } | 705 | 356 | _closed = true; | 706 | 356 | return Status::OK(); | 707 | 356 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 3.99k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 3.99k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 3.99k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 3.99k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 3.99k | } | 705 | 3.99k | _closed = true; | 706 | 3.99k | return Status::OK(); | 707 | 3.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 12.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 12.9k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 12.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 12.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 12.9k | } | 705 | 12.9k | _closed = true; | 706 | 12.9k | return Status::OK(); | 707 | 12.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 377k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 377k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 377k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 377k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 377k | } | 705 | 377k | _closed = true; | 706 | 377k | return Status::OK(); | 707 | 377k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 540k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 540k | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 540k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 540k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 540k | } | 705 | 540k | _closed = true; | 706 | 540k | return Status::OK(); | 707 | 540k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 108 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 108 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 108 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 108 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 108 | } | 705 | 108 | _closed = true; | 706 | 108 | return Status::OK(); | 707 | 108 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 698 | 300 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 699 | 300 | if (_closed) { | 700 | 0 | return Status::OK(); | 701 | 0 | } | 702 | 300 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 703 | 300 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 704 | 300 | } | 705 | 300 | _closed = true; | 706 | 300 | return Status::OK(); | 707 | 300 | } |
|
708 | | |
709 | | template <typename LocalStateType> |
710 | 9.51k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
711 | 9.51k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
712 | 9.50k | return pull(state, block, eos); |
713 | 9.51k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 710 | 456 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 711 | 456 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 712 | 456 | return pull(state, block, eos); | 713 | 456 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 710 | 9.05k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 711 | 9.05k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 712 | 9.05k | return pull(state, block, eos); | 713 | 9.05k | } |
|
714 | | |
715 | | template <typename LocalStateType> |
716 | 859k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
717 | 859k | auto& local_state = get_local_state(state); |
718 | 859k | if (need_more_input_data(state)) { |
719 | 784k | local_state._child_block->clear_column_data( |
720 | 784k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
721 | 784k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
722 | 784k | state, local_state._child_block.get(), &local_state._child_eos)); |
723 | 784k | *eos = local_state._child_eos; |
724 | 784k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
725 | 67.6k | return Status::OK(); |
726 | 67.6k | } |
727 | 716k | { |
728 | 716k | SCOPED_TIMER(local_state.exec_time_counter()); |
729 | 716k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
730 | 716k | } |
731 | 716k | } |
732 | | |
733 | 791k | if (!need_more_input_data(state)) { |
734 | 739k | SCOPED_TIMER(local_state.exec_time_counter()); |
735 | 739k | bool new_eos = false; |
736 | 739k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
737 | 739k | if (new_eos) { |
738 | 661k | *eos = true; |
739 | 661k | } else if (!need_more_input_data(state)) { |
740 | 25.4k | *eos = false; |
741 | 25.4k | } |
742 | 739k | } |
743 | 791k | return Status::OK(); |
744 | 791k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 194k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 194k | auto& local_state = get_local_state(state); | 718 | 194k | if (need_more_input_data(state)) { | 719 | 133k | local_state._child_block->clear_column_data( | 720 | 133k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 133k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 133k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 133k | *eos = local_state._child_eos; | 724 | 133k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 23.6k | return Status::OK(); | 726 | 23.6k | } | 727 | 110k | { | 728 | 110k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 110k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 110k | } | 731 | 110k | } | 732 | | | 733 | 171k | if (!need_more_input_data(state)) { | 734 | 171k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 171k | bool new_eos = false; | 736 | 171k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 171k | if (new_eos) { | 738 | 118k | *eos = true; | 739 | 118k | } else if (!need_more_input_data(state)) { | 740 | 11.1k | *eos = false; | 741 | 11.1k | } | 742 | 171k | } | 743 | 171k | return Status::OK(); | 744 | 171k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 3.33k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 3.33k | auto& local_state = get_local_state(state); | 718 | 3.33k | if (need_more_input_data(state)) { | 719 | 2.08k | local_state._child_block->clear_column_data( | 720 | 2.08k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 2.08k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 2.08k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 2.08k | *eos = local_state._child_eos; | 724 | 2.08k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 439 | return Status::OK(); | 726 | 439 | } | 727 | 1.64k | { | 728 | 1.64k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 1.64k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 1.64k | } | 731 | 1.64k | } | 732 | | | 733 | 2.90k | if (!need_more_input_data(state)) { | 734 | 2.90k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 2.90k | bool new_eos = false; | 736 | 2.90k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 2.90k | if (new_eos) { | 738 | 1.29k | *eos = true; | 739 | 1.61k | } else if (!need_more_input_data(state)) { | 740 | 1.25k | *eos = false; | 741 | 1.25k | } | 742 | 2.90k | } | 743 | 2.89k | return Status::OK(); | 744 | 2.89k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 4.89k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 4.89k | auto& local_state = get_local_state(state); | 718 | 4.89k | if (need_more_input_data(state)) { | 719 | 4.89k | local_state._child_block->clear_column_data( | 720 | 4.89k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 4.89k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 4.89k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 4.89k | *eos = local_state._child_eos; | 724 | 4.89k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 1.86k | return Status::OK(); | 726 | 1.86k | } | 727 | 3.02k | { | 728 | 3.02k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 3.02k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 3.02k | } | 731 | 3.02k | } | 732 | | | 733 | 3.02k | if (!need_more_input_data(state)) { | 734 | 3.02k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 3.02k | bool new_eos = false; | 736 | 3.02k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 3.02k | if (new_eos) { | 738 | 1.90k | *eos = true; | 739 | 1.90k | } else if (!need_more_input_data(state)) { | 740 | 0 | *eos = false; | 741 | 0 | } | 742 | 3.02k | } | 743 | 3.02k | return Status::OK(); | 744 | 3.02k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 42.1k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 42.1k | auto& local_state = get_local_state(state); | 718 | 42.1k | if (need_more_input_data(state)) { | 719 | 42.1k | local_state._child_block->clear_column_data( | 720 | 42.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 42.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 42.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 42.1k | *eos = local_state._child_eos; | 724 | 42.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 7.80k | return Status::OK(); | 726 | 7.80k | } | 727 | 34.3k | { | 728 | 34.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 34.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 34.3k | } | 731 | 34.3k | } | 732 | | | 733 | 34.3k | if (!need_more_input_data(state)) { | 734 | 16.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 16.1k | bool new_eos = false; | 736 | 16.1k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 16.1k | if (new_eos) { | 738 | 16.0k | *eos = true; | 739 | 16.0k | } else if (!need_more_input_data(state)) { | 740 | 53 | *eos = false; | 741 | 53 | } | 742 | 16.1k | } | 743 | 34.3k | return Status::OK(); | 744 | 34.3k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 574k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 574k | auto& local_state = get_local_state(state); | 718 | 574k | if (need_more_input_data(state)) { | 719 | 574k | local_state._child_block->clear_column_data( | 720 | 574k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 574k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 574k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 574k | *eos = local_state._child_eos; | 724 | 574k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 30.4k | return Status::OK(); | 726 | 30.4k | } | 727 | 543k | { | 728 | 543k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 543k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 543k | } | 731 | 543k | } | 732 | | | 733 | 543k | if (!need_more_input_data(state)) { | 734 | 510k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 510k | bool new_eos = false; | 736 | 510k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 510k | if (new_eos) { | 738 | 509k | *eos = true; | 739 | 509k | } else if (!need_more_input_data(state)) { | 740 | 0 | *eos = false; | 741 | 0 | } | 742 | 510k | } | 743 | 543k | return Status::OK(); | 744 | 543k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 33.7k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 33.7k | auto& local_state = get_local_state(state); | 718 | 33.7k | if (need_more_input_data(state)) { | 719 | 21.1k | local_state._child_block->clear_column_data( | 720 | 21.1k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 21.1k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 21.1k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 21.1k | *eos = local_state._child_eos; | 724 | 21.1k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 3.05k | return Status::OK(); | 726 | 3.05k | } | 727 | 18.0k | { | 728 | 18.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 18.0k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 18.0k | } | 731 | 18.0k | } | 732 | | | 733 | 30.7k | if (!need_more_input_data(state)) { | 734 | 29.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 29.8k | bool new_eos = false; | 736 | 29.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 29.8k | if (new_eos) { | 738 | 9.97k | *eos = true; | 739 | 19.8k | } else if (!need_more_input_data(state)) { | 740 | 12.6k | *eos = false; | 741 | 12.6k | } | 742 | 29.8k | } | 743 | 30.7k | return Status::OK(); | 744 | 30.7k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 716 | 6.15k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 717 | 6.15k | auto& local_state = get_local_state(state); | 718 | 6.15k | if (need_more_input_data(state)) { | 719 | 5.78k | local_state._child_block->clear_column_data( | 720 | 5.78k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 721 | 5.78k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 722 | 5.78k | state, local_state._child_block.get(), &local_state._child_eos)); | 723 | 5.78k | *eos = local_state._child_eos; | 724 | 5.78k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 725 | 420 | return Status::OK(); | 726 | 420 | } | 727 | 5.36k | { | 728 | 5.36k | SCOPED_TIMER(local_state.exec_time_counter()); | 729 | 5.36k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 730 | 5.36k | } | 731 | 5.36k | } | 732 | | | 733 | 5.73k | if (!need_more_input_data(state)) { | 734 | 5.72k | SCOPED_TIMER(local_state.exec_time_counter()); | 735 | 5.72k | bool new_eos = false; | 736 | 5.72k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 737 | 5.72k | if (new_eos) { | 738 | 3.85k | *eos = true; | 739 | 3.85k | } else if (!need_more_input_data(state)) { | 740 | 374 | *eos = false; | 741 | 374 | } | 742 | 5.72k | } | 743 | 5.73k | return Status::OK(); | 744 | 5.73k | } |
|
745 | | |
746 | | template <typename Writer, typename Parent> |
747 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
748 | 81.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
749 | 81.1k | RETURN_IF_ERROR(Base::init(state, info)); |
750 | 81.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
751 | 81.1k | "AsyncWriterDependency", true); |
752 | 81.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
753 | 81.1k | _finish_dependency)); |
754 | | |
755 | 81.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
756 | 81.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
757 | 81.1k | return Status::OK(); |
758 | 81.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 481 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 481 | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 481 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 481 | "AsyncWriterDependency", true); | 752 | 481 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 481 | _finish_dependency)); | 754 | | | 755 | 481 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 481 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 481 | return Status::OK(); | 758 | 481 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 80 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 80 | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 80 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 80 | "AsyncWriterDependency", true); | 752 | 80 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 80 | _finish_dependency)); | 754 | | | 755 | 80 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 80 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 80 | return Status::OK(); | 758 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 66.2k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 66.2k | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 66.2k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 66.2k | "AsyncWriterDependency", true); | 752 | 66.2k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 66.2k | _finish_dependency)); | 754 | | | 755 | 66.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 66.2k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 66.2k | return Status::OK(); | 758 | 66.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 5.63k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 5.63k | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 5.63k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 5.63k | "AsyncWriterDependency", true); | 752 | 5.63k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 5.63k | _finish_dependency)); | 754 | | | 755 | 5.63k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 5.63k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 5.63k | return Status::OK(); | 758 | 5.63k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 5.22k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 5.22k | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 5.22k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 5.22k | "AsyncWriterDependency", true); | 752 | 5.22k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 5.22k | _finish_dependency)); | 754 | | | 755 | 5.22k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 5.22k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 5.22k | return Status::OK(); | 758 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 3.23k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 3.23k | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 3.23k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 3.23k | "AsyncWriterDependency", true); | 752 | 3.23k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 3.23k | _finish_dependency)); | 754 | | | 755 | 3.23k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 3.23k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 3.23k | return Status::OK(); | 758 | 3.23k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 748 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 749 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 750 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 751 | 156 | "AsyncWriterDependency", true); | 752 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 753 | 156 | _finish_dependency)); | 754 | | | 755 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 756 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 757 | 156 | return Status::OK(); | 758 | 156 | } |
|
759 | | |
760 | | template <typename Writer, typename Parent> |
761 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
762 | 81.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
763 | 81.3k | RETURN_IF_ERROR(Base::open(state)); |
764 | 81.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
765 | 685k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
766 | 603k | RETURN_IF_ERROR( |
767 | 603k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
768 | 603k | } |
769 | 81.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
770 | 81.3k | return Status::OK(); |
771 | 81.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 482 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 482 | RETURN_IF_ERROR(Base::open(state)); | 764 | 482 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 2.59k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 2.11k | RETURN_IF_ERROR( | 767 | 2.11k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 2.11k | } | 769 | 482 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 482 | return Status::OK(); | 771 | 482 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 80 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 80 | RETURN_IF_ERROR(Base::open(state)); | 764 | 80 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 388 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 308 | RETURN_IF_ERROR( | 767 | 308 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 308 | } | 769 | 80 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 80 | return Status::OK(); | 771 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 66.5k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 66.5k | RETURN_IF_ERROR(Base::open(state)); | 764 | 66.5k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 462k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 395k | RETURN_IF_ERROR( | 767 | 395k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 395k | } | 769 | 66.5k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 66.5k | return Status::OK(); | 771 | 66.5k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 5.61k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 5.61k | RETURN_IF_ERROR(Base::open(state)); | 764 | 5.61k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 41.9k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 36.3k | RETURN_IF_ERROR( | 767 | 36.3k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 36.3k | } | 769 | 5.61k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 5.61k | return Status::OK(); | 771 | 5.61k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 5.22k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 5.22k | RETURN_IF_ERROR(Base::open(state)); | 764 | 5.22k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 136k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 130k | RETURN_IF_ERROR( | 767 | 130k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 130k | } | 769 | 5.22k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 5.22k | return Status::OK(); | 771 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 3.22k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 3.22k | RETURN_IF_ERROR(Base::open(state)); | 764 | 3.22k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 41.1k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 37.9k | RETURN_IF_ERROR( | 767 | 37.9k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 37.9k | } | 769 | 3.22k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 3.22k | return Status::OK(); | 771 | 3.22k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 762 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 763 | 156 | RETURN_IF_ERROR(Base::open(state)); | 764 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 765 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 766 | 630 | RETURN_IF_ERROR( | 767 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 768 | 630 | } | 769 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 770 | 156 | return Status::OK(); | 771 | 156 | } |
|
772 | | |
773 | | template <typename Writer, typename Parent> |
774 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
775 | 101k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
776 | 101k | return _writer->sink(block, eos); |
777 | 101k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 1.90k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 1.90k | return _writer->sink(block, eos); | 777 | 1.90k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 104 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 104 | return _writer->sink(block, eos); | 777 | 104 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 77.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 77.9k | return _writer->sink(block, eos); | 777 | 77.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 6.66k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 6.66k | return _writer->sink(block, eos); | 777 | 6.66k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 9.48k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 9.48k | return _writer->sink(block, eos); | 777 | 9.48k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 5.16k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 5.16k | return _writer->sink(block, eos); | 777 | 5.16k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 775 | 306 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 776 | 306 | return _writer->sink(block, eos); | 777 | 306 | } |
|
778 | | |
779 | | template <typename Writer, typename Parent> |
780 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
781 | 81.4k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
782 | 81.4k | if (_closed) { |
783 | 0 | return Status::OK(); |
784 | 0 | } |
785 | 81.4k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
786 | 81.4k | 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 | 81.4k | if (_writer) { |
789 | 81.4k | Status st = _writer->get_writer_status(); |
790 | 81.4k | if (exec_status.ok()) { |
791 | 81.4k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
792 | 81.4k | : Status::Cancelled("force close")); |
793 | 81.4k | } else { |
794 | 82 | _writer->force_close(exec_status); |
795 | 82 | } |
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 | 81.4k | RETURN_IF_ERROR(st); |
800 | 81.4k | } |
801 | 81.4k | return Base::close(state, exec_status); |
802 | 81.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 471 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 471 | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 471 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 471 | 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 | 471 | if (_writer) { | 789 | 471 | Status st = _writer->get_writer_status(); | 790 | 471 | if (exec_status.ok()) { | 791 | 471 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 471 | : Status::Cancelled("force close")); | 793 | 471 | } 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 | 471 | RETURN_IF_ERROR(st); | 800 | 471 | } | 801 | 471 | return Base::close(state, exec_status); | 802 | 471 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 80 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 80 | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 80 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 80 | 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 | 80 | if (_writer) { | 789 | 80 | Status st = _writer->get_writer_status(); | 790 | 80 | if (exec_status.ok()) { | 791 | 80 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 80 | : Status::Cancelled("force close")); | 793 | 80 | } 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 | 80 | RETURN_IF_ERROR(st); | 800 | 80 | } | 801 | 80 | return Base::close(state, exec_status); | 802 | 80 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 66.6k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 66.6k | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 66.6k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 66.6k | 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 | 66.6k | if (_writer) { | 789 | 66.6k | Status st = _writer->get_writer_status(); | 790 | 66.6k | if (exec_status.ok()) { | 791 | 66.6k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 66.6k | : Status::Cancelled("force close")); | 793 | 66.6k | } else { | 794 | 84 | _writer->force_close(exec_status); | 795 | 84 | } | 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 | 66.6k | RETURN_IF_ERROR(st); | 800 | 66.6k | } | 801 | 66.6k | return Base::close(state, exec_status); | 802 | 66.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 5.62k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 5.62k | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 5.62k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 5.62k | 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 | 5.63k | if (_writer) { | 789 | 5.63k | Status st = _writer->get_writer_status(); | 790 | 5.63k | if (exec_status.ok()) { | 791 | 5.63k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 5.63k | : Status::Cancelled("force close")); | 793 | 5.63k | } 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 | 5.63k | RETURN_IF_ERROR(st); | 800 | 5.63k | } | 801 | 5.62k | return Base::close(state, exec_status); | 802 | 5.62k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 5.22k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 5.22k | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 5.22k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 5.22k | 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 | 5.22k | if (_writer) { | 789 | 5.22k | Status st = _writer->get_writer_status(); | 790 | 5.22k | if (exec_status.ok()) { | 791 | 5.22k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 5.22k | : Status::Cancelled("force close")); | 793 | 5.22k | } 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 | 5.22k | RETURN_IF_ERROR(st); | 800 | 5.22k | } | 801 | 5.22k | return Base::close(state, exec_status); | 802 | 5.22k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 3.23k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 3.23k | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 3.23k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 3.23k | 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 | 3.23k | if (_writer) { | 789 | 3.23k | Status st = _writer->get_writer_status(); | 790 | 3.23k | if (exec_status.ok()) { | 791 | 3.23k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 3.23k | : Status::Cancelled("force close")); | 793 | 18.4E | } else { | 794 | 18.4E | _writer->force_close(exec_status); | 795 | 18.4E | } | 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 | 3.23k | RETURN_IF_ERROR(st); | 800 | 3.23k | } | 801 | 3.23k | return Base::close(state, exec_status); | 802 | 3.23k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 781 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 782 | 156 | if (_closed) { | 783 | 0 | return Status::OK(); | 784 | 0 | } | 785 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 786 | 156 | 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 | 156 | if (_writer) { | 789 | 156 | Status st = _writer->get_writer_status(); | 790 | 156 | if (exec_status.ok()) { | 791 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 792 | 156 | : Status::Cancelled("force close")); | 793 | 156 | } 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 | 156 | RETURN_IF_ERROR(st); | 800 | 156 | } | 801 | 156 | return Base::close(state, exec_status); | 802 | 156 | } |
|
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 |