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