be/src/exec/operator/operator.cpp
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include "exec/operator/operator.h" |
19 | | |
20 | | #include "common/status.h" |
21 | | #include "exec/common/util.hpp" |
22 | | #include "exec/exchange/local_exchange_sink_operator.h" |
23 | | #include "exec/exchange/local_exchange_source_operator.h" |
24 | | #include "exec/operator/aggregation_sink_operator.h" |
25 | | #include "exec/operator/aggregation_source_operator.h" |
26 | | #include "exec/operator/analytic_sink_operator.h" |
27 | | #include "exec/operator/analytic_source_operator.h" |
28 | | #include "exec/operator/assert_num_rows_operator.h" |
29 | | #include "exec/operator/blackhole_sink_operator.h" |
30 | | #include "exec/operator/bucketed_aggregation_sink_operator.h" |
31 | | #include "exec/operator/bucketed_aggregation_source_operator.h" |
32 | | #include "exec/operator/cache_sink_operator.h" |
33 | | #include "exec/operator/cache_source_operator.h" |
34 | | #include "exec/operator/datagen_operator.h" |
35 | | #include "exec/operator/dict_sink_operator.h" |
36 | | #include "exec/operator/distinct_streaming_aggregation_operator.h" |
37 | | #include "exec/operator/empty_set_operator.h" |
38 | | #include "exec/operator/exchange_sink_operator.h" |
39 | | #include "exec/operator/exchange_source_operator.h" |
40 | | #include "exec/operator/file_scan_operator.h" |
41 | | #include "exec/operator/group_commit_block_sink_operator.h" |
42 | | #include "exec/operator/group_commit_scan_operator.h" |
43 | | #include "exec/operator/hashjoin_build_sink.h" |
44 | | #include "exec/operator/hashjoin_probe_operator.h" |
45 | | #include "exec/operator/hive_table_sink_operator.h" |
46 | | #include "exec/operator/iceberg_delete_sink_operator.h" |
47 | | #include "exec/operator/iceberg_merge_sink_operator.h" |
48 | | #include "exec/operator/iceberg_table_sink_operator.h" |
49 | | #include "exec/operator/jdbc_scan_operator.h" |
50 | | #include "exec/operator/jdbc_table_sink_operator.h" |
51 | | #include "exec/operator/local_merge_sort_source_operator.h" |
52 | | #include "exec/operator/materialization_opertor.h" |
53 | | #include "exec/operator/maxcompute_table_sink_operator.h" |
54 | | #include "exec/operator/memory_scratch_sink_operator.h" |
55 | | #include "exec/operator/meta_scan_operator.h" |
56 | | #include "exec/operator/mock_operator.h" |
57 | | #include "exec/operator/mock_scan_operator.h" |
58 | | #include "exec/operator/multi_cast_data_stream_sink.h" |
59 | | #include "exec/operator/multi_cast_data_stream_source.h" |
60 | | #include "exec/operator/nested_loop_join_build_operator.h" |
61 | | #include "exec/operator/nested_loop_join_probe_operator.h" |
62 | | #include "exec/operator/olap_scan_operator.h" |
63 | | #include "exec/operator/olap_table_sink_operator.h" |
64 | | #include "exec/operator/olap_table_sink_v2_operator.h" |
65 | | #include "exec/operator/partition_sort_sink_operator.h" |
66 | | #include "exec/operator/partition_sort_source_operator.h" |
67 | | #include "exec/operator/partitioned_aggregation_sink_operator.h" |
68 | | #include "exec/operator/partitioned_aggregation_source_operator.h" |
69 | | #include "exec/operator/partitioned_hash_join_probe_operator.h" |
70 | | #include "exec/operator/partitioned_hash_join_sink_operator.h" |
71 | | #include "exec/operator/rec_cte_anchor_sink_operator.h" |
72 | | #include "exec/operator/rec_cte_scan_operator.h" |
73 | | #include "exec/operator/rec_cte_sink_operator.h" |
74 | | #include "exec/operator/rec_cte_source_operator.h" |
75 | | #include "exec/operator/repeat_operator.h" |
76 | | #include "exec/operator/result_file_sink_operator.h" |
77 | | #include "exec/operator/result_sink_operator.h" |
78 | | #include "exec/operator/schema_scan_operator.h" |
79 | | #include "exec/operator/select_operator.h" |
80 | | #include "exec/operator/set_probe_sink_operator.h" |
81 | | #include "exec/operator/set_sink_operator.h" |
82 | | #include "exec/operator/set_source_operator.h" |
83 | | #include "exec/operator/sort_sink_operator.h" |
84 | | #include "exec/operator/sort_source_operator.h" |
85 | | #include "exec/operator/spill_iceberg_table_sink_operator.h" |
86 | | #include "exec/operator/spill_sort_sink_operator.h" |
87 | | #include "exec/operator/spill_sort_source_operator.h" |
88 | | #include "exec/operator/streaming_aggregation_operator.h" |
89 | | #include "exec/operator/table_function_operator.h" |
90 | | #include "exec/operator/tvf_table_sink_operator.h" |
91 | | #include "exec/operator/union_sink_operator.h" |
92 | | #include "exec/operator/union_source_operator.h" |
93 | | #include "exec/pipeline/dependency.h" |
94 | | #include "exec/pipeline/pipeline.h" |
95 | | #include "exprs/vexpr.h" |
96 | | #include "exprs/vexpr_context.h" |
97 | | #include "runtime/runtime_profile.h" |
98 | | #include "runtime/runtime_profile_counter_names.h" |
99 | | #include "util/debug_util.h" |
100 | | #include "util/string_util.h" |
101 | | |
102 | | namespace doris { |
103 | | class RowDescriptor; |
104 | | class RuntimeState; |
105 | | } // namespace doris |
106 | | |
107 | | namespace doris { |
108 | | |
109 | 0 | Status OperatorBase::close(RuntimeState* state) { |
110 | 0 | if (_is_closed) { |
111 | 0 | return Status::OK(); |
112 | 0 | } |
113 | 0 | _is_closed = true; |
114 | 0 | return Status::OK(); |
115 | 0 | } |
116 | | |
117 | | template <typename SharedStateArg> |
118 | 2.09M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.09M | if (_parent->nereids_id() == -1) { |
120 | 1.11M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.11M | } else { |
122 | 977k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 977k | } |
124 | 2.09M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 70.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 70.9k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 70.9k | } else { | 122 | 70.9k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 70.9k | } | 124 | 70.9k | } |
_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 | 241k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 241k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 241k | } else { | 122 | 241k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 241k | } | 124 | 241k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 26 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 26 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 26 | } else { | 122 | 26 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 26 | } | 124 | 26 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.69k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.69k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.69k | } else { | 122 | 9.69k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 9.69k | } | 124 | 9.69k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 7.14k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 7.14k | if (_parent->nereids_id() == -1) { | 120 | 11 | return fmt::format("(id={})", _parent->node_id()); | 121 | 7.13k | } else { | 122 | 7.13k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 7.13k | } | 124 | 7.14k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 147k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 147k | if (_parent->nereids_id() == -1) { | 120 | 29 | return fmt::format("(id={})", _parent->node_id()); | 121 | 147k | } else { | 122 | 147k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 147k | } | 124 | 147k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 658 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 658 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 658 | } else { | 122 | 658 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 658 | } | 124 | 658 | } |
_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 | 800k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 800k | if (_parent->nereids_id() == -1) { | 120 | 362k | return fmt::format("(id={})", _parent->node_id()); | 121 | 438k | } else { | 122 | 438k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 438k | } | 124 | 800k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 55.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 55.2k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 55.2k | } else { | 122 | 55.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 55.2k | } | 124 | 55.2k | } |
_ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 17 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 17 | if (_parent->nereids_id() == -1) { | 120 | 17 | return fmt::format("(id={})", _parent->node_id()); | 121 | 17 | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 17 | } |
_ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 10.0k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 10.0k | if (_parent->nereids_id() == -1) { | 120 | 10.0k | return fmt::format("(id={})", _parent->node_id()); | 121 | 10.0k | } else { | 122 | 5 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 5 | } | 124 | 10.0k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 470 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 470 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 368 | } else { | 122 | 368 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 368 | } | 124 | 470 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.85k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.85k | if (_parent->nereids_id() == -1) { | 120 | 13 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.84k | } else { | 122 | 4.84k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.84k | } | 124 | 4.85k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 743k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 743k | if (_parent->nereids_id() == -1) { | 120 | 742k | return fmt::format("(id={})", _parent->node_id()); | 121 | 742k | } else { | 122 | 712 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 712 | } | 124 | 743k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 151 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 151 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 151 | } else { | 122 | 151 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 151 | } | 124 | 151 | } |
|
125 | | |
126 | | template <typename SharedStateArg> |
127 | 1.33M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.33M | if (_parent->nereids_id() == -1) { |
129 | 801k | return fmt::format("(id={})", _parent->node_id()); |
130 | 801k | } else { |
131 | 534k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 534k | } |
133 | 1.33M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 118k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 118k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 118k | } else { | 131 | 118k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 118k | } | 133 | 118k | } |
_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 | 243k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 243k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 243k | } else { | 131 | 243k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 243k | } | 133 | 243k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 33 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 33 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 33 | } else { | 131 | 33 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 33 | } | 133 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 9.70k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 9.70k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 9.70k | } else { | 131 | 9.70k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 9.70k | } | 133 | 9.70k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 7.16k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 7.16k | if (_parent->nereids_id() == -1) { | 129 | 11 | return fmt::format("(id={})", _parent->node_id()); | 130 | 7.15k | } else { | 131 | 7.15k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 7.15k | } | 133 | 7.16k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 148k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 148k | if (_parent->nereids_id() == -1) { | 129 | 29 | return fmt::format("(id={})", _parent->node_id()); | 130 | 148k | } else { | 131 | 148k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 148k | } | 133 | 148k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 485 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 485 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 485 | } else { | 131 | 485 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 485 | } | 133 | 485 | } |
_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 | 104 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 104 | if (_parent->nereids_id() == -1) { | 129 | 104 | return fmt::format("(id={})", _parent->node_id()); | 130 | 104 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 104 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 5.84k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 5.84k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 5.84k | } else { | 131 | 5.84k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 5.84k | } | 133 | 5.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 473 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 473 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 371 | } else { | 131 | 371 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 371 | } | 133 | 473 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 11.9k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 11.9k | if (_parent->nereids_id() == -1) { | 129 | 11.9k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 306k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 306k | if (_parent->nereids_id() == -1) { | 129 | 306k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 306k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 482k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 482k | if (_parent->nereids_id() == -1) { | 129 | 482k | return fmt::format("(id={})", _parent->node_id()); | 130 | 18.4E | } else { | 131 | 18.4E | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 18.4E | } | 133 | 482k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 17 | if (_parent->nereids_id() == -1) { | 129 | 17 | return fmt::format("(id={})", _parent->node_id()); | 130 | 17 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 302 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 302 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 302 | } else { | 131 | 302 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 302 | } | 133 | 302 | } |
|
134 | | |
135 | | template <typename SharedStateArg> |
136 | 29.8k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 29.8k | if (_terminated) { |
138 | 0 | return Status::OK(); |
139 | 0 | } |
140 | 29.8k | _terminated = true; |
141 | 29.8k | return Status::OK(); |
142 | 29.8k | } _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 | 1.12k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1.12k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1.12k | _terminated = true; | 141 | 1.12k | return Status::OK(); | 142 | 1.12k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 5 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 5 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 5 | _terminated = true; | 141 | 5 | return Status::OK(); | 142 | 5 | } |
_ZN5doris23PipelineXSinkLocalStateINS_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 | 2.88k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2.88k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2.88k | _terminated = true; | 141 | 2.88k | return Status::OK(); | 142 | 2.88k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 7 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 7 | _terminated = true; | 141 | 7 | return Status::OK(); | 142 | 7 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 972 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 972 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 972 | _terminated = true; | 141 | 972 | return Status::OK(); | 142 | 972 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 22 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 22 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 22 | _terminated = true; | 141 | 22 | return Status::OK(); | 142 | 22 | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 604 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 604 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 604 | _terminated = true; | 141 | 604 | return Status::OK(); | 142 | 604 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 1 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 1 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 1 | _terminated = true; | 141 | 1 | return Status::OK(); | 142 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 117 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 117 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 117 | _terminated = true; | 141 | 117 | return Status::OK(); | 142 | 117 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 142 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 142 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 142 | _terminated = true; | 141 | 142 | return Status::OK(); | 142 | 142 | } |
|
143 | | |
144 | 797k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 797k | return _child && _child->is_serial_operator() && !is_source() |
146 | 797k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 797k | : DataDistribution(ExchangeType::NOOP); |
148 | 797k | } |
149 | | |
150 | 13.6k | bool OperatorBase::is_hash_shuffle(ExchangeType exchange_type) { |
151 | 13.6k | return exchange_type == ExchangeType::HASH_SHUFFLE || |
152 | 13.6k | exchange_type == ExchangeType::BUCKET_HASH_SHUFFLE; |
153 | 13.6k | } |
154 | | |
155 | 89.3k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
156 | 89.3k | if (!_child) { |
157 | 30.0k | return false; |
158 | 30.0k | } |
159 | 59.2k | if (_child->is_serial_operator()) { |
160 | 44.5k | return true; |
161 | 44.5k | } |
162 | 14.6k | const auto child_distribution = _child->required_data_distribution(state); |
163 | 14.6k | return child_distribution.need_local_exchange() && |
164 | 14.6k | !is_hash_shuffle(child_distribution.distribution_type); |
165 | 59.2k | } |
166 | | |
167 | 81.5k | const RowDescriptor& OperatorBase::row_desc() const { |
168 | 81.5k | return _child->row_desc(); |
169 | 81.5k | } |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 17.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 17.0k | fmt::memory_buffer debug_string_buffer; |
174 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 17.0k | return fmt::to_string(debug_string_buffer); |
176 | 17.0k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 6 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 6 | fmt::memory_buffer debug_string_buffer; | 174 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 6 | return fmt::to_string(debug_string_buffer); | 176 | 6 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 3 | fmt::memory_buffer debug_string_buffer; | 174 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 3 | return fmt::to_string(debug_string_buffer); | 176 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 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_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 1 | fmt::memory_buffer debug_string_buffer; | 174 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 1 | return fmt::to_string(debug_string_buffer); | 176 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_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_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 17.0k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 17.0k | fmt::memory_buffer debug_string_buffer; | 174 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 17.0k | return fmt::to_string(debug_string_buffer); | 176 | 17.0k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 1 | fmt::memory_buffer debug_string_buffer; | 174 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 1 | return fmt::to_string(debug_string_buffer); | 176 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | | template <typename SharedStateArg> |
179 | 17.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
180 | 17.0k | fmt::memory_buffer debug_string_buffer; |
181 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
182 | 17.0k | return fmt::to_string(debug_string_buffer); |
183 | 17.0k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 2 | fmt::memory_buffer debug_string_buffer; | 181 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 2 | return fmt::to_string(debug_string_buffer); | 183 | 2 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 3 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 3 | fmt::memory_buffer debug_string_buffer; | 181 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 3 | return fmt::to_string(debug_string_buffer); | 183 | 3 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 2 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 2 | fmt::memory_buffer debug_string_buffer; | 181 | 2 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 2 | return fmt::to_string(debug_string_buffer); | 183 | 2 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 3 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 3 | fmt::memory_buffer debug_string_buffer; | 181 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 3 | return fmt::to_string(debug_string_buffer); | 183 | 3 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 6 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 6 | fmt::memory_buffer debug_string_buffer; | 181 | 6 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 6 | return fmt::to_string(debug_string_buffer); | 183 | 6 | } |
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 | 17.0k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 17.0k | fmt::memory_buffer debug_string_buffer; | 181 | 17.0k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 17.0k | return fmt::to_string(debug_string_buffer); | 183 | 17.0k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
184 | | |
185 | 17.2k | std::string OperatorXBase::debug_string(int indentation_level) const { |
186 | 17.2k | fmt::memory_buffer debug_string_buffer; |
187 | 17.2k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
188 | 17.2k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
189 | 17.2k | _is_serial_operator); |
190 | 17.2k | return fmt::to_string(debug_string_buffer); |
191 | 17.2k | } |
192 | | |
193 | 17.0k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
194 | 17.0k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
195 | 17.0k | } |
196 | | |
197 | 698k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
198 | 698k | std::string node_name = print_plan_node_type(tnode.node_type); |
199 | 698k | _nereids_id = tnode.nereids_id; |
200 | 698k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
201 | 3.80k | if (!tnode.__isset.output_tuple_id) { |
202 | 0 | return Status::InternalError("no final output tuple id"); |
203 | 0 | } |
204 | 3.80k | if (tnode.intermediate_output_tuple_id_list.size() != |
205 | 3.80k | 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 | 3.80k | } |
213 | 698k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
214 | 698k | _op_name = substr + "_OPERATOR"; |
215 | | |
216 | 698k | if (tnode.__isset.vconjunct) { |
217 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
218 | 698k | } else if (tnode.__isset.conjuncts) { |
219 | 449k | for (const auto& conjunct : tnode.conjuncts) { |
220 | 449k | VExprContextSPtr context; |
221 | 449k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
222 | 449k | _conjuncts.emplace_back(context); |
223 | 449k | } |
224 | 146k | } |
225 | | |
226 | | // create the projections expr |
227 | 698k | if (tnode.__isset.projections) { |
228 | 315k | DCHECK(tnode.__isset.output_tuple_id); |
229 | 315k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
230 | 315k | } |
231 | 698k | if (!tnode.intermediate_projections_list.empty()) { |
232 | 3.80k | DCHECK(tnode.__isset.projections) << "no final projections"; |
233 | 3.80k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
234 | 8.00k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
235 | 8.00k | VExprContextSPtrs projections; |
236 | 8.00k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
237 | 8.00k | _intermediate_projections.push_back(projections); |
238 | 8.00k | } |
239 | 3.80k | } |
240 | 698k | return Status::OK(); |
241 | 698k | } |
242 | | |
243 | 730k | Status OperatorXBase::prepare(RuntimeState* state) { |
244 | 730k | for (auto& conjunct : _conjuncts) { |
245 | 448k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
246 | 448k | } |
247 | 730k | if (state->enable_adjust_conjunct_order_by_cost()) { |
248 | 678k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
249 | 604k | return a->execute_cost() < b->execute_cost(); |
250 | 604k | }); |
251 | 678k | }; |
252 | | |
253 | 738k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
254 | 8.00k | RETURN_IF_ERROR( |
255 | 8.00k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
256 | 8.00k | } |
257 | 730k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
258 | | |
259 | 730k | if (has_output_row_desc()) { |
260 | 315k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
261 | 315k | } |
262 | | |
263 | 730k | for (auto& conjunct : _conjuncts) { |
264 | 449k | RETURN_IF_ERROR(conjunct->open(state)); |
265 | 449k | } |
266 | 730k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
267 | 730k | for (auto& projections : _intermediate_projections) { |
268 | 8.00k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
269 | 8.00k | } |
270 | 730k | if (_child && !is_source()) { |
271 | 133k | RETURN_IF_ERROR(_child->prepare(state)); |
272 | 133k | } |
273 | | |
274 | 730k | if (VExpr::contains_blockable_function(_conjuncts) || |
275 | 730k | VExpr::contains_blockable_function(_projections)) { |
276 | 0 | _blockable = true; |
277 | 0 | } |
278 | | |
279 | 730k | return Status::OK(); |
280 | 730k | } |
281 | | |
282 | 7.00k | Status OperatorXBase::terminate(RuntimeState* state) { |
283 | 7.00k | if (_child && !is_source()) { |
284 | 1.11k | RETURN_IF_ERROR(_child->terminate(state)); |
285 | 1.11k | } |
286 | 7.00k | auto result = state->get_local_state_result(operator_id()); |
287 | 7.00k | if (!result) { |
288 | 0 | return result.error(); |
289 | 0 | } |
290 | 7.00k | return result.value()->terminate(state); |
291 | 7.00k | } |
292 | | |
293 | 5.83M | Status OperatorXBase::close(RuntimeState* state) { |
294 | 5.83M | if (_child && !is_source()) { |
295 | 1.01M | RETURN_IF_ERROR(_child->close(state)); |
296 | 1.01M | } |
297 | 5.83M | auto result = state->get_local_state_result(operator_id()); |
298 | 5.83M | if (!result) { |
299 | 0 | return result.error(); |
300 | 0 | } |
301 | 5.83M | return result.value()->close(state); |
302 | 5.83M | } |
303 | | |
304 | 278k | void PipelineXLocalStateBase::clear_origin_block() { |
305 | 278k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
306 | 278k | } |
307 | | |
308 | 589k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
309 | 589k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
310 | | |
311 | 589k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
312 | 589k | return Status::OK(); |
313 | 589k | } |
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 | 278k | Block* output_block) const { |
322 | 278k | auto* local_state = state->get_local_state(operator_id()); |
323 | 278k | SCOPED_TIMER(local_state->exec_time_counter()); |
324 | 278k | SCOPED_TIMER(local_state->_projection_timer); |
325 | 278k | const size_t rows = origin_block->rows(); |
326 | 278k | if (rows == 0) { |
327 | 142k | return Status::OK(); |
328 | 142k | } |
329 | 135k | Block input_block = *origin_block; |
330 | | |
331 | 135k | size_t bytes_usage = 0; |
332 | 135k | ColumnsWithTypeAndName new_columns; |
333 | 135k | for (const auto& projections : local_state->_intermediate_projections) { |
334 | 1.24k | if (projections.empty()) { |
335 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
336 | 0 | node_id()); |
337 | 0 | } |
338 | 1.24k | new_columns.resize(projections.size()); |
339 | 8.77k | for (int i = 0; i < projections.size(); i++) { |
340 | 7.53k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
341 | 7.53k | 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 | 7.53k | } |
349 | 1.24k | Block tmp_block {new_columns}; |
350 | 1.24k | bytes_usage += tmp_block.allocated_bytes(); |
351 | 1.24k | input_block.swap(tmp_block); |
352 | 1.24k | } |
353 | | |
354 | 135k | 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 | 647k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
361 | 647k | 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 | 647k | } else { |
371 | 647k | if (_keep_origin || !from->is_exclusive()) { |
372 | 647k | to->insert_range_from(*from, 0, rows); |
373 | 647k | bytes_usage += from->allocated_bytes(); |
374 | 18.4E | } else { |
375 | 18.4E | to = from->assert_mutable(); |
376 | 18.4E | } |
377 | 647k | } |
378 | 647k | }; |
379 | | |
380 | 135k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
381 | 135k | output_block, *_output_row_descriptor); |
382 | 135k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
383 | 135k | auto& mutable_columns = mutable_block.mutable_columns(); |
384 | 136k | if (rows != 0) { |
385 | 136k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
386 | 783k | for (int i = 0; i < mutable_columns.size(); ++i) { |
387 | 647k | ColumnPtr column_ptr; |
388 | 647k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
389 | 647k | 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 | 647k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
396 | 647k | bytes_usage += column_ptr->allocated_bytes(); |
397 | 647k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
398 | 647k | } |
399 | 136k | DCHECK(mutable_block.rows() == rows); |
400 | 136k | } |
401 | 135k | local_state->_estimate_memory_usage += bytes_usage; |
402 | | |
403 | 135k | return Status::OK(); |
404 | 135k | } |
405 | | |
406 | 4.55M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
407 | 4.55M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
408 | 4.55M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
409 | 4.55M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
410 | 4.55M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
411 | 4.55M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
412 | 4.55M | if (_debug_point_count++ % 2 == 0) { |
413 | 4.55M | return Status::OK(); |
414 | 4.55M | } |
415 | 4.55M | } |
416 | 4.55M | }); |
417 | | |
418 | 4.55M | Status status; |
419 | 4.55M | auto* local_state = state->get_local_state(operator_id()); |
420 | 4.56M | Defer defer([&]() { |
421 | 4.56M | if (status.ok()) { |
422 | 4.55M | local_state->update_output_block_counters(*block); |
423 | 4.55M | } |
424 | 4.56M | }); |
425 | 4.55M | if (_output_row_descriptor) { |
426 | 278k | local_state->clear_origin_block(); |
427 | 278k | status = get_block(state, &local_state->_origin_block, eos); |
428 | 278k | if (UNLIKELY(!status.ok())) { |
429 | 20 | return status; |
430 | 20 | } |
431 | 278k | status = do_projections(state, &local_state->_origin_block, block); |
432 | 278k | return status; |
433 | 278k | } |
434 | 4.28M | status = get_block(state, block, eos); |
435 | 4.28M | RETURN_IF_ERROR(block->check_type_and_column()); |
436 | 4.28M | return status; |
437 | 4.28M | } |
438 | | |
439 | 3.05M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
440 | 3.05M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
441 | 6.51k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
442 | 6.51k | *eos = true; |
443 | 6.51k | } |
444 | | |
445 | 3.05M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
446 | 3.05M | auto op_name = to_lower(_parent->_op_name); |
447 | 3.05M | auto arg_op_name = dp->param<std::string>("op_name"); |
448 | 3.05M | arg_op_name = to_lower(arg_op_name); |
449 | | |
450 | 3.05M | if (op_name == arg_op_name) { |
451 | 3.05M | *eos = true; |
452 | 3.05M | } |
453 | 3.05M | }); |
454 | | |
455 | 3.05M | if (auto rows = block->rows()) { |
456 | 853k | _num_rows_returned += rows; |
457 | 853k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
458 | 853k | } |
459 | 3.05M | } |
460 | | |
461 | 29.8k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
462 | 29.8k | auto result = state->get_sink_local_state_result(); |
463 | 29.8k | if (!result) { |
464 | 0 | return result.error(); |
465 | 0 | } |
466 | 29.8k | return result.value()->terminate(state); |
467 | 29.8k | } |
468 | | |
469 | 17.1k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
470 | 17.1k | fmt::memory_buffer debug_string_buffer; |
471 | | |
472 | 17.1k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
473 | 17.1k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
474 | 17.1k | return fmt::to_string(debug_string_buffer); |
475 | 17.1k | } |
476 | | |
477 | 17.0k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
478 | 17.0k | return state->get_sink_local_state()->debug_string(indentation_level); |
479 | 17.0k | } |
480 | | |
481 | 453k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
482 | 453k | std::string op_name = "UNKNOWN_SINK"; |
483 | 453k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
484 | | |
485 | 453k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
486 | 453k | op_name = it->second; |
487 | 453k | } |
488 | 453k | _name = op_name + "_OPERATOR"; |
489 | 453k | return Status::OK(); |
490 | 453k | } |
491 | | |
492 | 189k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
493 | 189k | std::string op_name = print_plan_node_type(tnode.node_type); |
494 | 189k | _nereids_id = tnode.nereids_id; |
495 | 189k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
496 | 189k | _name = substr + "_SINK_OPERATOR"; |
497 | 189k | return Status::OK(); |
498 | 189k | } |
499 | | |
500 | | template <typename LocalStateType> |
501 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
502 | 1.99M | LocalSinkStateInfo& info) { |
503 | 1.99M | auto local_state = LocalStateType::create_unique(this, state); |
504 | 1.99M | RETURN_IF_ERROR(local_state->init(state, info)); |
505 | 1.99M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
506 | 1.99M | return Status::OK(); |
507 | 1.99M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 118k | LocalSinkStateInfo& info) { | 503 | 118k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 118k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 118k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 118k | return Status::OK(); | 507 | 118k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 417k | LocalSinkStateInfo& info) { | 503 | 417k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 417k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 417k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 417k | return Status::OK(); | 507 | 417k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 88 | LocalSinkStateInfo& info) { | 503 | 88 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 88 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 88 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 88 | return Status::OK(); | 507 | 88 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 3 | LocalSinkStateInfo& info) { | 503 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 3 | return Status::OK(); | 507 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 517 | LocalSinkStateInfo& info) { | 503 | 517 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 517 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 517 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 517 | return Status::OK(); | 507 | 517 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 45.7k | LocalSinkStateInfo& info) { | 503 | 45.7k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 45.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 45.7k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 45.7k | return Status::OK(); | 507 | 45.7k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 9.28k | LocalSinkStateInfo& info) { | 503 | 9.28k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 9.28k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 9.28k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 9.28k | return Status::OK(); | 507 | 9.28k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 5.16k | LocalSinkStateInfo& info) { | 503 | 5.16k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 5.16k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 5.16k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 5.16k | return Status::OK(); | 507 | 5.16k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 156 | LocalSinkStateInfo& info) { | 503 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 156 | return Status::OK(); | 507 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 3.38k | LocalSinkStateInfo& info) { | 503 | 3.38k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 3.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 3.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 3.38k | return Status::OK(); | 507 | 3.38k | } |
_ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 32 | LocalSinkStateInfo& info) { | 503 | 32 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 32 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 32 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 32 | return Status::OK(); | 507 | 32 | } |
_ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 160 | LocalSinkStateInfo& info) { | 503 | 160 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 160 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 160 | return Status::OK(); | 507 | 160 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 640 | LocalSinkStateInfo& info) { | 503 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 640 | return Status::OK(); | 507 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 7.14k | LocalSinkStateInfo& info) { | 503 | 7.14k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 7.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 7.14k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 7.14k | return Status::OK(); | 507 | 7.14k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 101 | LocalSinkStateInfo& info) { | 503 | 101 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 101 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 101 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 101 | return Status::OK(); | 507 | 101 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 243k | LocalSinkStateInfo& info) { | 503 | 243k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 243k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 243k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 243k | return Status::OK(); | 507 | 243k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 33 | LocalSinkStateInfo& info) { | 503 | 33 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 33 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 33 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 33 | return Status::OK(); | 507 | 33 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 306k | LocalSinkStateInfo& info) { | 503 | 306k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 306k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 306k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 306k | return Status::OK(); | 507 | 306k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 148k | LocalSinkStateInfo& info) { | 503 | 148k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 148k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 148k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 148k | return Status::OK(); | 507 | 148k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 481 | LocalSinkStateInfo& info) { | 503 | 481 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 481 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 481 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 481 | return Status::OK(); | 507 | 481 | } |
_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 | 653k | LocalSinkStateInfo& info) { | 503 | 653k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 653k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 653k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 653k | return Status::OK(); | 507 | 653k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 9.70k | LocalSinkStateInfo& info) { | 503 | 9.70k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 9.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 9.70k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 9.70k | return Status::OK(); | 507 | 9.70k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 5.84k | LocalSinkStateInfo& info) { | 503 | 5.84k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 5.84k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 5.84k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 5.84k | return Status::OK(); | 507 | 5.84k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 3.76k | LocalSinkStateInfo& info) { | 503 | 3.76k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 3.76k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 3.76k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 3.76k | return Status::OK(); | 507 | 3.76k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 371 | LocalSinkStateInfo& info) { | 503 | 371 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 371 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 371 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 371 | return Status::OK(); | 507 | 371 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 4.58k | LocalSinkStateInfo& info) { | 503 | 4.58k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 4.58k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 4.58k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 4.58k | return Status::OK(); | 507 | 4.58k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.44k | LocalSinkStateInfo& info) { | 503 | 2.44k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.44k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.44k | return Status::OK(); | 507 | 2.44k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.40k | LocalSinkStateInfo& info) { | 503 | 2.40k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.40k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.40k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.40k | return Status::OK(); | 507 | 2.40k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.42k | LocalSinkStateInfo& info) { | 503 | 2.42k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.42k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.42k | return Status::OK(); | 507 | 2.42k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 1 | LocalSinkStateInfo& info) { | 503 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 1 | return Status::OK(); | 507 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 166 | LocalSinkStateInfo& info) { | 503 | 166 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 166 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 166 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 166 | return Status::OK(); | 507 | 166 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 14 | LocalSinkStateInfo& info) { | 503 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 14 | return Status::OK(); | 507 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 102 | LocalSinkStateInfo& info) { | 503 | 102 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 102 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 102 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 102 | return Status::OK(); | 507 | 102 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 151 | LocalSinkStateInfo& info) { | 503 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 151 | return Status::OK(); | 507 | 151 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 151 | LocalSinkStateInfo& info) { | 503 | 151 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 151 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 151 | return Status::OK(); | 507 | 151 | } |
|
508 | | |
509 | | template <typename LocalStateType> |
510 | 1.65M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
512 | 0 | LocalExchangeSharedState>) { |
513 | 0 | return nullptr; |
514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
515 | 0 | MultiCastSharedState>) { |
516 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
517 | 1.65M | } else { |
518 | 1.65M | auto ss = LocalStateType::SharedStateType::create_shared(); |
519 | 1.65M | ss->id = operator_id(); |
520 | 1.65M | for (auto& dest : dests_id()) { |
521 | 1.65M | ss->related_op_ids.insert(dest); |
522 | 1.65M | } |
523 | 1.65M | return ss; |
524 | 1.65M | } |
525 | 1.65M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 102k | 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 | 102k | } else { | 518 | 102k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 102k | ss->id = operator_id(); | 520 | 102k | for (auto& dest : dests_id()) { | 521 | 102k | ss->related_op_ids.insert(dest); | 522 | 102k | } | 523 | 102k | return ss; | 524 | 102k | } | 525 | 102k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 418k | 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 | 418k | } else { | 518 | 418k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 418k | ss->id = operator_id(); | 520 | 418k | for (auto& dest : dests_id()) { | 521 | 417k | ss->related_op_ids.insert(dest); | 522 | 417k | } | 523 | 418k | return ss; | 524 | 418k | } | 525 | 418k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 88 | 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 | 88 | } else { | 518 | 88 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 88 | ss->id = operator_id(); | 520 | 88 | for (auto& dest : dests_id()) { | 521 | 88 | ss->related_op_ids.insert(dest); | 522 | 88 | } | 523 | 88 | return ss; | 524 | 88 | } | 525 | 88 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 3 | } else { | 518 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 3 | ss->id = operator_id(); | 520 | 3 | for (auto& dest : dests_id()) { | 521 | 3 | ss->related_op_ids.insert(dest); | 522 | 3 | } | 523 | 3 | return ss; | 524 | 3 | } | 525 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 518 | 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 | 518 | } else { | 518 | 518 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 518 | ss->id = operator_id(); | 520 | 518 | for (auto& dest : dests_id()) { | 521 | 516 | ss->related_op_ids.insert(dest); | 522 | 516 | } | 523 | 518 | return ss; | 524 | 518 | } | 525 | 518 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 45.8k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 45.8k | } else { | 518 | 45.8k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 45.8k | ss->id = operator_id(); | 520 | 45.8k | for (auto& dest : dests_id()) { | 521 | 45.7k | ss->related_op_ids.insert(dest); | 522 | 45.7k | } | 523 | 45.8k | return ss; | 524 | 45.8k | } | 525 | 45.8k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 9.29k | 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 | 9.29k | } else { | 518 | 9.29k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 9.29k | ss->id = operator_id(); | 520 | 9.29k | for (auto& dest : dests_id()) { | 521 | 9.28k | ss->related_op_ids.insert(dest); | 522 | 9.28k | } | 523 | 9.29k | return ss; | 524 | 9.29k | } | 525 | 9.29k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 5.16k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 5.16k | } else { | 518 | 5.16k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 5.16k | ss->id = operator_id(); | 520 | 5.16k | for (auto& dest : dests_id()) { | 521 | 5.16k | ss->related_op_ids.insert(dest); | 522 | 5.16k | } | 523 | 5.16k | return ss; | 524 | 5.16k | } | 525 | 5.16k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 156 | 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 | 156 | } else { | 518 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 156 | ss->id = operator_id(); | 520 | 156 | for (auto& dest : dests_id()) { | 521 | 156 | ss->related_op_ids.insert(dest); | 522 | 156 | } | 523 | 156 | return ss; | 524 | 156 | } | 525 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 3.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 | 3.38k | } else { | 518 | 3.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 3.38k | ss->id = operator_id(); | 520 | 3.38k | for (auto& dest : dests_id()) { | 521 | 3.38k | ss->related_op_ids.insert(dest); | 522 | 3.38k | } | 523 | 3.38k | return ss; | 524 | 3.38k | } | 525 | 3.38k | } |
_ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 32 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 32 | } else { | 518 | 32 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 32 | ss->id = operator_id(); | 520 | 32 | for (auto& dest : dests_id()) { | 521 | 32 | ss->related_op_ids.insert(dest); | 522 | 32 | } | 523 | 32 | return ss; | 524 | 32 | } | 525 | 32 | } |
_ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 160 | 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 | 160 | } else { | 518 | 160 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 160 | ss->id = operator_id(); | 520 | 160 | for (auto& dest : dests_id()) { | 521 | 160 | ss->related_op_ids.insert(dest); | 522 | 160 | } | 523 | 160 | return ss; | 524 | 160 | } | 525 | 160 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 640 | 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 | 640 | } else { | 518 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 640 | ss->id = operator_id(); | 520 | 640 | for (auto& dest : dests_id()) { | 521 | 640 | ss->related_op_ids.insert(dest); | 522 | 640 | } | 523 | 640 | return ss; | 524 | 640 | } | 525 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 7.17k | 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.17k | } else { | 518 | 7.17k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 7.17k | ss->id = operator_id(); | 520 | 7.17k | for (auto& dest : dests_id()) { | 521 | 7.15k | ss->related_op_ids.insert(dest); | 522 | 7.15k | } | 523 | 7.17k | return ss; | 524 | 7.17k | } | 525 | 7.17k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 101 | 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 | 101 | } else { | 518 | 101 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 101 | ss->id = operator_id(); | 520 | 101 | for (auto& dest : dests_id()) { | 521 | 101 | ss->related_op_ids.insert(dest); | 522 | 101 | } | 523 | 101 | return ss; | 524 | 101 | } | 525 | 101 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 244k | 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 | 244k | } else { | 518 | 244k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 244k | ss->id = operator_id(); | 520 | 244k | for (auto& dest : dests_id()) { | 521 | 243k | ss->related_op_ids.insert(dest); | 522 | 243k | } | 523 | 244k | return ss; | 524 | 244k | } | 525 | 244k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 35 | 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 | } else { | 518 | 35 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 35 | ss->id = operator_id(); | 520 | 35 | for (auto& dest : dests_id()) { | 521 | 35 | ss->related_op_ids.insert(dest); | 522 | 35 | } | 523 | 35 | return ss; | 524 | 35 | } | 525 | 35 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 148k | 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 | 148k | } else { | 518 | 148k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 148k | ss->id = operator_id(); | 520 | 148k | for (auto& dest : dests_id()) { | 521 | 148k | ss->related_op_ids.insert(dest); | 522 | 148k | } | 523 | 148k | return ss; | 524 | 148k | } | 525 | 148k | } |
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 | 654k | 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 | 654k | } else { | 518 | 654k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 654k | ss->id = operator_id(); | 520 | 654k | for (auto& dest : dests_id()) { | 521 | 653k | ss->related_op_ids.insert(dest); | 522 | 653k | } | 523 | 654k | return ss; | 524 | 654k | } | 525 | 654k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 9.70k | 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 | 9.70k | } else { | 518 | 9.70k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 9.70k | ss->id = operator_id(); | 520 | 9.70k | for (auto& dest : dests_id()) { | 521 | 9.70k | ss->related_op_ids.insert(dest); | 522 | 9.70k | } | 523 | 9.70k | return ss; | 524 | 9.70k | } | 525 | 9.70k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 473 | 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 | 473 | } else { | 518 | 473 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 473 | ss->id = operator_id(); | 520 | 473 | for (auto& dest : dests_id()) { | 521 | 473 | ss->related_op_ids.insert(dest); | 522 | 473 | } | 523 | 473 | return ss; | 524 | 473 | } | 525 | 473 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 510 | 2.40k | 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.40k | } else { | 518 | 2.40k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 2.40k | ss->id = operator_id(); | 520 | 2.40k | for (auto& dest : dests_id()) { | 521 | 2.40k | ss->related_op_ids.insert(dest); | 522 | 2.40k | } | 523 | 2.40k | return ss; | 524 | 2.40k | } | 525 | 2.40k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 510 | 2.42k | 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.42k | } else { | 518 | 2.42k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 2.42k | ss->id = operator_id(); | 520 | 2.42k | for (auto& dest : dests_id()) { | 521 | 2.42k | ss->related_op_ids.insert(dest); | 522 | 2.42k | } | 523 | 2.42k | return ss; | 524 | 2.42k | } | 525 | 2.42k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 166 | 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 | 166 | } else { | 518 | 166 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 166 | ss->id = operator_id(); | 520 | 166 | for (auto& dest : dests_id()) { | 521 | 166 | ss->related_op_ids.insert(dest); | 522 | 166 | } | 523 | 166 | return ss; | 524 | 166 | } | 525 | 166 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 100 | 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 | 100 | } else { | 518 | 100 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 100 | ss->id = operator_id(); | 520 | 102 | for (auto& dest : dests_id()) { | 521 | 102 | ss->related_op_ids.insert(dest); | 522 | 102 | } | 523 | 100 | return ss; | 524 | 100 | } | 525 | 100 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
526 | | |
527 | | template <typename LocalStateType> |
528 | 2.43M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
529 | 2.43M | auto local_state = LocalStateType::create_unique(state, this); |
530 | 2.43M | RETURN_IF_ERROR(local_state->init(state, info)); |
531 | 2.43M | state->emplace_local_state(operator_id(), std::move(local_state)); |
532 | 2.43M | return Status::OK(); |
533 | 2.43M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 70.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 70.9k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 70.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 70.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 70.9k | return Status::OK(); | 533 | 70.9k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 297k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 297k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 297k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 297k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 297k | return Status::OK(); | 533 | 297k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 78 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 78 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 78 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 78 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 78 | return Status::OK(); | 533 | 78 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 34.1k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 34.1k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 34.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 34.1k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 34.1k | return Status::OK(); | 533 | 34.1k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 7.12k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 7.12k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 7.12k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 7.12k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 7.12k | return Status::OK(); | 533 | 7.12k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 7.52k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 7.52k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 7.52k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 7.52k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 7.52k | return Status::OK(); | 533 | 7.52k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 26 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 26 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 26 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 26 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 26 | return Status::OK(); | 533 | 26 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 234k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 234k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 234k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 234k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 234k | return Status::OK(); | 533 | 234k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 147k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 147k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 147k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 147k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 147k | return Status::OK(); | 533 | 147k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 656 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 656 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 656 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 656 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 656 | return Status::OK(); | 533 | 656 | } |
_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 | 4.89k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 4.89k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 4.89k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 4.89k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 4.89k | return Status::OK(); | 533 | 4.89k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 363k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 363k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 363k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 363k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 363k | return Status::OK(); | 533 | 363k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 999 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 999 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 999 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 999 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 999 | return Status::OK(); | 533 | 999 | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 9.68k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 9.68k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 9.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 9.68k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 9.68k | return Status::OK(); | 533 | 9.68k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 221 | return Status::OK(); | 533 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.68k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.68k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.68k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.68k | return Status::OK(); | 533 | 1.68k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 55.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 55.3k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 55.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 55.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 55.3k | return Status::OK(); | 533 | 55.3k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 10.0k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 10.0k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 10.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 10.0k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 10.0k | return Status::OK(); | 533 | 10.0k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 371 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 371 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 371 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 371 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 371 | return Status::OK(); | 533 | 371 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.41k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.41k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.41k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.41k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.41k | return Status::OK(); | 533 | 2.41k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.43k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.43k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.43k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.43k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.43k | return Status::OK(); | 533 | 2.43k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 473 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 473 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 473 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 473 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 473 | return Status::OK(); | 533 | 473 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.08k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.08k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.08k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.08k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.08k | return Status::OK(); | 533 | 2.08k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 6.44k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 6.44k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 6.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 6.44k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 6.44k | return Status::OK(); | 533 | 6.44k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 744k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 744k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 744k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 744k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 744k | return Status::OK(); | 533 | 744k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 14 | return Status::OK(); | 533 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 151 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 151 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 151 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 151 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 151 | return Status::OK(); | 533 | 151 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.95k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.95k | return Status::OK(); | 533 | 1.95k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.64k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.64k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.64k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.64k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.64k | return Status::OK(); | 533 | 1.64k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.70k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.70k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.70k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.70k | return Status::OK(); | 533 | 2.70k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 11.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 11.7k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 11.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 11.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 11.7k | return Status::OK(); | 533 | 11.7k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 407k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 407k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 407k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 407k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 407k | return Status::OK(); | 533 | 407k | } |
|
534 | | |
535 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
536 | | RuntimeState* state) |
537 | 1.99M | : _parent(parent), _state(state) {} |
538 | | |
539 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
540 | 2.42M | : _num_rows_returned(0), |
541 | 2.42M | _rows_returned_counter(nullptr), |
542 | 2.42M | _parent(parent), |
543 | 2.42M | _state(state), |
544 | 2.42M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
545 | | |
546 | | template <typename SharedStateArg> |
547 | 2.43M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
548 | 2.43M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
549 | 2.43M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
550 | 2.43M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
551 | 2.43M | _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.43M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
555 | 2.43M | _operator_profile->add_child(_common_profile.get(), true); |
556 | 2.43M | _operator_profile->add_child(_custom_profile.get(), true); |
557 | 2.43M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
558 | 2.43M | if constexpr (!is_fake_shared) { |
559 | 1.29M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
560 | 756k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
561 | 756k | .first.get() |
562 | 756k | ->template cast<SharedStateArg>(); |
563 | | |
564 | 756k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
565 | 756k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
566 | 756k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
567 | 756k | } else if (info.shared_state) { |
568 | 471k | 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 | 471k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
573 | | |
574 | 471k | _dependency = _shared_state->create_source_dependency( |
575 | 471k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
576 | 471k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
577 | 471k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
578 | 471k | } else { |
579 | 71.5k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
580 | 8.29k | DCHECK(false); |
581 | 8.29k | } |
582 | 71.5k | } |
583 | 1.29M | } |
584 | | |
585 | 2.43M | 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.43M | _rows_returned_counter = |
590 | 2.43M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
591 | 2.43M | _blocks_returned_counter = |
592 | 2.43M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
593 | 2.43M | _output_block_bytes_counter = |
594 | 2.43M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
595 | 2.43M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
596 | 2.43M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
597 | 2.43M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
598 | 2.43M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
599 | 2.43M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
600 | 2.43M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
601 | 2.43M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
602 | 2.43M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
603 | 2.43M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
604 | 2.43M | _memory_used_counter = |
605 | 2.43M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
606 | 2.43M | _common_profile->add_info_string("IsColocate", |
607 | 2.43M | std::to_string(_parent->is_colocated_operator())); |
608 | 2.43M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
609 | 2.43M | _common_profile->add_info_string("FollowedByShuffledOperator", |
610 | 2.43M | std::to_string(_parent->followed_by_shuffled_operator())); |
611 | 2.43M | return Status::OK(); |
612 | 2.43M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 71.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 71.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 71.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 71.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 71.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 | 71.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 71.1k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 71.1k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 71.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 71.1k | if constexpr (!is_fake_shared) { | 559 | 71.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 16.3k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 16.3k | .first.get() | 562 | 16.3k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 16.3k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 16.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 16.3k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 54.8k | } 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 | 53.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 53.9k | _dependency = _shared_state->create_source_dependency( | 575 | 53.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 53.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 53.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 53.9k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 846 | } | 583 | 71.1k | } | 584 | | | 585 | 71.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 | 71.1k | _rows_returned_counter = | 590 | 71.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 71.1k | _blocks_returned_counter = | 592 | 71.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 71.1k | _output_block_bytes_counter = | 594 | 71.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 71.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 71.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 71.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 71.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 71.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 71.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 71.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 71.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 71.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 71.1k | _memory_used_counter = | 605 | 71.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 71.1k | _common_profile->add_info_string("IsColocate", | 607 | 71.1k | std::to_string(_parent->is_colocated_operator())); | 608 | 71.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 71.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 71.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 71.1k | return Status::OK(); | 612 | 71.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 | 243k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 243k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 243k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 243k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 243k | _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 | 243k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 243k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 243k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 243k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 243k | if constexpr (!is_fake_shared) { | 559 | 243k | 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 | 243k | } 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 | 234k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 234k | _dependency = _shared_state->create_source_dependency( | 575 | 234k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 234k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 234k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 234k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 8.51k | } | 583 | 243k | } | 584 | | | 585 | 243k | 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 | 243k | _rows_returned_counter = | 590 | 243k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 243k | _blocks_returned_counter = | 592 | 243k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 243k | _output_block_bytes_counter = | 594 | 243k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 243k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 243k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 243k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 243k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 243k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 243k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 243k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 243k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 243k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 243k | _memory_used_counter = | 605 | 243k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 243k | _common_profile->add_info_string("IsColocate", | 607 | 243k | std::to_string(_parent->is_colocated_operator())); | 608 | 243k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 243k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 243k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 243k | return Status::OK(); | 612 | 243k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 26 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 26 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 26 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 26 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 26 | _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 | 26 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 26 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 26 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 26 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 26 | if constexpr (!is_fake_shared) { | 559 | 26 | 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 | 26 | } 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 | 26 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 26 | _dependency = _shared_state->create_source_dependency( | 575 | 26 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 26 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 26 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 26 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 26 | } | 584 | | | 585 | 26 | 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 | 26 | _rows_returned_counter = | 590 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 26 | _blocks_returned_counter = | 592 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 26 | _output_block_bytes_counter = | 594 | 26 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 26 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 26 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 26 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 26 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 26 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 26 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 26 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 26 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 26 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 26 | _memory_used_counter = | 605 | 26 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 26 | _common_profile->add_info_string("IsColocate", | 607 | 26 | std::to_string(_parent->is_colocated_operator())); | 608 | 26 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 26 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 26 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 26 | return Status::OK(); | 612 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 9.70k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 9.70k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 9.70k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 9.70k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 9.70k | _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 | 9.70k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 9.70k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 9.70k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 9.70k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 9.70k | if constexpr (!is_fake_shared) { | 559 | 9.70k | 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 | 9.70k | } 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 | 9.68k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 9.68k | _dependency = _shared_state->create_source_dependency( | 575 | 9.68k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 9.68k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 9.68k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 9.68k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 19 | } | 583 | 9.70k | } | 584 | | | 585 | 9.70k | 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 | 9.70k | _rows_returned_counter = | 590 | 9.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 9.70k | _blocks_returned_counter = | 592 | 9.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 9.70k | _output_block_bytes_counter = | 594 | 9.70k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 9.70k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 9.70k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 9.70k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 9.70k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 9.70k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 9.70k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 9.70k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 9.70k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 9.70k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 9.70k | _memory_used_counter = | 605 | 9.70k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 9.70k | _common_profile->add_info_string("IsColocate", | 607 | 9.70k | std::to_string(_parent->is_colocated_operator())); | 608 | 9.70k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 9.70k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 9.70k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 9.70k | return Status::OK(); | 612 | 9.70k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 7.16k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 7.16k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 7.16k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 7.16k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 7.16k | _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 | 7.16k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 7.16k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 7.16k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 7.16k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 7.16k | if constexpr (!is_fake_shared) { | 559 | 7.16k | 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 | 7.16k | } 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 | 7.07k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 7.07k | _dependency = _shared_state->create_source_dependency( | 575 | 7.07k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 7.07k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 7.07k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 7.07k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 85 | } | 583 | 7.16k | } | 584 | | | 585 | 7.16k | 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 | 7.16k | _rows_returned_counter = | 590 | 7.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 7.16k | _blocks_returned_counter = | 592 | 7.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 7.16k | _output_block_bytes_counter = | 594 | 7.16k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 7.16k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 7.16k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 7.16k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 7.16k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 7.16k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 7.16k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 7.16k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 7.16k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 7.16k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 7.16k | _memory_used_counter = | 605 | 7.16k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 7.16k | _common_profile->add_info_string("IsColocate", | 607 | 7.16k | std::to_string(_parent->is_colocated_operator())); | 608 | 7.16k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 7.16k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 7.16k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 7.16k | return Status::OK(); | 612 | 7.16k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 148k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 148k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 148k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 148k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 148k | _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 | 148k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 148k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 148k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 148k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 148k | if constexpr (!is_fake_shared) { | 559 | 148k | 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 | 148k | } 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 | 147k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 147k | _dependency = _shared_state->create_source_dependency( | 575 | 147k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 147k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 147k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 147k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 1.09k | } | 583 | 148k | } | 584 | | | 585 | 148k | 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 | 148k | _rows_returned_counter = | 590 | 148k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 148k | _blocks_returned_counter = | 592 | 148k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 148k | _output_block_bytes_counter = | 594 | 148k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 148k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 148k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 148k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 148k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 148k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 148k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 148k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 148k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 148k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 148k | _memory_used_counter = | 605 | 148k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 148k | _common_profile->add_info_string("IsColocate", | 607 | 148k | std::to_string(_parent->is_colocated_operator())); | 608 | 148k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 148k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 148k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 148k | return Status::OK(); | 612 | 148k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 659 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 659 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 659 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 659 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 659 | _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 | 659 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 659 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 659 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 659 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 659 | if constexpr (!is_fake_shared) { | 559 | 659 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 658 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 658 | .first.get() | 562 | 658 | ->template cast<SharedStateArg>(); | 563 | | | 564 | 658 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 658 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 658 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 658 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | |
| 574 | 0 | _dependency = _shared_state->create_source_dependency( | 575 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 1 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 1 | } | 583 | 659 | } | 584 | | | 585 | 659 | 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 | 659 | _rows_returned_counter = | 590 | 659 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 659 | _blocks_returned_counter = | 592 | 659 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 659 | _output_block_bytes_counter = | 594 | 659 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 659 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 659 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 659 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 659 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 659 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 659 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 659 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 659 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 659 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 659 | _memory_used_counter = | 605 | 659 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 659 | _common_profile->add_info_string("IsColocate", | 607 | 659 | std::to_string(_parent->is_colocated_operator())); | 608 | 659 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 659 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 659 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 659 | return Status::OK(); | 612 | 659 | } |
_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 | 1.13M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 1.13M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 1.13M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 1.13M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 1.13M | _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.13M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 1.13M | _operator_profile->add_child(_common_profile.get(), true); | 556 | 1.13M | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 1.13M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | | if constexpr (!is_fake_shared) { | 559 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | | .first.get() | 562 | | ->template cast<SharedStateArg>(); | 563 | | | 564 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | | _dependency = _shared_state->create_source_dependency( | 575 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | | } | 583 | | } | 584 | | | 585 | 1.13M | 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.13M | _rows_returned_counter = | 590 | 1.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 1.13M | _blocks_returned_counter = | 592 | 1.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 1.13M | _output_block_bytes_counter = | 594 | 1.13M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 1.13M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 1.13M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 1.13M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 1.13M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 1.13M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 1.13M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 1.13M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 1.13M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 1.13M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 1.13M | _memory_used_counter = | 605 | 1.13M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 1.13M | _common_profile->add_info_string("IsColocate", | 607 | 1.13M | std::to_string(_parent->is_colocated_operator())); | 608 | 1.13M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 1.13M | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 1.13M | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 1.13M | return Status::OK(); | 612 | 1.13M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 55.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 55.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 55.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 55.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 55.3k | _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 | 55.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 55.3k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 55.3k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 55.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 55.3k | if constexpr (!is_fake_shared) { | 559 | 55.3k | 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 | 55.3k | } 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.72k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 2.72k | _dependency = _shared_state->create_source_dependency( | 575 | 2.72k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 2.72k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 2.72k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 52.6k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 52.6k | } | 583 | 55.3k | } | 584 | | | 585 | 55.3k | 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 | 55.3k | _rows_returned_counter = | 590 | 55.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 55.3k | _blocks_returned_counter = | 592 | 55.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 55.3k | _output_block_bytes_counter = | 594 | 55.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 55.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 55.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 55.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 55.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 55.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 55.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 55.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 55.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 55.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 55.3k | _memory_used_counter = | 605 | 55.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 55.3k | _common_profile->add_info_string("IsColocate", | 607 | 55.3k | std::to_string(_parent->is_colocated_operator())); | 608 | 55.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 55.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 55.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 55.3k | return Status::OK(); | 612 | 55.3k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 17 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 17 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 17 | if constexpr (!is_fake_shared) { | 559 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 17 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 17 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 17 | _dependency = _shared_state->create_source_dependency( | 575 | 17 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 17 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 17 | } | 584 | | | 585 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 17 | _rows_returned_counter = | 590 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 17 | _blocks_returned_counter = | 592 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 17 | _output_block_bytes_counter = | 594 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 17 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 17 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 17 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 17 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 17 | _memory_used_counter = | 605 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 17 | _common_profile->add_info_string("IsColocate", | 607 | 17 | std::to_string(_parent->is_colocated_operator())); | 608 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 17 | return Status::OK(); | 612 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 10.0k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 10.0k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 10.0k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 10.0k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 10.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 | 10.0k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 10.0k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 10.0k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 10.0k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 10.0k | if constexpr (!is_fake_shared) { | 559 | 10.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 | 10.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 | 10.0k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 10.0k | _dependency = _shared_state->create_source_dependency( | 575 | 10.0k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 10.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 10.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 10.0k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 21 | } | 583 | 10.0k | } | 584 | | | 585 | 10.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 | 10.0k | _rows_returned_counter = | 590 | 10.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 10.0k | _blocks_returned_counter = | 592 | 10.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 10.0k | _output_block_bytes_counter = | 594 | 10.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 10.0k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 10.0k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 10.0k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 10.0k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 10.0k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 10.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 10.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 10.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 10.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 10.0k | _memory_used_counter = | 605 | 10.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 10.0k | _common_profile->add_info_string("IsColocate", | 607 | 10.0k | std::to_string(_parent->is_colocated_operator())); | 608 | 10.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 10.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 10.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 10.0k | return Status::OK(); | 612 | 10.0k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 474 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 474 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 474 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 474 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 474 | _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 | 474 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 474 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 474 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 474 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 474 | if constexpr (!is_fake_shared) { | 559 | 474 | 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 | 474 | } 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 | 470 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 470 | _dependency = _shared_state->create_source_dependency( | 575 | 470 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 470 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 470 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 470 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 4 | } | 583 | 474 | } | 584 | | | 585 | 474 | 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 | 474 | _rows_returned_counter = | 590 | 474 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 474 | _blocks_returned_counter = | 592 | 474 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 474 | _output_block_bytes_counter = | 594 | 474 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 474 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 474 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 474 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 474 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 474 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 474 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 474 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 474 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 474 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 474 | _memory_used_counter = | 605 | 474 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 474 | _common_profile->add_info_string("IsColocate", | 607 | 474 | std::to_string(_parent->is_colocated_operator())); | 608 | 474 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 474 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 474 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 474 | return Status::OK(); | 612 | 474 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 4.86k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 4.86k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 4.86k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 4.86k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 4.86k | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 4.86k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 4.86k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 4.86k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 4.86k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 4.86k | if constexpr (!is_fake_shared) { | 559 | 4.86k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 4.86k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 4.84k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 4.84k | _dependency = _shared_state->create_source_dependency( | 575 | 4.84k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 4.84k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 4.84k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 4.84k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 20 | } | 583 | 4.86k | } | 584 | | | 585 | 4.86k | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 4.86k | _rows_returned_counter = | 590 | 4.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 4.86k | _blocks_returned_counter = | 592 | 4.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 4.86k | _output_block_bytes_counter = | 594 | 4.86k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 4.86k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 4.86k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 4.86k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 4.86k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 4.86k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 4.86k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 4.86k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 4.86k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 4.86k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 4.86k | _memory_used_counter = | 605 | 4.86k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 4.86k | _common_profile->add_info_string("IsColocate", | 607 | 4.86k | std::to_string(_parent->is_colocated_operator())); | 608 | 4.86k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 4.86k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 4.86k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 4.86k | return Status::OK(); | 612 | 4.86k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 748k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 748k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 748k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 748k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 748k | _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 | 748k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 748k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 748k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 748k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 748k | if constexpr (!is_fake_shared) { | 559 | 748k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 739k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 739k | .first.get() | 562 | 739k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 739k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 739k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 739k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 739k | } 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 | 8.29k | } else { | 579 | 8.29k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | 8.29k | DCHECK(false); | 581 | 8.29k | } | 582 | 8.29k | } | 583 | 748k | } | 584 | | | 585 | 748k | 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 | 748k | _rows_returned_counter = | 590 | 748k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 748k | _blocks_returned_counter = | 592 | 748k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 748k | _output_block_bytes_counter = | 594 | 748k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 748k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 748k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 748k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 748k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 748k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 748k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 748k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 748k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 748k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 748k | _memory_used_counter = | 605 | 748k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 748k | _common_profile->add_info_string("IsColocate", | 607 | 748k | std::to_string(_parent->is_colocated_operator())); | 608 | 748k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 748k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 748k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 748k | return Status::OK(); | 612 | 748k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 151 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 151 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 151 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 151 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 151 | _operator_profile->set_metadata(_parent->node_id()); | 552 | | // indent is false so that source operator will have same | 553 | | // indentation_level with its parent operator. | 554 | 151 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 151 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 151 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 151 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 151 | if constexpr (!is_fake_shared) { | 559 | 151 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 0 | .first.get() | 562 | 0 | ->template cast<SharedStateArg>(); | 563 | |
| 564 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 151 | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 151 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 151 | _dependency = _shared_state->create_source_dependency( | 575 | 151 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 151 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 151 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 151 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 151 | } | 584 | | | 585 | 151 | if (must_set_shared_state() && _shared_state == nullptr) { | 586 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 587 | 0 | } | 588 | | | 589 | 151 | _rows_returned_counter = | 590 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 151 | _blocks_returned_counter = | 592 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 151 | _output_block_bytes_counter = | 594 | 151 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 151 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 151 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 151 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 151 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 151 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 151 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 151 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 151 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 151 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 151 | _memory_used_counter = | 605 | 151 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 151 | _common_profile->add_info_string("IsColocate", | 607 | 151 | std::to_string(_parent->is_colocated_operator())); | 608 | 151 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 151 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 151 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 151 | return Status::OK(); | 612 | 151 | } |
|
613 | | |
614 | | template <typename SharedStateArg> |
615 | 2.44M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
616 | 2.44M | _conjuncts.resize(_parent->_conjuncts.size()); |
617 | 2.44M | _projections.resize(_parent->_projections.size()); |
618 | 2.94M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 499k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 499k | } |
621 | 5.11M | for (size_t i = 0; i < _projections.size(); i++) { |
622 | 2.67M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
623 | 2.67M | } |
624 | 2.44M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
625 | 2.45M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
626 | 12.6k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
627 | 83.8k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
628 | 71.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
629 | 71.1k | state, _intermediate_projections[i][j])); |
630 | 71.1k | } |
631 | 12.6k | } |
632 | 2.44M | return Status::OK(); |
633 | 2.44M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 71.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 71.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 71.2k | _projections.resize(_parent->_projections.size()); | 618 | 71.8k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 613 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 613 | } | 621 | 352k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 280k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 280k | } | 624 | 71.2k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 72.5k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 1.35k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 14.9k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 13.5k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 13.5k | state, _intermediate_projections[i][j])); | 630 | 13.5k | } | 631 | 1.35k | } | 632 | 71.2k | return Status::OK(); | 633 | 71.2k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 3 | _projections.resize(_parent->_projections.size()); | 618 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 3 | return Status::OK(); | 633 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 244k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 244k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 244k | _projections.resize(_parent->_projections.size()); | 618 | 244k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 244k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 355 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 355 | } | 624 | 244k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 244k | 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 | 244k | return Status::OK(); | 633 | 244k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 26 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 26 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 26 | _projections.resize(_parent->_projections.size()); | 618 | 26 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 26 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 26 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 26 | 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 | 26 | return Status::OK(); | 633 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 9.69k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 9.69k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 9.69k | _projections.resize(_parent->_projections.size()); | 618 | 9.77k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 79 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 79 | } | 621 | 62.6k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 52.9k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 52.9k | } | 624 | 9.69k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 9.84k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 145 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 877 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 732 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 732 | state, _intermediate_projections[i][j])); | 630 | 732 | } | 631 | 145 | } | 632 | 9.69k | return Status::OK(); | 633 | 9.69k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 7.18k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 7.18k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 7.18k | _projections.resize(_parent->_projections.size()); | 618 | 8.09k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 911 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 911 | } | 621 | 19.2k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 12.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 12.1k | } | 624 | 7.18k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 7.27k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 95 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 725 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 630 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 630 | state, _intermediate_projections[i][j])); | 630 | 630 | } | 631 | 95 | } | 632 | 7.18k | return Status::OK(); | 633 | 7.18k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 148k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 148k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 148k | _projections.resize(_parent->_projections.size()); | 618 | 152k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 3.92k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 3.92k | } | 621 | 410k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 261k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 261k | } | 624 | 148k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 148k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 251 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 1.66k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 1.41k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 1.41k | state, _intermediate_projections[i][j])); | 630 | 1.41k | } | 631 | 251 | } | 632 | 148k | return Status::OK(); | 633 | 148k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 658 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 658 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 658 | _projections.resize(_parent->_projections.size()); | 618 | 658 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 1.62k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 967 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 967 | } | 624 | 658 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 658 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 658 | return Status::OK(); | 633 | 658 | } |
_ZN5doris19PipelineXLocalStateINS_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 | 184 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 104 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 104 | } | 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 | 1.14M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 1.14M | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 1.14M | _projections.resize(_parent->_projections.size()); | 618 | 1.63M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 490k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 490k | } | 621 | 3.10M | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 1.96M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 1.96M | } | 624 | 1.14M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 1.15M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 10.8k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 65.6k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 54.7k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 54.7k | state, _intermediate_projections[i][j])); | 630 | 54.7k | } | 631 | 10.8k | } | 632 | 1.14M | return Status::OK(); | 633 | 1.14M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 55.5k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 55.5k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 55.5k | _projections.resize(_parent->_projections.size()); | 618 | 55.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 | 150k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 95.2k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 95.2k | } | 624 | 55.5k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 55.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 | 55.5k | return Status::OK(); | 633 | 55.5k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 17 | _projections.resize(_parent->_projections.size()); | 618 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 17 | return Status::OK(); | 633 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 10.0k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 10.0k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 10.0k | _projections.resize(_parent->_projections.size()); | 618 | 13.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 3.51k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 3.51k | } | 621 | 10.0k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 10.0k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 10.0k | 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 | 10.0k | return Status::OK(); | 633 | 10.0k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 474 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 474 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 474 | _projections.resize(_parent->_projections.size()); | 618 | 474 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 474 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 474 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 474 | 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 | 474 | return Status::OK(); | 633 | 474 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 4.86k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 4.86k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 4.86k | _projections.resize(_parent->_projections.size()); | 618 | 4.86k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 4.86k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 4.86k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 4.86k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 4.86k | return Status::OK(); | 633 | 4.86k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 750k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 750k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 750k | _projections.resize(_parent->_projections.size()); | 618 | 750k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 750k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 750k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 750k | 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 | 750k | return Status::OK(); | 633 | 750k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 151 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 151 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 151 | _projections.resize(_parent->_projections.size()); | 618 | 158 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 7 | } | 621 | 447 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 296 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 296 | } | 624 | 151 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 152 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 2 | state, _intermediate_projections[i][j])); | 630 | 2 | } | 631 | 1 | } | 632 | 151 | return Status::OK(); | 633 | 151 | } |
|
634 | | |
635 | | template <typename SharedStateArg> |
636 | 7.00k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
637 | 7.00k | if (_terminated) { |
638 | 0 | return Status::OK(); |
639 | 0 | } |
640 | 7.00k | _terminated = true; |
641 | 7.00k | return Status::OK(); |
642 | 7.00k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 269 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 269 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 269 | _terminated = true; | 641 | 269 | return Status::OK(); | 642 | 269 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 68 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 68 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 68 | _terminated = true; | 641 | 68 | return Status::OK(); | 642 | 68 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 65 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 65 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 65 | _terminated = true; | 641 | 65 | return Status::OK(); | 642 | 65 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 345 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 345 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 345 | _terminated = true; | 641 | 345 | return Status::OK(); | 642 | 345 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 5.29k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 5.29k | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 5.29k | _terminated = true; | 641 | 5.29k | return Status::OK(); | 642 | 5.29k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 7 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 7 | _terminated = true; | 641 | 7 | return Status::OK(); | 642 | 7 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 36 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 36 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 36 | _terminated = true; | 641 | 36 | return Status::OK(); | 642 | 36 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_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 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 906 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 906 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 906 | _terminated = true; | 641 | 906 | return Status::OK(); | 642 | 906 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 13 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 13 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 13 | _terminated = true; | 641 | 13 | return Status::OK(); | 642 | 13 | } |
|
643 | | |
644 | | template <typename SharedStateArg> |
645 | 2.71M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
646 | 2.71M | if (_closed) { |
647 | 274k | return Status::OK(); |
648 | 274k | } |
649 | 2.44M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
650 | 1.30M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
651 | 1.30M | } |
652 | 2.44M | _closed = true; |
653 | 2.44M | return Status::OK(); |
654 | 2.71M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 71.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 71.1k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 71.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 71.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 71.1k | } | 652 | 71.1k | _closed = true; | 653 | 71.1k | return Status::OK(); | 654 | 71.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 | 485k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 485k | if (_closed) { | 647 | 242k | return Status::OK(); | 648 | 242k | } | 649 | 242k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 242k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 242k | } | 652 | 242k | _closed = true; | 653 | 242k | return Status::OK(); | 654 | 485k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 26 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 26 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 26 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 26 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 26 | } | 652 | 26 | _closed = true; | 653 | 26 | return Status::OK(); | 654 | 26 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 9.70k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 9.70k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 9.70k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 9.70k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 9.70k | } | 652 | 9.70k | _closed = true; | 653 | 9.70k | return Status::OK(); | 654 | 9.70k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 14.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 14.4k | if (_closed) { | 647 | 7.27k | return Status::OK(); | 648 | 7.27k | } | 649 | 7.16k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 7.16k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 7.16k | } | 652 | 7.16k | _closed = true; | 653 | 7.16k | return Status::OK(); | 654 | 14.4k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 148k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 148k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 148k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 148k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 148k | } | 652 | 148k | _closed = true; | 653 | 148k | return Status::OK(); | 654 | 148k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 658 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 658 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 658 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 658 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 658 | } | 652 | 658 | _closed = true; | 653 | 658 | return Status::OK(); | 654 | 658 | } |
_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 | 1.16M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 1.16M | if (_closed) { | 647 | 18.3k | return Status::OK(); | 648 | 18.3k | } | 649 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | | } | 652 | 1.14M | _closed = true; | 653 | 1.14M | return Status::OK(); | 654 | 1.16M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 55.5k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 55.5k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 55.5k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 55.5k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 55.5k | } | 652 | 55.5k | _closed = true; | 653 | 55.5k | return Status::OK(); | 654 | 55.5k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 28 | if (_closed) { | 647 | 14 | return Status::OK(); | 648 | 14 | } | 649 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 14 | } | 652 | 14 | _closed = true; | 653 | 14 | return Status::OK(); | 654 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 10.0k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 10.0k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 10.0k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 10.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 10.0k | } | 652 | 10.0k | _closed = true; | 653 | 10.0k | return Status::OK(); | 654 | 10.0k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 738 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 738 | if (_closed) { | 647 | 371 | return Status::OK(); | 648 | 371 | } | 649 | 367 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 367 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 367 | } | 652 | 367 | _closed = true; | 653 | 367 | return Status::OK(); | 654 | 738 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 9.83k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 9.83k | if (_closed) { | 647 | 4.97k | return Status::OK(); | 648 | 4.97k | } | 649 | 4.85k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 4.85k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 4.85k | } | 652 | 4.85k | _closed = true; | 653 | 4.85k | return Status::OK(); | 654 | 9.83k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 751k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 751k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 751k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 751k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 751k | } | 652 | 751k | _closed = true; | 653 | 751k | return Status::OK(); | 654 | 751k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 304 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 304 | if (_closed) { | 647 | 162 | return Status::OK(); | 648 | 162 | } | 649 | 142 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 142 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 142 | } | 652 | 142 | _closed = true; | 653 | 142 | return Status::OK(); | 654 | 304 | } |
|
655 | | |
656 | | template <typename SharedState> |
657 | 1.99M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
658 | | // create profile |
659 | 1.99M | _operator_profile = |
660 | 1.99M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
661 | 1.99M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
662 | 1.99M | _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.99M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
668 | 1.99M | _operator_profile->add_child(_common_profile, true); |
669 | 1.99M | _operator_profile->add_child(_custom_profile, true); |
670 | | |
671 | 1.99M | _operator_profile->set_metadata(_parent->node_id()); |
672 | 1.99M | _wait_for_finish_dependency_timer = |
673 | 1.99M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
674 | 1.99M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
675 | 1.99M | if constexpr (!is_fake_shared) { |
676 | 1.34M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
677 | 1.34M | info.shared_state_map.end()) { |
678 | 324k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
679 | 307k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
680 | 307k | } |
681 | 324k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
682 | 324k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
683 | 324k | ? 0 |
684 | 324k | : info.task_idx] |
685 | 324k | .get(); |
686 | 324k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
687 | 1.01M | } else { |
688 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
689 | 18.4E | DCHECK(false); |
690 | 18.4E | } |
691 | 1.01M | _shared_state = info.shared_state->template cast<SharedState>(); |
692 | 1.01M | _dependency = _shared_state->create_sink_dependency( |
693 | 1.01M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
694 | 1.01M | } |
695 | 1.34M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
696 | 1.34M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
697 | 1.34M | } |
698 | | |
699 | 1.99M | 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.99M | _rows_input_counter = |
704 | 1.99M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
705 | 1.99M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
706 | 1.99M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
707 | 1.99M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
708 | 1.99M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
709 | 1.99M | _memory_used_counter = |
710 | 1.99M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
711 | 1.99M | _common_profile->add_info_string("IsColocate", |
712 | 1.99M | std::to_string(_parent->is_colocated_operator())); |
713 | 1.99M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
714 | 1.99M | _common_profile->add_info_string("FollowedByShuffledOperator", |
715 | 1.99M | std::to_string(_parent->followed_by_shuffled_operator())); |
716 | 1.99M | return Status::OK(); |
717 | 1.99M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 118k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 118k | _operator_profile = | 660 | 118k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 118k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 118k | _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 | 118k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 118k | _operator_profile->add_child(_common_profile, true); | 669 | 118k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 118k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 118k | _wait_for_finish_dependency_timer = | 673 | 118k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 118k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 118k | if constexpr (!is_fake_shared) { | 676 | 118k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 118k | 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 | 16.3k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 16.3k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 16.3k | ? 0 | 684 | 16.3k | : info.task_idx] | 685 | 16.3k | .get(); | 686 | 16.3k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 102k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 102k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 102k | _dependency = _shared_state->create_sink_dependency( | 693 | 102k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 102k | } | 695 | 118k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 118k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 118k | } | 698 | | | 699 | 118k | 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 | 118k | _rows_input_counter = | 704 | 118k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 118k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 118k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 118k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 118k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 118k | _memory_used_counter = | 710 | 118k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 118k | _common_profile->add_info_string("IsColocate", | 712 | 118k | std::to_string(_parent->is_colocated_operator())); | 713 | 118k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 118k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 118k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 118k | return Status::OK(); | 717 | 118k | } |
_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 | 243k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 243k | _operator_profile = | 660 | 243k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 243k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 243k | _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 | 243k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 243k | _operator_profile->add_child(_common_profile, true); | 669 | 243k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 243k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 243k | _wait_for_finish_dependency_timer = | 673 | 243k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 243k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 243k | if constexpr (!is_fake_shared) { | 676 | 243k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 243k | 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 | 243k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 243k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 243k | _dependency = _shared_state->create_sink_dependency( | 693 | 243k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 243k | } | 695 | 243k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 243k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 243k | } | 698 | | | 699 | 243k | 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 | 243k | _rows_input_counter = | 704 | 243k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 243k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 243k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 243k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 243k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 243k | _memory_used_counter = | 710 | 243k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 243k | _common_profile->add_info_string("IsColocate", | 712 | 243k | std::to_string(_parent->is_colocated_operator())); | 713 | 243k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 243k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 243k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 243k | return Status::OK(); | 717 | 243k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 33 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 33 | _operator_profile = | 660 | 33 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 33 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 33 | _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 | 33 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 33 | _operator_profile->add_child(_common_profile, true); | 669 | 33 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 33 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 33 | _wait_for_finish_dependency_timer = | 673 | 33 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 33 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 33 | if constexpr (!is_fake_shared) { | 676 | 33 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 33 | 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 | 33 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 33 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 33 | _dependency = _shared_state->create_sink_dependency( | 693 | 33 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 33 | } | 695 | 33 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 33 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 33 | } | 698 | | | 699 | 33 | 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 | 33 | _rows_input_counter = | 704 | 33 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 33 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 33 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 33 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 33 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 33 | _memory_used_counter = | 710 | 33 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 33 | _common_profile->add_info_string("IsColocate", | 712 | 33 | std::to_string(_parent->is_colocated_operator())); | 713 | 33 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 33 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 33 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 33 | return Status::OK(); | 717 | 33 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 9.71k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 9.71k | _operator_profile = | 660 | 9.71k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 9.71k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 9.71k | _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 | 9.71k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 9.71k | _operator_profile->add_child(_common_profile, true); | 669 | 9.71k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 9.71k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 9.71k | _wait_for_finish_dependency_timer = | 673 | 9.71k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 9.71k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 9.71k | if constexpr (!is_fake_shared) { | 676 | 9.71k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 9.71k | 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 | 9.71k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 9.71k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 9.71k | _dependency = _shared_state->create_sink_dependency( | 693 | 9.71k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 9.71k | } | 695 | 9.71k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 9.71k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 9.71k | } | 698 | | | 699 | 9.71k | 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 | 9.71k | _rows_input_counter = | 704 | 9.71k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 9.71k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 9.71k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 9.71k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 9.71k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 9.71k | _memory_used_counter = | 710 | 9.71k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 9.71k | _common_profile->add_info_string("IsColocate", | 712 | 9.71k | std::to_string(_parent->is_colocated_operator())); | 713 | 9.71k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 9.71k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 9.71k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 9.71k | return Status::OK(); | 717 | 9.71k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 7.17k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 7.17k | _operator_profile = | 660 | 7.17k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 7.17k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 7.17k | _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 | 7.17k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 7.17k | _operator_profile->add_child(_common_profile, true); | 669 | 7.17k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 7.17k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 7.17k | _wait_for_finish_dependency_timer = | 673 | 7.17k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 7.17k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 7.17k | if constexpr (!is_fake_shared) { | 676 | 7.17k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 7.17k | 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 | 7.17k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 7.17k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 7.17k | _dependency = _shared_state->create_sink_dependency( | 693 | 7.17k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 7.17k | } | 695 | 7.17k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 7.17k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 7.17k | } | 698 | | | 699 | 7.17k | 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 | 7.17k | _rows_input_counter = | 704 | 7.17k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 7.17k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 7.17k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 7.17k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 7.17k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 7.17k | _memory_used_counter = | 710 | 7.17k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 7.17k | _common_profile->add_info_string("IsColocate", | 712 | 7.17k | std::to_string(_parent->is_colocated_operator())); | 713 | 7.17k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 7.17k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 7.17k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 7.17k | return Status::OK(); | 717 | 7.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 148k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 148k | _operator_profile = | 660 | 148k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 148k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 148k | _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 | 148k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 148k | _operator_profile->add_child(_common_profile, true); | 669 | 148k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 148k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 148k | _wait_for_finish_dependency_timer = | 673 | 148k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 148k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 148k | if constexpr (!is_fake_shared) { | 676 | 148k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 148k | 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 | 148k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 148k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 148k | _dependency = _shared_state->create_sink_dependency( | 693 | 148k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 148k | } | 695 | 148k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 148k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 148k | } | 698 | | | 699 | 148k | 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 | 148k | _rows_input_counter = | 704 | 148k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 148k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 148k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 148k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 148k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 148k | _memory_used_counter = | 710 | 148k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 148k | _common_profile->add_info_string("IsColocate", | 712 | 148k | std::to_string(_parent->is_colocated_operator())); | 713 | 148k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 148k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 148k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 148k | return Status::OK(); | 717 | 148k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 485 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 485 | _operator_profile = | 660 | 485 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 485 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 485 | _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 | 485 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 485 | _operator_profile->add_child(_common_profile, true); | 669 | 485 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 485 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 485 | _wait_for_finish_dependency_timer = | 673 | 485 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 485 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 485 | if constexpr (!is_fake_shared) { | 676 | 485 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 485 | 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 | 485 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 485 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 485 | ? 0 | 684 | 485 | : info.task_idx] | 685 | 485 | .get(); | 686 | 485 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 485 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 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 | 485 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 485 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 485 | } | 698 | | | 699 | 485 | 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 | 485 | _rows_input_counter = | 704 | 485 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 485 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 485 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 485 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 485 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 485 | _memory_used_counter = | 710 | 485 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 485 | _common_profile->add_info_string("IsColocate", | 712 | 485 | std::to_string(_parent->is_colocated_operator())); | 713 | 485 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 485 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 485 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 485 | return Status::OK(); | 717 | 485 | } |
_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 | 657k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 657k | _operator_profile = | 660 | 657k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 657k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 657k | _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 | 657k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 657k | _operator_profile->add_child(_common_profile, true); | 669 | 657k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 657k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 657k | _wait_for_finish_dependency_timer = | 673 | 657k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 657k | 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 | 657k | 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 | 657k | _rows_input_counter = | 704 | 657k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 657k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 657k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 657k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 657k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 657k | _memory_used_counter = | 710 | 657k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 657k | _common_profile->add_info_string("IsColocate", | 712 | 657k | std::to_string(_parent->is_colocated_operator())); | 713 | 657k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 657k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 657k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 657k | return Status::OK(); | 717 | 657k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 5.85k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 5.85k | _operator_profile = | 660 | 5.85k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 5.85k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 5.85k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 5.85k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 5.85k | _operator_profile->add_child(_common_profile, true); | 669 | 5.85k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 5.85k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 5.85k | _wait_for_finish_dependency_timer = | 673 | 5.85k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 5.85k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 5.85k | if constexpr (!is_fake_shared) { | 676 | 5.85k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 5.85k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 5.85k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 5.85k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 5.85k | _dependency = _shared_state->create_sink_dependency( | 693 | 5.85k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 5.85k | } | 695 | 5.85k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 5.85k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 5.85k | } | 698 | | | 699 | 5.85k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 5.85k | _rows_input_counter = | 704 | 5.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 5.85k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 5.85k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 5.85k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 5.85k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 5.85k | _memory_used_counter = | 710 | 5.85k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 5.85k | _common_profile->add_info_string("IsColocate", | 712 | 5.85k | std::to_string(_parent->is_colocated_operator())); | 713 | 5.85k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 5.85k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 5.85k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 5.85k | return Status::OK(); | 717 | 5.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 474 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 474 | _operator_profile = | 660 | 474 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 474 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 474 | _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 | 474 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 474 | _operator_profile->add_child(_common_profile, true); | 669 | 474 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 474 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 474 | _wait_for_finish_dependency_timer = | 673 | 474 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 474 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 474 | if constexpr (!is_fake_shared) { | 676 | 474 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 474 | 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 | 474 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 474 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 474 | _dependency = _shared_state->create_sink_dependency( | 693 | 474 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 474 | } | 695 | 474 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 474 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 474 | } | 698 | | | 699 | 474 | 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 | 474 | _rows_input_counter = | 704 | 474 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 474 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 474 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 474 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 474 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 474 | _memory_used_counter = | 710 | 474 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 474 | _common_profile->add_info_string("IsColocate", | 712 | 474 | std::to_string(_parent->is_colocated_operator())); | 713 | 474 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 474 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 474 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 474 | return Status::OK(); | 717 | 474 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 3.75k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 3.75k | _operator_profile = | 660 | 3.75k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 3.75k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 3.75k | _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.75k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 3.75k | _operator_profile->add_child(_common_profile, true); | 669 | 3.75k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 3.75k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 3.75k | _wait_for_finish_dependency_timer = | 673 | 3.75k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 3.75k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 3.75k | if constexpr (!is_fake_shared) { | 676 | 3.75k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 3.75k | 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.75k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 3.75k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 3.75k | _dependency = _shared_state->create_sink_dependency( | 693 | 3.75k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 3.75k | } | 695 | 3.75k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 3.75k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 3.75k | } | 698 | | | 699 | 3.75k | 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.75k | _rows_input_counter = | 704 | 3.75k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 3.75k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 3.75k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 3.75k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 3.75k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 3.75k | _memory_used_counter = | 710 | 3.75k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 3.75k | _common_profile->add_info_string("IsColocate", | 712 | 3.75k | std::to_string(_parent->is_colocated_operator())); | 713 | 3.75k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 3.75k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 3.75k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 3.75k | return Status::OK(); | 717 | 3.75k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 11.9k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 11.9k | _operator_profile = | 660 | 11.9k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 11.9k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 11.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 | 11.9k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 11.9k | _operator_profile->add_child(_common_profile, true); | 669 | 11.9k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 11.9k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 11.9k | _wait_for_finish_dependency_timer = | 673 | 11.9k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 11.9k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 11.9k | if constexpr (!is_fake_shared) { | 676 | 11.9k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 11.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 | 11.9k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 11.9k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 11.9k | _dependency = _shared_state->create_sink_dependency( | 693 | 11.9k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 11.9k | } | 695 | 11.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 11.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 11.9k | } | 698 | | | 699 | 11.9k | 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 | 11.9k | _rows_input_counter = | 704 | 11.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 11.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 11.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 11.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 11.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 11.9k | _memory_used_counter = | 710 | 11.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 11.9k | _common_profile->add_info_string("IsColocate", | 712 | 11.9k | std::to_string(_parent->is_colocated_operator())); | 713 | 11.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 11.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 11.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 11.9k | return Status::OK(); | 717 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 307k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 307k | _operator_profile = | 660 | 307k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 307k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 307k | _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 | 307k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 307k | _operator_profile->add_child(_common_profile, true); | 669 | 307k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 307k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 307k | _wait_for_finish_dependency_timer = | 673 | 307k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 307k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 307k | if constexpr (!is_fake_shared) { | 676 | 307k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 307k | info.shared_state_map.end()) { | 678 | 307k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | 307k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | 307k | } | 681 | 307k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 307k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 307k | ? 0 | 684 | 307k | : info.task_idx] | 685 | 307k | .get(); | 686 | 307k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 18.4E | } else { | 688 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | 18.4E | DCHECK(false); | 690 | 18.4E | } | 691 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 693 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 18.4E | } | 695 | 307k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 307k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 307k | } | 698 | | | 699 | 307k | 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 | 307k | _rows_input_counter = | 704 | 307k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 307k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 307k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 307k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 307k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 307k | _memory_used_counter = | 710 | 307k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 307k | _common_profile->add_info_string("IsColocate", | 712 | 307k | std::to_string(_parent->is_colocated_operator())); | 713 | 307k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 307k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 307k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 307k | return Status::OK(); | 717 | 307k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 482k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 482k | _operator_profile = | 660 | 482k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 482k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 482k | _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 | 482k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 482k | _operator_profile->add_child(_common_profile, true); | 669 | 482k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 482k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 482k | _wait_for_finish_dependency_timer = | 673 | 482k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 482k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 482k | if constexpr (!is_fake_shared) { | 676 | 482k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 482k | 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 | 482k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 482k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 482k | _dependency = _shared_state->create_sink_dependency( | 693 | 482k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 482k | } | 695 | 482k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 482k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 482k | } | 698 | | | 699 | 482k | 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 | 482k | _rows_input_counter = | 704 | 482k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 482k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 482k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 482k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 482k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 482k | _memory_used_counter = | 710 | 482k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 482k | _common_profile->add_info_string("IsColocate", | 712 | 482k | std::to_string(_parent->is_colocated_operator())); | 713 | 482k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 482k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 482k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 482k | return Status::OK(); | 717 | 482k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 17 | _operator_profile = | 660 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 17 | _operator_profile->add_child(_common_profile, true); | 669 | 17 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 17 | _wait_for_finish_dependency_timer = | 673 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 17 | if constexpr (!is_fake_shared) { | 676 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 17 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 17 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 17 | _dependency = _shared_state->create_sink_dependency( | 693 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 17 | } | 695 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 17 | } | 698 | | | 699 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 17 | _rows_input_counter = | 704 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 17 | _memory_used_counter = | 710 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 17 | _common_profile->add_info_string("IsColocate", | 712 | 17 | std::to_string(_parent->is_colocated_operator())); | 713 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 17 | return Status::OK(); | 717 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 302 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 302 | _operator_profile = | 660 | 302 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 302 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 302 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 302 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 302 | _operator_profile->add_child(_common_profile, true); | 669 | 302 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 302 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 302 | _wait_for_finish_dependency_timer = | 673 | 302 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 302 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 302 | if constexpr (!is_fake_shared) { | 676 | 302 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 302 | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 302 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 302 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 302 | _dependency = _shared_state->create_sink_dependency( | 693 | 302 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 302 | } | 695 | 302 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 302 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 302 | } | 698 | | | 699 | 302 | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 302 | _rows_input_counter = | 704 | 302 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 302 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 302 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 302 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 302 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 302 | _memory_used_counter = | 710 | 302 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 302 | _common_profile->add_info_string("IsColocate", | 712 | 302 | std::to_string(_parent->is_colocated_operator())); | 713 | 302 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 302 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 302 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 302 | return Status::OK(); | 717 | 302 | } |
|
718 | | |
719 | | template <typename SharedState> |
720 | 2.00M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
721 | 2.00M | if (_closed) { |
722 | 2 | return Status::OK(); |
723 | 2 | } |
724 | 2.00M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
725 | 1.34M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
726 | 1.34M | } |
727 | 2.00M | _closed = true; |
728 | 2.00M | return Status::OK(); |
729 | 2.00M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 119k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 119k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 119k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 119k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 119k | } | 727 | 119k | _closed = true; | 728 | 119k | return Status::OK(); | 729 | 119k | } |
_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 | 244k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 244k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 244k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 244k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 244k | } | 727 | 244k | _closed = true; | 728 | 244k | return Status::OK(); | 729 | 244k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 23 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 23 | if (_closed) { | 722 | 2 | return Status::OK(); | 723 | 2 | } | 724 | 21 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 21 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 21 | } | 727 | 21 | _closed = true; | 728 | 21 | return Status::OK(); | 729 | 23 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 9.69k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 9.69k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 9.69k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 9.69k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 9.69k | } | 727 | 9.69k | _closed = true; | 728 | 9.69k | return Status::OK(); | 729 | 9.69k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 7.15k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 7.15k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 7.15k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 7.15k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 7.15k | } | 727 | 7.15k | _closed = true; | 728 | 7.15k | return Status::OK(); | 729 | 7.15k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 147k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 147k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 147k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 147k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 147k | } | 727 | 147k | _closed = true; | 728 | 147k | return Status::OK(); | 729 | 147k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 483 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 483 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 483 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 483 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 483 | } | 727 | 483 | _closed = true; | 728 | 483 | return Status::OK(); | 729 | 483 | } |
_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 | 658k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 658k | 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 | 658k | _closed = true; | 728 | 658k | return Status::OK(); | 729 | 658k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 5.86k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 5.86k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 5.86k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 5.86k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 5.86k | } | 727 | 5.86k | _closed = true; | 728 | 5.86k | return Status::OK(); | 729 | 5.86k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 372 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 372 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 372 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 372 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 372 | } | 727 | 372 | _closed = true; | 728 | 372 | return Status::OK(); | 729 | 372 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 3.76k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 3.76k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 3.76k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 3.76k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 3.76k | } | 727 | 3.76k | _closed = true; | 728 | 3.76k | return Status::OK(); | 729 | 3.76k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 11.9k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 11.9k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 11.9k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 11.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 11.9k | } | 727 | 11.9k | _closed = true; | 728 | 11.9k | return Status::OK(); | 729 | 11.9k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 308k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 308k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 308k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 308k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 308k | } | 727 | 308k | _closed = true; | 728 | 308k | return Status::OK(); | 729 | 308k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 485k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 485k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 485k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 485k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 485k | } | 727 | 485k | _closed = true; | 728 | 485k | return Status::OK(); | 729 | 485k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 12 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 12 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 12 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 12 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 12 | } | 727 | 12 | _closed = true; | 728 | 12 | return Status::OK(); | 729 | 12 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 302 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 302 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 302 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 302 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 302 | } | 727 | 302 | _closed = true; | 728 | 302 | return Status::OK(); | 729 | 302 | } |
|
730 | | |
731 | | template <typename LocalStateType> |
732 | | Status StreamingOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
733 | 10.0k | bool* eos) { |
734 | 10.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
735 | 10.0k | return pull(state, block, eos); |
736 | 10.0k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 733 | 432 | bool* eos) { | 734 | 432 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 735 | 432 | return pull(state, block, eos); | 736 | 432 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 733 | 9.60k | bool* eos) { | 734 | 9.60k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 735 | 9.59k | return pull(state, block, eos); | 736 | 9.60k | } |
|
737 | | |
738 | | template <typename LocalStateType> |
739 | | Status StatefulOperatorX<LocalStateType>::get_block_impl(RuntimeState* state, Block* block, |
740 | 683k | bool* eos) { |
741 | 683k | auto& local_state = get_local_state(state); |
742 | 683k | if (need_more_input_data(state)) { |
743 | 653k | local_state._child_block->clear_column_data( |
744 | 653k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
745 | 653k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
746 | 653k | state, local_state._child_block.get(), &local_state._child_eos)); |
747 | 653k | *eos = local_state._child_eos; |
748 | 653k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
749 | 71.3k | return Status::OK(); |
750 | 71.3k | } |
751 | 581k | { |
752 | 581k | SCOPED_TIMER(local_state.exec_time_counter()); |
753 | 581k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
754 | 581k | } |
755 | 581k | } |
756 | | |
757 | 611k | if (!need_more_input_data(state)) { |
758 | 560k | SCOPED_TIMER(local_state.exec_time_counter()); |
759 | 560k | bool new_eos = false; |
760 | 560k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
761 | 560k | if (new_eos) { |
762 | 484k | *eos = true; |
763 | 484k | } else if (!need_more_input_data(state)) { |
764 | 23.0k | *eos = false; |
765 | 23.0k | } |
766 | 560k | } |
767 | 611k | return Status::OK(); |
768 | 611k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 129k | bool* eos) { | 741 | 129k | auto& local_state = get_local_state(state); | 742 | 129k | if (need_more_input_data(state)) { | 743 | 113k | local_state._child_block->clear_column_data( | 744 | 113k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 113k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 113k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 113k | *eos = local_state._child_eos; | 748 | 113k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 29.9k | return Status::OK(); | 750 | 29.9k | } | 751 | 83.1k | { | 752 | 83.1k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 83.1k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 83.1k | } | 755 | 83.1k | } | 756 | | | 757 | 99.7k | if (!need_more_input_data(state)) { | 758 | 99.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 99.7k | bool new_eos = false; | 760 | 99.7k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 99.7k | if (new_eos) { | 762 | 46.9k | *eos = true; | 763 | 52.8k | } else if (!need_more_input_data(state)) { | 764 | 8.70k | *eos = false; | 765 | 8.70k | } | 766 | 99.7k | } | 767 | 99.7k | return Status::OK(); | 768 | 99.7k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 2.82k | bool* eos) { | 741 | 2.82k | auto& local_state = get_local_state(state); | 742 | 2.82k | if (need_more_input_data(state)) { | 743 | 1.59k | local_state._child_block->clear_column_data( | 744 | 1.59k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 1.59k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 1.59k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 1.59k | *eos = local_state._child_eos; | 748 | 1.59k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 248 | return Status::OK(); | 750 | 248 | } | 751 | 1.34k | { | 752 | 1.34k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 1.34k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 1.34k | } | 755 | 1.34k | } | 756 | | | 757 | 2.58k | if (!need_more_input_data(state)) { | 758 | 2.58k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 2.58k | bool new_eos = false; | 760 | 2.58k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 2.58k | if (new_eos) { | 762 | 1.01k | *eos = true; | 763 | 1.57k | } else if (!need_more_input_data(state)) { | 764 | 1.24k | *eos = false; | 765 | 1.24k | } | 766 | 2.58k | } | 767 | 2.58k | return Status::OK(); | 768 | 2.58k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 4.80k | bool* eos) { | 741 | 4.80k | auto& local_state = get_local_state(state); | 742 | 4.80k | if (need_more_input_data(state)) { | 743 | 4.80k | local_state._child_block->clear_column_data( | 744 | 4.80k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 4.80k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 4.80k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 4.80k | *eos = local_state._child_eos; | 748 | 4.80k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 1.61k | return Status::OK(); | 750 | 1.61k | } | 751 | 3.18k | { | 752 | 3.18k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 3.18k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 3.18k | } | 755 | 3.18k | } | 756 | | | 757 | 3.18k | if (!need_more_input_data(state)) { | 758 | 3.18k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 3.18k | bool new_eos = false; | 760 | 3.18k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 3.18k | if (new_eos) { | 762 | 1.64k | *eos = true; | 763 | 1.64k | } else if (!need_more_input_data(state)) { | 764 | 0 | *eos = false; | 765 | 0 | } | 766 | 3.18k | } | 767 | 3.18k | return Status::OK(); | 768 | 3.18k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 35.4k | bool* eos) { | 741 | 35.4k | auto& local_state = get_local_state(state); | 742 | 35.5k | if (need_more_input_data(state)) { | 743 | 35.5k | local_state._child_block->clear_column_data( | 744 | 35.5k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 35.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 35.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 35.5k | *eos = local_state._child_eos; | 748 | 35.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 4.10k | return Status::OK(); | 750 | 4.10k | } | 751 | 31.4k | { | 752 | 31.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 31.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 31.4k | } | 755 | 31.4k | } | 756 | | | 757 | 31.3k | if (!need_more_input_data(state)) { | 758 | 11.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 11.8k | bool new_eos = false; | 760 | 11.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 11.8k | if (new_eos) { | 762 | 11.7k | *eos = true; | 763 | 11.7k | } else if (!need_more_input_data(state)) { | 764 | 4 | *eos = false; | 765 | 4 | } | 766 | 11.8k | } | 767 | 31.3k | return Status::OK(); | 768 | 31.3k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 472k | bool* eos) { | 741 | 472k | auto& local_state = get_local_state(state); | 742 | 473k | if (need_more_input_data(state)) { | 743 | 473k | local_state._child_block->clear_column_data( | 744 | 473k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 473k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 473k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 473k | *eos = local_state._child_eos; | 748 | 473k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 32.2k | return Status::OK(); | 750 | 32.2k | } | 751 | 441k | { | 752 | 441k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 441k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 441k | } | 755 | 441k | } | 756 | | | 757 | 440k | if (!need_more_input_data(state)) { | 758 | 408k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 408k | bool new_eos = false; | 760 | 408k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 408k | if (new_eos) { | 762 | 408k | *eos = true; | 763 | 408k | } else if (!need_more_input_data(state)) { | 764 | 0 | *eos = false; | 765 | 0 | } | 766 | 408k | } | 767 | 440k | return Status::OK(); | 768 | 440k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 30.2k | bool* eos) { | 741 | 30.2k | auto& local_state = get_local_state(state); | 742 | 30.2k | if (need_more_input_data(state)) { | 743 | 17.5k | local_state._child_block->clear_column_data( | 744 | 17.5k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 17.5k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 17.5k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 17.5k | *eos = local_state._child_eos; | 748 | 17.5k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 2.71k | return Status::OK(); | 750 | 2.71k | } | 751 | 14.8k | { | 752 | 14.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 14.8k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 14.8k | } | 755 | 14.8k | } | 756 | | | 757 | 27.5k | if (!need_more_input_data(state)) { | 758 | 27.0k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 27.0k | bool new_eos = false; | 760 | 27.0k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 27.0k | if (new_eos) { | 762 | 9.67k | *eos = true; | 763 | 17.3k | } else if (!need_more_input_data(state)) { | 764 | 12.6k | *eos = false; | 765 | 12.6k | } | 766 | 27.0k | } | 767 | 27.5k | return Status::OK(); | 768 | 27.5k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE14get_block_implEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 740 | 7.52k | bool* eos) { | 741 | 7.52k | auto& local_state = get_local_state(state); | 742 | 7.52k | if (need_more_input_data(state)) { | 743 | 7.16k | local_state._child_block->clear_column_data( | 744 | 7.16k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 745 | 7.16k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 746 | 7.16k | state, local_state._child_block.get(), &local_state._child_eos)); | 747 | 7.16k | *eos = local_state._child_eos; | 748 | 7.16k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 749 | 539 | return Status::OK(); | 750 | 539 | } | 751 | 6.62k | { | 752 | 6.62k | SCOPED_TIMER(local_state.exec_time_counter()); | 753 | 6.62k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 754 | 6.62k | } | 755 | 6.62k | } | 756 | | | 757 | 6.98k | if (!need_more_input_data(state)) { | 758 | 6.98k | SCOPED_TIMER(local_state.exec_time_counter()); | 759 | 6.98k | bool new_eos = false; | 760 | 6.98k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 761 | 6.98k | if (new_eos) { | 762 | 4.89k | *eos = true; | 763 | 4.89k | } else if (!need_more_input_data(state)) { | 764 | 366 | *eos = false; | 765 | 366 | } | 766 | 6.98k | } | 767 | 6.97k | return Status::OK(); | 768 | 6.97k | } |
|
769 | | |
770 | | template <typename Writer, typename Parent> |
771 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
772 | 65.1k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
773 | 65.1k | RETURN_IF_ERROR(Base::init(state, info)); |
774 | 65.1k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
775 | 65.1k | "AsyncWriterDependency", true); |
776 | 65.1k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
777 | 65.1k | _finish_dependency)); |
778 | | |
779 | 65.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
780 | 65.1k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
781 | 65.1k | return Status::OK(); |
782 | 65.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 517 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 517 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 517 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 517 | "AsyncWriterDependency", true); | 776 | 517 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 517 | _finish_dependency)); | 778 | | | 779 | 517 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 517 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 517 | return Status::OK(); | 782 | 517 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 88 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 88 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 88 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 88 | "AsyncWriterDependency", true); | 776 | 88 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 88 | _finish_dependency)); | 778 | | | 779 | 88 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 88 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 88 | return Status::OK(); | 782 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 45.7k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 45.7k | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 45.7k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 45.7k | "AsyncWriterDependency", true); | 776 | 45.7k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 45.7k | _finish_dependency)); | 778 | | | 779 | 45.7k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 45.7k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 45.7k | return Status::OK(); | 782 | 45.7k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 9.28k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 9.28k | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 9.28k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 9.28k | "AsyncWriterDependency", true); | 776 | 9.28k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 9.28k | _finish_dependency)); | 778 | | | 779 | 9.28k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 9.28k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 9.28k | return Status::OK(); | 782 | 9.28k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 5.16k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 5.16k | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 5.16k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 5.16k | "AsyncWriterDependency", true); | 776 | 5.16k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 5.16k | _finish_dependency)); | 778 | | | 779 | 5.16k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 5.16k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 5.16k | return Status::OK(); | 782 | 5.16k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 3.38k | "AsyncWriterDependency", true); | 776 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 3.38k | _finish_dependency)); | 778 | | | 779 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 3.38k | return Status::OK(); | 782 | 3.38k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 32 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 32 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 32 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 32 | "AsyncWriterDependency", true); | 776 | 32 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 32 | _finish_dependency)); | 778 | | | 779 | 32 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 32 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 32 | return Status::OK(); | 782 | 32 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 160 | "AsyncWriterDependency", true); | 776 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 160 | _finish_dependency)); | 778 | | | 779 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 160 | return Status::OK(); | 782 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 640 | "AsyncWriterDependency", true); | 776 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 640 | _finish_dependency)); | 778 | | | 779 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 640 | return Status::OK(); | 782 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 772 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 773 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 774 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 775 | 156 | "AsyncWriterDependency", true); | 776 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 777 | 156 | _finish_dependency)); | 778 | | | 779 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 780 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 781 | 156 | return Status::OK(); | 782 | 156 | } |
|
783 | | |
784 | | template <typename Writer, typename Parent> |
785 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
786 | 65.3k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
787 | 65.3k | RETURN_IF_ERROR(Base::open(state)); |
788 | 65.3k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
789 | 578k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
790 | 513k | RETURN_IF_ERROR( |
791 | 513k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
792 | 513k | } |
793 | 65.3k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
794 | 65.3k | return Status::OK(); |
795 | 65.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 518 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 518 | RETURN_IF_ERROR(Base::open(state)); | 788 | 518 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 2.78k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 2.26k | RETURN_IF_ERROR( | 791 | 2.26k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 2.26k | } | 793 | 518 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 518 | return Status::OK(); | 795 | 518 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 88 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 88 | RETURN_IF_ERROR(Base::open(state)); | 788 | 88 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 412 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 324 | RETURN_IF_ERROR( | 791 | 324 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 324 | } | 793 | 88 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 88 | return Status::OK(); | 795 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 45.9k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 45.9k | RETURN_IF_ERROR(Base::open(state)); | 788 | 45.9k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 332k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 286k | RETURN_IF_ERROR( | 791 | 286k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 286k | } | 793 | 45.9k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 45.9k | return Status::OK(); | 795 | 45.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 9.25k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 9.25k | RETURN_IF_ERROR(Base::open(state)); | 788 | 9.25k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 57.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 47.9k | RETURN_IF_ERROR( | 791 | 47.9k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 47.9k | } | 793 | 9.25k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 9.25k | return Status::OK(); | 795 | 9.25k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 5.16k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 5.16k | RETURN_IF_ERROR(Base::open(state)); | 788 | 5.16k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 137k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 132k | RETURN_IF_ERROR( | 791 | 132k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 132k | } | 793 | 5.16k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 5.16k | return Status::OK(); | 795 | 5.16k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 788 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 42.5k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 39.1k | RETURN_IF_ERROR( | 791 | 39.1k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 39.1k | } | 793 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 3.38k | return Status::OK(); | 795 | 3.38k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 32 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 32 | RETURN_IF_ERROR(Base::open(state)); | 788 | 32 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 126 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 94 | RETURN_IF_ERROR( | 791 | 94 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 94 | } | 793 | 32 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 32 | return Status::OK(); | 795 | 32 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 160 | RETURN_IF_ERROR(Base::open(state)); | 788 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 480 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 320 | RETURN_IF_ERROR( | 791 | 320 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 320 | } | 793 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 160 | return Status::OK(); | 795 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 640 | RETURN_IF_ERROR(Base::open(state)); | 788 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 4.40k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 3.76k | RETURN_IF_ERROR( | 791 | 3.76k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 3.76k | } | 793 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 640 | return Status::OK(); | 795 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 786 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 787 | 156 | RETURN_IF_ERROR(Base::open(state)); | 788 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 789 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 790 | 630 | RETURN_IF_ERROR( | 791 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 792 | 630 | } | 793 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 794 | 156 | return Status::OK(); | 795 | 156 | } |
|
796 | | |
797 | | template <typename Writer, typename Parent> |
798 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
799 | 89.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
800 | 89.3k | return _writer->sink(block, eos); |
801 | 89.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 2.50k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 2.50k | return _writer->sink(block, eos); | 801 | 2.50k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 112 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 112 | return _writer->sink(block, eos); | 801 | 112 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 61.8k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 61.8k | return _writer->sink(block, eos); | 801 | 61.8k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 10.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 10.7k | return _writer->sink(block, eos); | 801 | 10.7k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 7.52k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 7.52k | return _writer->sink(block, eos); | 801 | 7.52k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 5.36k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 5.36k | return _writer->sink(block, eos); | 801 | 5.36k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 40 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 40 | return _writer->sink(block, eos); | 801 | 40 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 180 | return _writer->sink(block, eos); | 801 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 790 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 790 | return _writer->sink(block, eos); | 801 | 790 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 799 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 800 | 310 | return _writer->sink(block, eos); | 801 | 310 | } |
|
802 | | |
803 | | template <typename Writer, typename Parent> |
804 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
805 | 65.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
806 | 65.3k | if (_closed) { |
807 | 0 | return Status::OK(); |
808 | 0 | } |
809 | 65.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
810 | 65.3k | 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 | 65.4k | if (_writer) { |
813 | 65.4k | Status st = _writer->get_writer_status(); |
814 | 65.4k | if (exec_status.ok()) { |
815 | 65.3k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
816 | 65.3k | : Status::Cancelled("force close")); |
817 | 65.3k | } else { |
818 | 117 | _writer->force_close(exec_status); |
819 | 117 | } |
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 | 65.4k | RETURN_IF_ERROR(st); |
824 | 65.4k | } |
825 | 65.3k | return Base::close(state, exec_status); |
826 | 65.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 506 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 506 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 506 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 506 | 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 | 506 | if (_writer) { | 813 | 506 | Status st = _writer->get_writer_status(); | 814 | 506 | if (exec_status.ok()) { | 815 | 506 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 506 | : Status::Cancelled("force close")); | 817 | 506 | } 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 | 506 | RETURN_IF_ERROR(st); | 824 | 506 | } | 825 | 506 | return Base::close(state, exec_status); | 826 | 506 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 88 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 88 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 88 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 88 | 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 | 88 | if (_writer) { | 813 | 88 | Status st = _writer->get_writer_status(); | 814 | 88 | if (exec_status.ok()) { | 815 | 88 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 88 | : Status::Cancelled("force close")); | 817 | 88 | } 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 | 88 | RETURN_IF_ERROR(st); | 824 | 88 | } | 825 | 80 | return Base::close(state, exec_status); | 826 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 45.9k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 45.9k | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 45.9k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 45.9k | 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 | 46.0k | if (_writer) { | 813 | 46.0k | Status st = _writer->get_writer_status(); | 814 | 46.0k | if (exec_status.ok()) { | 815 | 45.9k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 45.9k | : Status::Cancelled("force close")); | 817 | 45.9k | } else { | 818 | 53 | _writer->force_close(exec_status); | 819 | 53 | } | 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 | 46.0k | RETURN_IF_ERROR(st); | 824 | 46.0k | } | 825 | 45.9k | return Base::close(state, exec_status); | 826 | 45.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 9.27k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 9.27k | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 9.27k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 9.27k | 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 | 9.29k | if (_writer) { | 813 | 9.29k | Status st = _writer->get_writer_status(); | 814 | 9.29k | if (exec_status.ok()) { | 815 | 9.22k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 9.22k | : Status::Cancelled("force close")); | 817 | 9.22k | } else { | 818 | 66 | _writer->force_close(exec_status); | 819 | 66 | } | 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 | 9.29k | RETURN_IF_ERROR(st); | 824 | 9.29k | } | 825 | 9.27k | return Base::close(state, exec_status); | 826 | 9.27k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 5.16k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 5.16k | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 5.16k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 5.16k | 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 | 5.16k | if (_writer) { | 813 | 5.16k | Status st = _writer->get_writer_status(); | 814 | 5.16k | if (exec_status.ok()) { | 815 | 5.16k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 5.16k | : Status::Cancelled("force close")); | 817 | 18.4E | } else { | 818 | 18.4E | _writer->force_close(exec_status); | 819 | 18.4E | } | 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 | 5.16k | RETURN_IF_ERROR(st); | 824 | 5.16k | } | 825 | 5.16k | return Base::close(state, exec_status); | 826 | 5.16k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 3.38k | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 3.38k | 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 | 3.38k | if (_writer) { | 813 | 3.38k | Status st = _writer->get_writer_status(); | 814 | 3.38k | if (exec_status.ok()) { | 815 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 3.38k | : Status::Cancelled("force close")); | 817 | 3.38k | } 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 | 3.38k | RETURN_IF_ERROR(st); | 824 | 3.38k | } | 825 | 3.38k | return Base::close(state, exec_status); | 826 | 3.38k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 32 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 32 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 32 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 32 | 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 | 32 | if (_writer) { | 813 | 32 | Status st = _writer->get_writer_status(); | 814 | 32 | if (exec_status.ok()) { | 815 | 32 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 32 | : Status::Cancelled("force close")); | 817 | 32 | } 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 | 32 | RETURN_IF_ERROR(st); | 824 | 32 | } | 825 | 32 | return Base::close(state, exec_status); | 826 | 32 | } |
_ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 160 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 160 | 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 | 160 | if (_writer) { | 813 | 160 | Status st = _writer->get_writer_status(); | 814 | 160 | if (exec_status.ok()) { | 815 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 160 | : Status::Cancelled("force close")); | 817 | 160 | } 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 | 160 | RETURN_IF_ERROR(st); | 824 | 160 | } | 825 | 160 | return Base::close(state, exec_status); | 826 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 640 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 640 | 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 | 640 | if (_writer) { | 813 | 640 | Status st = _writer->get_writer_status(); | 814 | 640 | if (exec_status.ok()) { | 815 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 640 | : Status::Cancelled("force close")); | 817 | 640 | } 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 | 640 | RETURN_IF_ERROR(st); | 824 | 640 | } | 825 | 640 | return Base::close(state, exec_status); | 826 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 805 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 806 | 156 | if (_closed) { | 807 | 0 | return Status::OK(); | 808 | 0 | } | 809 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 810 | 156 | 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 | 156 | if (_writer) { | 813 | 156 | Status st = _writer->get_writer_status(); | 814 | 156 | if (exec_status.ok()) { | 815 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 816 | 156 | : Status::Cancelled("force close")); | 817 | 156 | } 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 | 156 | RETURN_IF_ERROR(st); | 824 | 156 | } | 825 | 156 | return Base::close(state, exec_status); | 826 | 156 | } |
|
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 |