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.02M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.02M | if (_parent->nereids_id() == -1) { |
120 | 1.07M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.07M | } else { |
122 | 950k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 950k | } |
124 | 2.02M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 75.6k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 75.6k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 75.6k | } else { | 122 | 75.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 75.6k | } | 124 | 75.6k | } |
_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 | 22 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 22 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 22 | } else { | 122 | 22 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 22 | } | 124 | 22 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 11.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 11.2k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 11.2k | } else { | 122 | 11.2k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 11.2k | } | 124 | 11.2k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 7.96k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 7.96k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 7.95k | } else { | 122 | 7.95k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 7.95k | } | 124 | 7.96k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 160k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 160k | if (_parent->nereids_id() == -1) { | 120 | 29 | return fmt::format("(id={})", _parent->node_id()); | 121 | 160k | } else { | 122 | 160k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 160k | } | 124 | 160k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 326 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 326 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 326 | } else { | 122 | 326 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 326 | } | 124 | 326 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 180 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 180 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 180 | } else { | 122 | 180 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 180 | } | 124 | 180 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 727k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 727k | if (_parent->nereids_id() == -1) { | 120 | 336k | return fmt::format("(id={})", _parent->node_id()); | 121 | 390k | } else { | 122 | 390k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 390k | } | 124 | 727k | } |
_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.9k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 10.9k | if (_parent->nereids_id() == -1) { | 120 | 10.8k | return fmt::format("(id={})", _parent->node_id()); | 121 | 10.8k | } else { | 122 | 3 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 3 | } | 124 | 10.9k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 440 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 440 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 338 | } else { | 122 | 338 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 338 | } | 124 | 440 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.73k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.73k | if (_parent->nereids_id() == -1) { | 120 | 13 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.71k | } else { | 122 | 4.71k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.71k | } | 124 | 4.73k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 723k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 723k | if (_parent->nereids_id() == -1) { | 120 | 723k | return fmt::format("(id={})", _parent->node_id()); | 121 | 723k | } else { | 122 | 642 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 642 | } | 124 | 723k | } |
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.31M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.31M | if (_parent->nereids_id() == -1) { |
129 | 755k | return fmt::format("(id={})", _parent->node_id()); |
130 | 755k | } else { |
131 | 555k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 555k | } |
133 | 1.31M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 124k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 124k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 124k | } else { | 131 | 124k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 124k | } | 133 | 124k | } |
_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 | 242k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 242k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 242k | } else { | 131 | 242k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 242k | } | 133 | 242k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 28 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 28 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 28 | } else { | 131 | 28 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 28 | } | 133 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 11.4k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 11.4k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 11.4k | } else { | 131 | 11.4k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 11.4k | } | 133 | 11.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 8.01k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 8.01k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 8.00k | } else { | 131 | 8.00k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 8.00k | } | 133 | 8.01k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 160k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 160k | if (_parent->nereids_id() == -1) { | 129 | 29 | return fmt::format("(id={})", _parent->node_id()); | 130 | 160k | } else { | 131 | 160k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 160k | } | 133 | 160k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 291 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 291 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 291 | } else { | 131 | 291 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 291 | } | 133 | 291 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 190 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 190 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 190 | } else { | 131 | 190 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 190 | } | 133 | 190 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 89 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 89 | if (_parent->nereids_id() == -1) { | 129 | 89 | return fmt::format("(id={})", _parent->node_id()); | 130 | 89 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 89 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 6.95k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 6.95k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 6.95k | } else { | 131 | 6.95k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 6.95k | } | 133 | 6.95k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 442 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 442 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 340 | } else { | 131 | 340 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 340 | } | 133 | 442 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 12.0k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 12.0k | if (_parent->nereids_id() == -1) { | 129 | 12.0k | return fmt::format("(id={})", _parent->node_id()); | 130 | 12.0k | } else { | 131 | 7 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 7 | } | 133 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 292k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 292k | if (_parent->nereids_id() == -1) { | 129 | 292k | return fmt::format("(id={})", _parent->node_id()); | 130 | 292k | } else { | 131 | 21 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 21 | } | 133 | 292k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 451k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 451k | if (_parent->nereids_id() == -1) { | 129 | 450k | return fmt::format("(id={})", _parent->node_id()); | 130 | 450k | } else { | 131 | 540 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 540 | } | 133 | 451k | } |
_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 | 33.7k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 33.7k | if (_terminated) { |
138 | 0 | return Status::OK(); |
139 | 0 | } |
140 | 33.7k | _terminated = true; |
141 | 33.7k | return Status::OK(); |
142 | 33.7k | } _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 | 2.12k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2.12k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2.12k | _terminated = true; | 141 | 2.12k | return Status::OK(); | 142 | 2.12k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2 | _terminated = true; | 141 | 2 | return Status::OK(); | 142 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 4 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 4 | _terminated = true; | 141 | 4 | return Status::OK(); | 142 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 4 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 4 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 4 | _terminated = true; | 141 | 4 | return Status::OK(); | 142 | 4 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 5.99k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 5.99k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 5.99k | _terminated = true; | 141 | 5.99k | return Status::OK(); | 142 | 5.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_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 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 823 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 823 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 823 | _terminated = true; | 141 | 823 | return Status::OK(); | 142 | 823 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 11 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 11 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 11 | _terminated = true; | 141 | 11 | return Status::OK(); | 142 | 11 | } |
_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 | 462 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 462 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 462 | _terminated = true; | 141 | 462 | return Status::OK(); | 142 | 462 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 146 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 146 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 146 | _terminated = true; | 141 | 146 | return Status::OK(); | 142 | 146 | } |
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 | 859k | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 859k | return _child && _child->is_serial_operator() && !is_source() |
146 | 859k | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 859k | : DataDistribution(ExchangeType::NOOP); |
148 | 859k | } |
149 | | |
150 | 16.9k | bool OperatorBase::is_hash_shuffle(ExchangeType exchange_type) { |
151 | 16.9k | return exchange_type == ExchangeType::HASH_SHUFFLE || |
152 | 16.9k | exchange_type == ExchangeType::BUCKET_HASH_SHUFFLE; |
153 | 16.9k | } |
154 | | |
155 | 92.3k | bool OperatorBase::child_breaks_local_key_distribution(RuntimeState* state) const { |
156 | 92.3k | if (!_child) { |
157 | 32.5k | return false; |
158 | 32.5k | } |
159 | 59.8k | if (_child->is_serial_operator()) { |
160 | 41.7k | return true; |
161 | 41.7k | } |
162 | 18.0k | const auto child_distribution = _child->required_data_distribution(state); |
163 | 18.0k | return child_distribution.need_local_exchange() && |
164 | 18.0k | !is_hash_shuffle(child_distribution.distribution_type); |
165 | 59.8k | } |
166 | | |
167 | 81.8k | const RowDescriptor& OperatorBase::row_desc() const { |
168 | 81.8k | return _child->row_desc(); |
169 | 81.8k | } |
170 | | |
171 | | template <typename SharedStateArg> |
172 | 16.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
173 | 16.3k | fmt::memory_buffer debug_string_buffer; |
174 | 16.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
175 | 16.3k | return fmt::to_string(debug_string_buffer); |
176 | 16.3k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 16 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 16 | fmt::memory_buffer debug_string_buffer; | 174 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 16 | return fmt::to_string(debug_string_buffer); | 176 | 16 | } |
_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 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 4 | fmt::memory_buffer debug_string_buffer; | 174 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 4 | return fmt::to_string(debug_string_buffer); | 176 | 4 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 4 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 4 | fmt::memory_buffer debug_string_buffer; | 174 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 4 | return fmt::to_string(debug_string_buffer); | 176 | 4 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 8 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 8 | fmt::memory_buffer debug_string_buffer; | 174 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 8 | return fmt::to_string(debug_string_buffer); | 176 | 8 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 16.3k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 16.3k | fmt::memory_buffer debug_string_buffer; | 174 | 16.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 16.3k | return fmt::to_string(debug_string_buffer); | 176 | 16.3k | } |
_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 _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 172 | 8 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 173 | 8 | fmt::memory_buffer debug_string_buffer; | 174 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 175 | 8 | return fmt::to_string(debug_string_buffer); | 176 | 8 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
177 | | |
178 | | template <typename SharedStateArg> |
179 | 16.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
180 | 16.3k | fmt::memory_buffer debug_string_buffer; |
181 | 16.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
182 | 16.3k | return fmt::to_string(debug_string_buffer); |
183 | 16.3k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 4 | fmt::memory_buffer debug_string_buffer; | 181 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 4 | return fmt::to_string(debug_string_buffer); | 183 | 4 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 4 | fmt::memory_buffer debug_string_buffer; | 181 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 4 | return fmt::to_string(debug_string_buffer); | 183 | 4 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 4 | fmt::memory_buffer debug_string_buffer; | 181 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 4 | return fmt::to_string(debug_string_buffer); | 183 | 4 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 8 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 8 | fmt::memory_buffer debug_string_buffer; | 181 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 8 | return fmt::to_string(debug_string_buffer); | 183 | 8 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 12 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 12 | fmt::memory_buffer debug_string_buffer; | 181 | 12 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 12 | return fmt::to_string(debug_string_buffer); | 183 | 12 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 4 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 4 | fmt::memory_buffer debug_string_buffer; | 181 | 4 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 4 | return fmt::to_string(debug_string_buffer); | 183 | 4 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 179 | 16.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 180 | 16.3k | fmt::memory_buffer debug_string_buffer; | 181 | 16.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 182 | 16.3k | return fmt::to_string(debug_string_buffer); | 183 | 16.3k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei |
184 | | |
185 | 16.4k | std::string OperatorXBase::debug_string(int indentation_level) const { |
186 | 16.4k | fmt::memory_buffer debug_string_buffer; |
187 | 16.4k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
188 | 16.4k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
189 | 16.4k | _is_serial_operator); |
190 | 16.4k | return fmt::to_string(debug_string_buffer); |
191 | 16.4k | } |
192 | | |
193 | 16.3k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
194 | 16.3k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
195 | 16.3k | } |
196 | | |
197 | 726k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
198 | 726k | std::string node_name = print_plan_node_type(tnode.node_type); |
199 | 726k | _nereids_id = tnode.nereids_id; |
200 | 726k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
201 | 3.72k | if (!tnode.__isset.output_tuple_id) { |
202 | 0 | return Status::InternalError("no final output tuple id"); |
203 | 0 | } |
204 | 3.72k | if (tnode.intermediate_output_tuple_id_list.size() != |
205 | 3.72k | 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.72k | } |
213 | 726k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
214 | 726k | _op_name = substr + "_OPERATOR"; |
215 | | |
216 | 726k | if (tnode.__isset.vconjunct) { |
217 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
218 | 726k | } else if (tnode.__isset.conjuncts) { |
219 | 447k | for (const auto& conjunct : tnode.conjuncts) { |
220 | 447k | VExprContextSPtr context; |
221 | 447k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
222 | 447k | _conjuncts.emplace_back(context); |
223 | 447k | } |
224 | 145k | } |
225 | | |
226 | | // create the projections expr |
227 | 726k | if (tnode.__isset.projections) { |
228 | 314k | DCHECK(tnode.__isset.output_tuple_id); |
229 | 314k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
230 | 314k | } |
231 | 726k | if (!tnode.intermediate_projections_list.empty()) { |
232 | 3.73k | DCHECK(tnode.__isset.projections) << "no final projections"; |
233 | 3.73k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
234 | 7.60k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
235 | 7.60k | VExprContextSPtrs projections; |
236 | 7.60k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
237 | 7.60k | _intermediate_projections.push_back(projections); |
238 | 7.60k | } |
239 | 3.73k | } |
240 | 726k | return Status::OK(); |
241 | 726k | } |
242 | | |
243 | 758k | Status OperatorXBase::prepare(RuntimeState* state) { |
244 | 758k | for (auto& conjunct : _conjuncts) { |
245 | 447k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
246 | 447k | } |
247 | 758k | if (state->enable_adjust_conjunct_order_by_cost()) { |
248 | 706k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
249 | 602k | return a->execute_cost() < b->execute_cost(); |
250 | 602k | }); |
251 | 706k | }; |
252 | | |
253 | 766k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
254 | 7.60k | RETURN_IF_ERROR( |
255 | 7.60k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
256 | 7.60k | } |
257 | 758k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
258 | | |
259 | 758k | if (has_output_row_desc()) { |
260 | 314k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
261 | 314k | } |
262 | | |
263 | 758k | for (auto& conjunct : _conjuncts) { |
264 | 446k | RETURN_IF_ERROR(conjunct->open(state)); |
265 | 446k | } |
266 | 758k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
267 | 758k | for (auto& projections : _intermediate_projections) { |
268 | 7.60k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
269 | 7.60k | } |
270 | 758k | if (_child && !is_source()) { |
271 | 140k | RETURN_IF_ERROR(_child->prepare(state)); |
272 | 140k | } |
273 | | |
274 | 758k | if (VExpr::contains_blockable_function(_conjuncts) || |
275 | 758k | VExpr::contains_blockable_function(_projections)) { |
276 | 0 | _blockable = true; |
277 | 0 | } |
278 | | |
279 | 758k | return Status::OK(); |
280 | 758k | } |
281 | | |
282 | 11.7k | Status OperatorXBase::terminate(RuntimeState* state) { |
283 | 11.7k | if (_child && !is_source()) { |
284 | 2.03k | RETURN_IF_ERROR(_child->terminate(state)); |
285 | 2.03k | } |
286 | 11.7k | auto result = state->get_local_state_result(operator_id()); |
287 | 11.7k | if (!result) { |
288 | 0 | return result.error(); |
289 | 0 | } |
290 | 11.7k | return result.value()->terminate(state); |
291 | 11.7k | } |
292 | | |
293 | 5.59M | Status OperatorXBase::close(RuntimeState* state) { |
294 | 5.59M | if (_child && !is_source()) { |
295 | 936k | RETURN_IF_ERROR(_child->close(state)); |
296 | 936k | } |
297 | 5.59M | auto result = state->get_local_state_result(operator_id()); |
298 | 5.59M | if (!result) { |
299 | 0 | return result.error(); |
300 | 0 | } |
301 | 5.59M | return result.value()->close(state); |
302 | 5.59M | } |
303 | | |
304 | 300k | void PipelineXLocalStateBase::clear_origin_block() { |
305 | 300k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
306 | 300k | } |
307 | | |
308 | 545k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
309 | 545k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
310 | | |
311 | 545k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
312 | 545k | return Status::OK(); |
313 | 545k | } |
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 | 300k | Block* output_block) const { |
322 | 300k | auto* local_state = state->get_local_state(operator_id()); |
323 | 300k | SCOPED_TIMER(local_state->exec_time_counter()); |
324 | 300k | SCOPED_TIMER(local_state->_projection_timer); |
325 | 300k | const size_t rows = origin_block->rows(); |
326 | 300k | if (rows == 0) { |
327 | 166k | return Status::OK(); |
328 | 166k | } |
329 | 134k | Block input_block = *origin_block; |
330 | | |
331 | 134k | size_t bytes_usage = 0; |
332 | 134k | ColumnsWithTypeAndName new_columns; |
333 | 134k | 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.95k | for (int i = 0; i < projections.size(); i++) { |
340 | 7.71k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
341 | 7.71k | 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.71k | } |
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 | 134k | 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 | 653k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
361 | 653k | if (to->is_nullable() && !from->is_nullable()) { |
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 | 653k | } else { |
371 | 653k | if (_keep_origin || !from->is_exclusive()) { |
372 | 641k | to->insert_range_from(*from, 0, rows); |
373 | 641k | bytes_usage += from->allocated_bytes(); |
374 | 641k | } else { |
375 | 11.9k | to = from->assert_mutable(); |
376 | 11.9k | } |
377 | 653k | } |
378 | 653k | }; |
379 | | |
380 | 134k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
381 | 134k | output_block, *_output_row_descriptor); |
382 | 134k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
383 | 134k | auto& mutable_columns = mutable_block.mutable_columns(); |
384 | 134k | if (rows != 0) { |
385 | 134k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
386 | 788k | for (int i = 0; i < mutable_columns.size(); ++i) { |
387 | 653k | ColumnPtr column_ptr; |
388 | 653k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
389 | 653k | 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 | 653k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
396 | 653k | bytes_usage += column_ptr->allocated_bytes(); |
397 | 653k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
398 | 653k | } |
399 | 134k | DCHECK(mutable_block.rows() == rows); |
400 | 134k | } |
401 | 134k | local_state->_estimate_memory_usage += bytes_usage; |
402 | | |
403 | 134k | return Status::OK(); |
404 | 134k | } |
405 | | |
406 | 4.40M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
407 | 4.40M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
408 | 4.40M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
409 | 4.40M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
410 | 4.40M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
411 | 4.40M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
412 | 4.40M | if (_debug_point_count++ % 2 == 0) { |
413 | 4.40M | return Status::OK(); |
414 | 4.40M | } |
415 | 4.40M | } |
416 | 4.40M | }); |
417 | | |
418 | 4.40M | Status status; |
419 | 4.40M | auto* local_state = state->get_local_state(operator_id()); |
420 | 4.40M | Defer defer([&]() { |
421 | 4.40M | if (status.ok()) { |
422 | 4.40M | local_state->update_output_block_counters(*block); |
423 | 4.40M | } |
424 | 4.40M | }); |
425 | 4.40M | if (_output_row_descriptor) { |
426 | 300k | local_state->clear_origin_block(); |
427 | 300k | status = get_block(state, &local_state->_origin_block, eos); |
428 | 300k | if (UNLIKELY(!status.ok())) { |
429 | 21 | return status; |
430 | 21 | } |
431 | 300k | status = do_projections(state, &local_state->_origin_block, block); |
432 | 300k | return status; |
433 | 300k | } |
434 | 4.10M | status = get_block(state, block, eos); |
435 | 4.10M | RETURN_IF_ERROR(block->check_type_and_column()); |
436 | 4.10M | return status; |
437 | 4.10M | } |
438 | | |
439 | 3.10M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
440 | 3.10M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
441 | 6.82k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
442 | 6.82k | *eos = true; |
443 | 6.82k | } |
444 | | |
445 | 3.10M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
446 | 3.10M | auto op_name = to_lower(_parent->_op_name); |
447 | 3.10M | auto arg_op_name = dp->param<std::string>("op_name"); |
448 | 3.10M | arg_op_name = to_lower(arg_op_name); |
449 | | |
450 | 3.10M | if (op_name == arg_op_name) { |
451 | 3.10M | *eos = true; |
452 | 3.10M | } |
453 | 3.10M | }); |
454 | | |
455 | 3.10M | if (auto rows = block->rows()) { |
456 | 877k | _num_rows_returned += rows; |
457 | 877k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
458 | 877k | } |
459 | 3.10M | } |
460 | | |
461 | 33.7k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
462 | 33.7k | auto result = state->get_sink_local_state_result(); |
463 | 33.7k | if (!result) { |
464 | 0 | return result.error(); |
465 | 0 | } |
466 | 33.7k | return result.value()->terminate(state); |
467 | 33.7k | } |
468 | | |
469 | 16.3k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
470 | 16.3k | fmt::memory_buffer debug_string_buffer; |
471 | | |
472 | 16.3k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
473 | 16.3k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
474 | 16.3k | return fmt::to_string(debug_string_buffer); |
475 | 16.3k | } |
476 | | |
477 | 16.3k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
478 | 16.3k | return state->get_sink_local_state()->debug_string(indentation_level); |
479 | 16.3k | } |
480 | | |
481 | 454k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
482 | 454k | std::string op_name = "UNKNOWN_SINK"; |
483 | 454k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
484 | | |
485 | 455k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
486 | 455k | op_name = it->second; |
487 | 455k | } |
488 | 454k | _name = op_name + "_OPERATOR"; |
489 | 454k | return Status::OK(); |
490 | 454k | } |
491 | | |
492 | 207k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
493 | 207k | std::string op_name = print_plan_node_type(tnode.node_type); |
494 | 207k | _nereids_id = tnode.nereids_id; |
495 | 207k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
496 | 207k | _name = substr + "_SINK_OPERATOR"; |
497 | 207k | return Status::OK(); |
498 | 207k | } |
499 | | |
500 | | template <typename LocalStateType> |
501 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
502 | 1.95M | LocalSinkStateInfo& info) { |
503 | 1.95M | auto local_state = LocalStateType::create_unique(this, state); |
504 | 1.95M | RETURN_IF_ERROR(local_state->init(state, info)); |
505 | 1.95M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
506 | 1.95M | return Status::OK(); |
507 | 1.95M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 124k | LocalSinkStateInfo& info) { | 503 | 124k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 124k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 124k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 124k | return Status::OK(); | 507 | 124k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 388k | LocalSinkStateInfo& info) { | 503 | 388k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 388k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 388k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 388k | return Status::OK(); | 507 | 388k | } |
_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 | 520 | LocalSinkStateInfo& info) { | 503 | 520 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 520 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 520 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 520 | return Status::OK(); | 507 | 520 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 44.4k | LocalSinkStateInfo& info) { | 503 | 44.4k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 44.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 44.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 44.4k | return Status::OK(); | 507 | 44.4k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 8.96k | LocalSinkStateInfo& info) { | 503 | 8.96k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 8.96k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 8.96k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 8.96k | return Status::OK(); | 507 | 8.96k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 5.15k | LocalSinkStateInfo& info) { | 503 | 5.15k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 5.15k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 5.15k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 5.15k | return Status::OK(); | 507 | 5.15k | } |
_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 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _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 | 8.00k | LocalSinkStateInfo& info) { | 503 | 8.00k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 8.00k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 8.00k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 8.00k | return Status::OK(); | 507 | 8.00k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_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_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 242k | LocalSinkStateInfo& info) { | 503 | 242k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 242k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 242k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 242k | return Status::OK(); | 507 | 242k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 28 | LocalSinkStateInfo& info) { | 503 | 28 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 28 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 28 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 28 | return Status::OK(); | 507 | 28 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 292k | LocalSinkStateInfo& info) { | 503 | 292k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 292k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 292k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 292k | return Status::OK(); | 507 | 292k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 160k | LocalSinkStateInfo& info) { | 503 | 160k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 160k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 160k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 160k | return Status::OK(); | 507 | 160k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 288 | LocalSinkStateInfo& info) { | 503 | 288 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 288 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 288 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 288 | return Status::OK(); | 507 | 288 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 190 | LocalSinkStateInfo& info) { | 503 | 190 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 190 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 190 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 190 | return Status::OK(); | 507 | 190 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 638k | LocalSinkStateInfo& info) { | 503 | 638k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 638k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 638k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 638k | return Status::OK(); | 507 | 638k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 11.4k | LocalSinkStateInfo& info) { | 503 | 11.4k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 11.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 11.4k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 11.4k | return Status::OK(); | 507 | 11.4k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 6.93k | LocalSinkStateInfo& info) { | 503 | 6.93k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 6.93k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 6.93k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 6.93k | return Status::OK(); | 507 | 6.93k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 4.14k | LocalSinkStateInfo& info) { | 503 | 4.14k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 4.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 4.14k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 4.14k | return Status::OK(); | 507 | 4.14k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 340 | LocalSinkStateInfo& info) { | 503 | 340 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 340 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 340 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 340 | return Status::OK(); | 507 | 340 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 4.59k | LocalSinkStateInfo& info) { | 503 | 4.59k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 4.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 4.59k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 4.59k | return Status::OK(); | 507 | 4.59k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.55k | LocalSinkStateInfo& info) { | 503 | 2.55k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.55k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.55k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.55k | return Status::OK(); | 507 | 2.55k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.35k | LocalSinkStateInfo& info) { | 503 | 2.35k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.35k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.35k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.35k | return Status::OK(); | 507 | 2.35k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 502 | 2.46k | LocalSinkStateInfo& info) { | 503 | 2.46k | auto local_state = LocalStateType::create_unique(this, state); | 504 | 2.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 2.46k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 2.46k | return Status::OK(); | 507 | 2.46k | } |
_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 | 105 | LocalSinkStateInfo& info) { | 503 | 105 | auto local_state = LocalStateType::create_unique(this, state); | 504 | 105 | RETURN_IF_ERROR(local_state->init(state, info)); | 505 | 105 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 506 | 105 | return Status::OK(); | 507 | 105 | } |
_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.62M | 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.62M | } else { |
518 | 1.62M | auto ss = LocalStateType::SharedStateType::create_shared(); |
519 | 1.62M | ss->id = operator_id(); |
520 | 1.62M | for (auto& dest : dests_id()) { |
521 | 1.61M | ss->related_op_ids.insert(dest); |
522 | 1.61M | } |
523 | 1.62M | return ss; |
524 | 1.62M | } |
525 | 1.62M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 97.6k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 97.6k | } else { | 518 | 97.6k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 97.6k | ss->id = operator_id(); | 520 | 97.6k | for (auto& dest : dests_id()) { | 521 | 97.6k | ss->related_op_ids.insert(dest); | 522 | 97.6k | } | 523 | 97.6k | return ss; | 524 | 97.6k | } | 525 | 97.6k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 389k | 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 | 389k | } else { | 518 | 389k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 389k | ss->id = operator_id(); | 520 | 389k | for (auto& dest : dests_id()) { | 521 | 388k | ss->related_op_ids.insert(dest); | 522 | 388k | } | 523 | 389k | return ss; | 524 | 389k | } | 525 | 389k | } |
_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 | 520 | 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 | 520 | } else { | 518 | 520 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 520 | ss->id = operator_id(); | 520 | 520 | for (auto& dest : dests_id()) { | 521 | 520 | ss->related_op_ids.insert(dest); | 522 | 520 | } | 523 | 520 | return ss; | 524 | 520 | } | 525 | 520 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 44.5k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 44.5k | } else { | 518 | 44.5k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 44.5k | ss->id = operator_id(); | 520 | 44.5k | for (auto& dest : dests_id()) { | 521 | 44.3k | ss->related_op_ids.insert(dest); | 522 | 44.3k | } | 523 | 44.5k | return ss; | 524 | 44.5k | } | 525 | 44.5k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 8.96k | 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 | 8.96k | } else { | 518 | 8.96k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 8.96k | ss->id = operator_id(); | 520 | 8.96k | for (auto& dest : dests_id()) { | 521 | 8.96k | ss->related_op_ids.insert(dest); | 522 | 8.96k | } | 523 | 8.96k | return ss; | 524 | 8.96k | } | 525 | 8.96k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 5.15k | 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.15k | } else { | 518 | 5.15k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 5.15k | ss->id = operator_id(); | 520 | 5.15k | for (auto& dest : dests_id()) { | 521 | 5.15k | ss->related_op_ids.insert(dest); | 522 | 5.15k | } | 523 | 5.15k | return ss; | 524 | 5.15k | } | 525 | 5.15k | } |
_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 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv _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 | 8.03k | 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 | 8.03k | } else { | 518 | 8.03k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 8.03k | ss->id = operator_id(); | 520 | 8.03k | for (auto& dest : dests_id()) { | 521 | 8.02k | ss->related_op_ids.insert(dest); | 522 | 8.02k | } | 523 | 8.03k | return ss; | 524 | 8.03k | } | 525 | 8.03k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 86 | 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 | 86 | } else { | 518 | 86 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 86 | ss->id = operator_id(); | 520 | 86 | for (auto& dest : dests_id()) { | 521 | 86 | ss->related_op_ids.insert(dest); | 522 | 86 | } | 523 | 86 | return ss; | 524 | 86 | } | 525 | 86 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 243k | 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 | 243k | } else { | 518 | 243k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 243k | ss->id = operator_id(); | 520 | 243k | for (auto& dest : dests_id()) { | 521 | 243k | ss->related_op_ids.insert(dest); | 522 | 243k | } | 523 | 243k | return ss; | 524 | 243k | } | 525 | 243k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 30 | 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 | 30 | } else { | 518 | 30 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 30 | ss->id = operator_id(); | 520 | 30 | for (auto& dest : dests_id()) { | 521 | 30 | ss->related_op_ids.insert(dest); | 522 | 30 | } | 523 | 30 | return ss; | 524 | 30 | } | 525 | 30 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 161k | 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 | 161k | } else { | 518 | 161k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 161k | ss->id = operator_id(); | 520 | 161k | for (auto& dest : dests_id()) { | 521 | 161k | ss->related_op_ids.insert(dest); | 522 | 161k | } | 523 | 161k | return ss; | 524 | 161k | } | 525 | 161k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 189 | 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 | 189 | } else { | 518 | 189 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 189 | ss->id = operator_id(); | 520 | 189 | for (auto& dest : dests_id()) { | 521 | 189 | ss->related_op_ids.insert(dest); | 522 | 189 | } | 523 | 189 | return ss; | 524 | 189 | } | 525 | 189 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 640k | 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 | 640k | } else { | 518 | 640k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 640k | ss->id = operator_id(); | 520 | 640k | for (auto& dest : dests_id()) { | 521 | 637k | ss->related_op_ids.insert(dest); | 522 | 637k | } | 523 | 640k | return ss; | 524 | 640k | } | 525 | 640k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 11.4k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 511 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 512 | | LocalExchangeSharedState>) { | 513 | | return nullptr; | 514 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 515 | | MultiCastSharedState>) { | 516 | | throw Exception(Status::FatalError("should not reach here!")); | 517 | 11.4k | } else { | 518 | 11.4k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 11.4k | ss->id = operator_id(); | 520 | 11.4k | for (auto& dest : dests_id()) { | 521 | 11.4k | ss->related_op_ids.insert(dest); | 522 | 11.4k | } | 523 | 11.4k | return ss; | 524 | 11.4k | } | 525 | 11.4k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 510 | 441 | 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 | 441 | } else { | 518 | 441 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 441 | ss->id = operator_id(); | 520 | 442 | for (auto& dest : dests_id()) { | 521 | 442 | ss->related_op_ids.insert(dest); | 522 | 442 | } | 523 | 441 | return ss; | 524 | 441 | } | 525 | 441 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 510 | 2.39k | 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.39k | } else { | 518 | 2.39k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 2.39k | ss->id = operator_id(); | 520 | 2.39k | for (auto& dest : dests_id()) { | 521 | 2.38k | ss->related_op_ids.insert(dest); | 522 | 2.38k | } | 523 | 2.39k | return ss; | 524 | 2.39k | } | 525 | 2.39k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 510 | 2.49k | 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.49k | } else { | 518 | 2.49k | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 2.49k | ss->id = operator_id(); | 520 | 2.49k | for (auto& dest : dests_id()) { | 521 | 2.48k | ss->related_op_ids.insert(dest); | 522 | 2.48k | } | 523 | 2.49k | return ss; | 524 | 2.49k | } | 525 | 2.49k | } |
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 | 105 | 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 | 105 | } else { | 518 | 105 | auto ss = LocalStateType::SharedStateType::create_shared(); | 519 | 105 | ss->id = operator_id(); | 520 | 105 | for (auto& dest : dests_id()) { | 521 | 105 | ss->related_op_ids.insert(dest); | 522 | 105 | } | 523 | 105 | return ss; | 524 | 105 | } | 525 | 105 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
526 | | |
527 | | template <typename LocalStateType> |
528 | 2.35M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
529 | 2.35M | auto local_state = LocalStateType::create_unique(state, this); |
530 | 2.35M | RETURN_IF_ERROR(local_state->init(state, info)); |
531 | 2.35M | state->emplace_local_state(operator_id(), std::move(local_state)); |
532 | 2.35M | return Status::OK(); |
533 | 2.35M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 75.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 75.7k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 75.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 75.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 75.7k | return Status::OK(); | 533 | 75.7k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 290k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 290k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 290k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 290k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 290k | return Status::OK(); | 533 | 290k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 77 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 77 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 77 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 77 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 77 | return Status::OK(); | 533 | 77 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 33.4k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 33.4k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 33.4k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 33.4k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 33.4k | return Status::OK(); | 533 | 33.4k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 7.98k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 7.98k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 7.98k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 7.98k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 7.98k | return Status::OK(); | 533 | 7.98k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 8.34k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 8.34k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 8.34k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 8.34k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 8.34k | return Status::OK(); | 533 | 8.34k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 22 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 22 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 22 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 22 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 22 | return Status::OK(); | 533 | 22 | } |
_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 | 160k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 160k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 160k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 160k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 160k | return Status::OK(); | 533 | 160k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 326 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 326 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 326 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 326 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 326 | return Status::OK(); | 533 | 326 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 180 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 180 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 180 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 180 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 180 | return Status::OK(); | 533 | 180 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 4.68k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 4.68k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 4.68k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 4.68k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 4.68k | return Status::OK(); | 533 | 4.68k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 337k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 337k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 337k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 337k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 337k | return Status::OK(); | 533 | 337k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 1.12k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.12k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.12k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.12k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.12k | return Status::OK(); | 533 | 1.12k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 11.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 11.2k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 11.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 11.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 11.2k | return Status::OK(); | 533 | 11.2k | } |
_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.70k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.70k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.70k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.70k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.70k | return Status::OK(); | 533 | 1.70k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 55.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 55.5k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 55.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 55.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 55.5k | return Status::OK(); | 533 | 55.5k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 10.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 10.9k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 10.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 10.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 10.9k | return Status::OK(); | 533 | 10.9k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 340 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 340 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 340 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 340 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 340 | return Status::OK(); | 533 | 340 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.33k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.33k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.33k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.33k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.33k | return Status::OK(); | 533 | 2.33k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.42k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.42k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.42k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.42k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.42k | return Status::OK(); | 533 | 2.42k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 469 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 469 | auto local_state = LocalStateType::create_unique(state, this); | 530 | 469 | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 469 | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 469 | return Status::OK(); | 533 | 469 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.07k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.07k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.07k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.07k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.07k | return Status::OK(); | 533 | 2.07k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 6.77k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 6.77k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 6.77k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 6.77k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 6.77k | return Status::OK(); | 533 | 6.77k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 725k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 725k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 725k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 725k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 725k | return Status::OK(); | 533 | 725k | } |
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.59k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 1.59k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 1.59k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 1.59k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 1.59k | return Status::OK(); | 533 | 1.59k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 2.57k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 2.57k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 2.57k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 2.57k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 2.57k | return Status::OK(); | 533 | 2.57k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 12.9k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 12.9k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 12.9k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 12.9k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 12.9k | return Status::OK(); | 533 | 12.9k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 528 | 359k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 529 | 359k | auto local_state = LocalStateType::create_unique(state, this); | 530 | 359k | RETURN_IF_ERROR(local_state->init(state, info)); | 531 | 359k | state->emplace_local_state(operator_id(), std::move(local_state)); | 532 | 359k | return Status::OK(); | 533 | 359k | } |
|
534 | | |
535 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
536 | | RuntimeState* state) |
537 | 1.95M | : _parent(parent), _state(state) {} |
538 | | |
539 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
540 | 2.35M | : _num_rows_returned(0), |
541 | 2.35M | _rows_returned_counter(nullptr), |
542 | 2.35M | _parent(parent), |
543 | 2.35M | _state(state), |
544 | 2.35M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
545 | | |
546 | | template <typename SharedStateArg> |
547 | 2.35M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
548 | 2.35M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
549 | 2.35M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
550 | 2.35M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
551 | 2.35M | _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.35M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
555 | 2.35M | _operator_profile->add_child(_common_profile.get(), true); |
556 | 2.35M | _operator_profile->add_child(_custom_profile.get(), true); |
557 | 2.35M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
558 | 2.35M | if constexpr (!is_fake_shared) { |
559 | 1.30M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
560 | 749k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
561 | 749k | .first.get() |
562 | 749k | ->template cast<SharedStateArg>(); |
563 | | |
564 | 749k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
565 | 749k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
566 | 749k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
567 | 749k | } else if (info.shared_state) { |
568 | 486k | 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 | 486k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
573 | | |
574 | 486k | _dependency = _shared_state->create_source_dependency( |
575 | 486k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
576 | 486k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
577 | 486k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
578 | 486k | } else { |
579 | 65.1k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
580 | 6.35k | DCHECK(false); |
581 | 6.35k | } |
582 | 65.1k | } |
583 | 1.30M | } |
584 | | |
585 | 2.35M | 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.35M | _rows_returned_counter = |
590 | 2.35M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
591 | 2.35M | _blocks_returned_counter = |
592 | 2.35M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
593 | 2.35M | _output_block_bytes_counter = |
594 | 2.35M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
595 | 2.35M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
596 | 2.35M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
597 | 2.35M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
598 | 2.35M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
599 | 2.35M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
600 | 2.35M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
601 | 2.35M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
602 | 2.35M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
603 | 2.35M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
604 | 2.35M | _memory_used_counter = |
605 | 2.35M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
606 | 2.35M | _common_profile->add_info_string("IsColocate", |
607 | 2.35M | std::to_string(_parent->is_colocated_operator())); |
608 | 2.35M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
609 | 2.35M | _common_profile->add_info_string("FollowedByShuffledOperator", |
610 | 2.35M | std::to_string(_parent->followed_by_shuffled_operator())); |
611 | 2.35M | return Status::OK(); |
612 | 2.35M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 76.1k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 76.1k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 76.1k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 76.1k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 76.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 | 76.1k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 76.1k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 76.1k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 76.1k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 76.1k | if constexpr (!is_fake_shared) { | 559 | 76.1k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 26.1k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 26.1k | .first.get() | 562 | 26.1k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 26.1k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 26.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 26.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 49.9k | } 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 | 48.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 48.9k | _dependency = _shared_state->create_source_dependency( | 575 | 48.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 48.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 48.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 48.9k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 998 | } | 583 | 76.1k | } | 584 | | | 585 | 76.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 | 76.1k | _rows_returned_counter = | 590 | 76.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 76.1k | _blocks_returned_counter = | 592 | 76.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 76.1k | _output_block_bytes_counter = | 594 | 76.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 76.1k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 76.1k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 76.1k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 76.1k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 76.1k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 76.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 76.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 76.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 76.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 76.1k | _memory_used_counter = | 605 | 76.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 76.1k | _common_profile->add_info_string("IsColocate", | 607 | 76.1k | std::to_string(_parent->is_colocated_operator())); | 608 | 76.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 76.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 76.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 76.1k | return Status::OK(); | 612 | 76.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 | 242k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 242k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 242k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 242k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 242k | _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 | 242k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 242k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 242k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 242k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 242k | if constexpr (!is_fake_shared) { | 559 | 242k | 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 | 242k | } 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 | 239k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 239k | _dependency = _shared_state->create_source_dependency( | 575 | 239k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 239k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 239k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 239k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 3.51k | } | 583 | 242k | } | 584 | | | 585 | 242k | 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 | 242k | _rows_returned_counter = | 590 | 242k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 242k | _blocks_returned_counter = | 592 | 242k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 242k | _output_block_bytes_counter = | 594 | 242k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 242k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 242k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 242k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 242k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 242k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 242k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 242k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 242k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 242k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 242k | _memory_used_counter = | 605 | 242k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 242k | _common_profile->add_info_string("IsColocate", | 607 | 242k | std::to_string(_parent->is_colocated_operator())); | 608 | 242k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 242k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 242k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 242k | return Status::OK(); | 612 | 242k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 22 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 22 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 22 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 22 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 22 | _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 | 22 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 22 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 22 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 22 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 22 | if constexpr (!is_fake_shared) { | 559 | 22 | 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 | 22 | } 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 | 22 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 22 | _dependency = _shared_state->create_source_dependency( | 575 | 22 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 22 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 22 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 22 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 22 | } | 584 | | | 585 | 22 | 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 | 22 | _rows_returned_counter = | 590 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 22 | _blocks_returned_counter = | 592 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 22 | _output_block_bytes_counter = | 594 | 22 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 22 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 22 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 22 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 22 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 22 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 22 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 22 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 22 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 22 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 22 | _memory_used_counter = | 605 | 22 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 22 | _common_profile->add_info_string("IsColocate", | 607 | 22 | std::to_string(_parent->is_colocated_operator())); | 608 | 22 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 22 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 22 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 22 | return Status::OK(); | 612 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 11.3k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 11.3k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 11.3k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 11.3k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 11.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 | 11.3k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 11.3k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 11.3k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 11.3k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 11.3k | if constexpr (!is_fake_shared) { | 559 | 11.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 | 11.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 | 11.1k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 11.1k | _dependency = _shared_state->create_source_dependency( | 575 | 11.1k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 11.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 11.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 11.1k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 162 | } | 583 | 11.3k | } | 584 | | | 585 | 11.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 | 11.3k | _rows_returned_counter = | 590 | 11.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 11.3k | _blocks_returned_counter = | 592 | 11.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 11.3k | _output_block_bytes_counter = | 594 | 11.3k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 11.3k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 11.3k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 11.3k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 11.3k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 11.3k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 11.3k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 11.3k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 11.3k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 11.3k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 11.3k | _memory_used_counter = | 605 | 11.3k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 11.3k | _common_profile->add_info_string("IsColocate", | 607 | 11.3k | std::to_string(_parent->is_colocated_operator())); | 608 | 11.3k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 11.3k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 11.3k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 11.3k | return Status::OK(); | 612 | 11.3k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 8.01k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 8.01k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 8.01k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 8.01k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 8.01k | _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 | 8.01k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 8.01k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 8.01k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 8.01k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 8.01k | if constexpr (!is_fake_shared) { | 559 | 8.01k | 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 | 8.01k | } 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.92k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 7.92k | _dependency = _shared_state->create_source_dependency( | 575 | 7.92k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 7.92k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 7.92k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 7.92k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 94 | } | 583 | 8.01k | } | 584 | | | 585 | 8.01k | 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 | 8.01k | _rows_returned_counter = | 590 | 8.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 8.01k | _blocks_returned_counter = | 592 | 8.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 8.01k | _output_block_bytes_counter = | 594 | 8.01k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 8.01k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 8.01k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 8.01k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 8.01k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 8.01k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 8.01k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 8.01k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 8.01k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 8.01k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 8.01k | _memory_used_counter = | 605 | 8.01k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 8.01k | _common_profile->add_info_string("IsColocate", | 607 | 8.01k | std::to_string(_parent->is_colocated_operator())); | 608 | 8.01k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 8.01k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 8.01k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 8.01k | return Status::OK(); | 612 | 8.01k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 161k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 161k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 161k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 161k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 161k | _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 | 161k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 161k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 161k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 161k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 161k | if constexpr (!is_fake_shared) { | 559 | 161k | 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 | 161k | } 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 | 159k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 159k | _dependency = _shared_state->create_source_dependency( | 575 | 159k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 159k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 159k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 159k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 1.37k | } | 583 | 161k | } | 584 | | | 585 | 161k | 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 | 161k | _rows_returned_counter = | 590 | 161k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 161k | _blocks_returned_counter = | 592 | 161k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 161k | _output_block_bytes_counter = | 594 | 161k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 161k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 161k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 161k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 161k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 161k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 161k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 161k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 161k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 161k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 161k | _memory_used_counter = | 605 | 161k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 161k | _common_profile->add_info_string("IsColocate", | 607 | 161k | std::to_string(_parent->is_colocated_operator())); | 608 | 161k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 161k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 161k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 161k | return Status::OK(); | 612 | 161k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 326 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 326 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 326 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 326 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 326 | _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 | 326 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 326 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 326 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 326 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 326 | if constexpr (!is_fake_shared) { | 559 | 327 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 327 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 327 | .first.get() | 562 | 327 | ->template cast<SharedStateArg>(); | 563 | | | 564 | 327 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 327 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 327 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 18.4E | } 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 | 18.4E | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 18.4E | } | 583 | 326 | } | 584 | | | 585 | 326 | 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 | 326 | _rows_returned_counter = | 590 | 326 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 326 | _blocks_returned_counter = | 592 | 326 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 326 | _output_block_bytes_counter = | 594 | 326 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 326 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 326 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 326 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 326 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 326 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 326 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 326 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 326 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 326 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 326 | _memory_used_counter = | 605 | 326 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 326 | _common_profile->add_info_string("IsColocate", | 607 | 326 | std::to_string(_parent->is_colocated_operator())); | 608 | 326 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 326 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 326 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 326 | return Status::OK(); | 612 | 326 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 180 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 180 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 180 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 180 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 180 | _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 | 180 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 180 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 180 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 180 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 180 | if constexpr (!is_fake_shared) { | 559 | 180 | 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 | 180 | } 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 | 180 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 180 | _dependency = _shared_state->create_source_dependency( | 575 | 180 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 180 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 180 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 180 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 0 | } | 583 | 180 | } | 584 | | | 585 | 180 | 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 | 180 | _rows_returned_counter = | 590 | 180 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 180 | _blocks_returned_counter = | 592 | 180 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 180 | _output_block_bytes_counter = | 594 | 180 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 180 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 180 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 180 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 180 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 180 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 180 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 180 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 180 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 180 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 180 | _memory_used_counter = | 605 | 180 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 180 | _common_profile->add_info_string("IsColocate", | 607 | 180 | std::to_string(_parent->is_colocated_operator())); | 608 | 180 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 180 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 180 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 180 | return Status::OK(); | 612 | 180 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 1.05M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 1.05M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 1.05M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 1.05M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 1.05M | _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.05M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 1.05M | _operator_profile->add_child(_common_profile.get(), true); | 556 | 1.05M | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 1.05M | 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.05M | 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.05M | _rows_returned_counter = | 590 | 1.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 1.05M | _blocks_returned_counter = | 592 | 1.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 1.05M | _output_block_bytes_counter = | 594 | 1.05M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 1.05M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 1.05M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 1.05M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 1.05M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 1.05M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 1.05M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 1.05M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 1.05M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 1.05M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 1.05M | _memory_used_counter = | 605 | 1.05M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 1.05M | _common_profile->add_info_string("IsColocate", | 607 | 1.05M | std::to_string(_parent->is_colocated_operator())); | 608 | 1.05M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 1.05M | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 1.05M | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 1.05M | return Status::OK(); | 612 | 1.05M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 55.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 55.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 55.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 55.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 55.5k | _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.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 55.5k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 55.5k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 55.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 55.5k | if constexpr (!is_fake_shared) { | 559 | 55.5k | 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.5k | } else if (info.shared_state) { | 568 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 569 | | DCHECK(false); | 570 | | } | 571 | | // For UnionSourceOperator without children, there is no shared state. | 572 | 3.26k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 3.26k | _dependency = _shared_state->create_source_dependency( | 575 | 3.26k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 3.26k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 3.26k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 52.2k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 52.2k | } | 583 | 55.5k | } | 584 | | | 585 | 55.5k | 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.5k | _rows_returned_counter = | 590 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 55.5k | _blocks_returned_counter = | 592 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 55.5k | _output_block_bytes_counter = | 594 | 55.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 55.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 55.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 55.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 55.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 55.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 55.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 55.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 55.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 55.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 55.5k | _memory_used_counter = | 605 | 55.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 55.5k | _common_profile->add_info_string("IsColocate", | 607 | 55.5k | std::to_string(_parent->is_colocated_operator())); | 608 | 55.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 55.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 55.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 55.5k | return Status::OK(); | 612 | 55.5k | } |
_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.9k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 10.9k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 10.9k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 10.9k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 10.9k | _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.9k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 10.9k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 10.9k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 10.9k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 10.9k | if constexpr (!is_fake_shared) { | 559 | 10.9k | 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.9k | } 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.8k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 10.8k | _dependency = _shared_state->create_source_dependency( | 575 | 10.8k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 10.8k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 10.8k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 10.8k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 84 | } | 583 | 10.9k | } | 584 | | | 585 | 10.9k | 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.9k | _rows_returned_counter = | 590 | 10.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 10.9k | _blocks_returned_counter = | 592 | 10.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 10.9k | _output_block_bytes_counter = | 594 | 10.9k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 10.9k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 10.9k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 10.9k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 10.9k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 10.9k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 10.9k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 10.9k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 10.9k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 10.9k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 10.9k | _memory_used_counter = | 605 | 10.9k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 10.9k | _common_profile->add_info_string("IsColocate", | 607 | 10.9k | std::to_string(_parent->is_colocated_operator())); | 608 | 10.9k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 10.9k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 10.9k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 10.9k | return Status::OK(); | 612 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 442 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 442 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 442 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 442 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 442 | _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 | 442 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 442 | _operator_profile->add_child(_common_profile.get(), true); | 556 | 442 | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 442 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 442 | if constexpr (!is_fake_shared) { | 559 | 442 | 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 | 442 | } 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 | 439 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 439 | _dependency = _shared_state->create_source_dependency( | 575 | 439 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 439 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 439 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 439 | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 3 | } | 583 | 442 | } | 584 | | | 585 | 442 | 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 | 442 | _rows_returned_counter = | 590 | 442 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 442 | _blocks_returned_counter = | 592 | 442 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 442 | _output_block_bytes_counter = | 594 | 442 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 442 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 442 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 442 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 442 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 442 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 442 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 442 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 442 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 442 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 442 | _memory_used_counter = | 605 | 442 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 442 | _common_profile->add_info_string("IsColocate", | 607 | 442 | std::to_string(_parent->is_colocated_operator())); | 608 | 442 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 442 | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 442 | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 442 | return Status::OK(); | 612 | 442 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 4.84k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 4.84k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 4.84k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 4.84k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 4.84k | _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.84k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 4.84k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 4.84k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 4.84k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 4.84k | if constexpr (!is_fake_shared) { | 559 | 4.84k | 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.84k | } 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.54k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 573 | | | 574 | 4.54k | _dependency = _shared_state->create_source_dependency( | 575 | 4.54k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 576 | 4.54k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 577 | 4.54k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 578 | 4.54k | } else { | 579 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | | DCHECK(false); | 581 | | } | 582 | 305 | } | 583 | 4.84k | } | 584 | | | 585 | 4.84k | 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.84k | _rows_returned_counter = | 590 | 4.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 4.84k | _blocks_returned_counter = | 592 | 4.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 4.84k | _output_block_bytes_counter = | 594 | 4.84k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 4.84k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 4.84k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 4.84k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 4.84k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 4.84k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 4.84k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 4.84k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 4.84k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 4.84k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 4.84k | _memory_used_counter = | 605 | 4.84k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 4.84k | _common_profile->add_info_string("IsColocate", | 607 | 4.84k | std::to_string(_parent->is_colocated_operator())); | 608 | 4.84k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 4.84k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 4.84k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 4.84k | return Status::OK(); | 612 | 4.84k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 547 | 729k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 548 | 729k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 549 | 729k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 550 | 729k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 551 | 729k | _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 | 729k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 555 | 729k | _operator_profile->add_child(_common_profile.get(), true); | 556 | 729k | _operator_profile->add_child(_custom_profile.get(), true); | 557 | 729k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 558 | 729k | if constexpr (!is_fake_shared) { | 559 | 729k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 560 | 722k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 561 | 722k | .first.get() | 562 | 722k | ->template cast<SharedStateArg>(); | 563 | | | 564 | 722k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 565 | 722k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 566 | 722k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 567 | 722k | } 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 | 6.35k | } else { | 579 | 6.35k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 580 | 6.35k | DCHECK(false); | 581 | 6.35k | } | 582 | 6.35k | } | 583 | 729k | } | 584 | | | 585 | 729k | 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 | 729k | _rows_returned_counter = | 590 | 729k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 591 | 729k | _blocks_returned_counter = | 592 | 729k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 593 | 729k | _output_block_bytes_counter = | 594 | 729k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 595 | 729k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 596 | 729k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 597 | 729k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 598 | 729k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 599 | 729k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 600 | 729k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 601 | 729k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 602 | 729k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 603 | 729k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 604 | 729k | _memory_used_counter = | 605 | 729k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 606 | 729k | _common_profile->add_info_string("IsColocate", | 607 | 729k | std::to_string(_parent->is_colocated_operator())); | 608 | 729k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 609 | 729k | _common_profile->add_info_string("FollowedByShuffledOperator", | 610 | 729k | std::to_string(_parent->followed_by_shuffled_operator())); | 611 | 729k | return Status::OK(); | 612 | 729k | } |
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.36M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
616 | 2.36M | _conjuncts.resize(_parent->_conjuncts.size()); |
617 | 2.36M | _projections.resize(_parent->_projections.size()); |
618 | 2.86M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
619 | 497k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
620 | 497k | } |
621 | 5.07M | for (size_t i = 0; i < _projections.size(); i++) { |
622 | 2.71M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
623 | 2.71M | } |
624 | 2.36M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
625 | 2.37M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
626 | 9.84k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
627 | 67.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
628 | 57.3k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
629 | 57.3k | state, _intermediate_projections[i][j])); |
630 | 57.3k | } |
631 | 9.84k | } |
632 | 2.36M | return Status::OK(); |
633 | 2.36M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 76.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 76.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 76.4k | _projections.resize(_parent->_projections.size()); | 618 | 77.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 1.47k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 1.47k | } | 621 | 407k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 331k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 331k | } | 624 | 76.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 77.7k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 1.28k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 14.3k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 13.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 13.1k | state, _intermediate_projections[i][j])); | 630 | 13.1k | } | 631 | 1.28k | } | 632 | 76.4k | return Status::OK(); | 633 | 76.4k | } |
_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 | 243k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 243k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 243k | _projections.resize(_parent->_projections.size()); | 618 | 243k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 243k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 355 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 355 | } | 624 | 243k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 243k | 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 | 243k | return Status::OK(); | 633 | 243k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 22 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 22 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 22 | _projections.resize(_parent->_projections.size()); | 618 | 22 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 22 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 22 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 22 | 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 | 22 | return Status::OK(); | 633 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 11.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 11.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 11.4k | _projections.resize(_parent->_projections.size()); | 618 | 11.5k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 39 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 39 | } | 621 | 72.5k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 61.1k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 61.1k | } | 624 | 11.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 11.5k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 135 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 817 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 682 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 682 | state, _intermediate_projections[i][j])); | 630 | 682 | } | 631 | 135 | } | 632 | 11.4k | return Status::OK(); | 633 | 11.4k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 8.03k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 8.03k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 8.03k | _projections.resize(_parent->_projections.size()); | 618 | 8.80k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 769 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 769 | } | 621 | 22.4k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 14.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 14.4k | } | 624 | 8.03k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 8.11k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 83 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 623 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 540 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 540 | state, _intermediate_projections[i][j])); | 630 | 540 | } | 631 | 83 | } | 632 | 8.03k | return Status::OK(); | 633 | 8.03k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 161k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 161k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 161k | _projections.resize(_parent->_projections.size()); | 618 | 164k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 3.84k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 3.84k | } | 621 | 415k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 254k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 254k | } | 624 | 161k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 161k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 283 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 2.17k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 1.88k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 1.88k | state, _intermediate_projections[i][j])); | 630 | 1.88k | } | 631 | 283 | } | 632 | 161k | return Status::OK(); | 633 | 161k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 329 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 329 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 329 | _projections.resize(_parent->_projections.size()); | 618 | 331 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 2 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 2 | } | 621 | 1.36k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 1.03k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 1.03k | } | 624 | 329 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 329 | 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 | 329 | return Status::OK(); | 633 | 329 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 184 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 184 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 184 | _projections.resize(_parent->_projections.size()); | 618 | 184 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 404 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 220 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 220 | } | 624 | 184 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 184 | 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 | 184 | return Status::OK(); | 633 | 184 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 1.06M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 1.06M | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 1.06M | _projections.resize(_parent->_projections.size()); | 618 | 1.54M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 488k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 488k | } | 621 | 3.01M | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 1.95M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 1.95M | } | 624 | 1.06M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 1.06M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 8.05k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 49.1k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 41.1k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 41.1k | state, _intermediate_projections[i][j])); | 630 | 41.1k | } | 631 | 8.05k | } | 632 | 1.06M | return Status::OK(); | 633 | 1.06M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 55.7k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 55.7k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 55.7k | _projections.resize(_parent->_projections.size()); | 618 | 55.7k | 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 | 94.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 94.4k | } | 624 | 55.7k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 55.7k | 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.7k | return Status::OK(); | 633 | 55.7k | } |
_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.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 10.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 10.9k | _projections.resize(_parent->_projections.size()); | 618 | 14.4k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 3.57k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 3.57k | } | 621 | 10.9k | 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.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 10.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 626 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 627 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 628 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 629 | 0 | state, _intermediate_projections[i][j])); | 630 | 0 | } | 631 | 0 | } | 632 | 10.9k | return Status::OK(); | 633 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 442 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 442 | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 442 | _projections.resize(_parent->_projections.size()); | 618 | 442 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 442 | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 442 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 442 | 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 | 442 | return Status::OK(); | 633 | 442 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 4.89k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 4.89k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 4.89k | _projections.resize(_parent->_projections.size()); | 618 | 4.89k | 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.89k | 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.89k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 4.89k | 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.89k | return Status::OK(); | 633 | 4.89k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 615 | 730k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 616 | 730k | _conjuncts.resize(_parent->_conjuncts.size()); | 617 | 730k | _projections.resize(_parent->_projections.size()); | 618 | 730k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 619 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 620 | 0 | } | 621 | 730k | for (size_t i = 0; i < _projections.size(); i++) { | 622 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 623 | 0 | } | 624 | 730k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 625 | 730k | 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 | 730k | return Status::OK(); | 633 | 730k | } |
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 | 11.7k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
637 | 11.7k | if (_terminated) { |
638 | 0 | return Status::OK(); |
639 | 0 | } |
640 | 11.7k | _terminated = true; |
641 | 11.7k | return Status::OK(); |
642 | 11.7k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 1.27k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 1.27k | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 1.27k | _terminated = true; | 641 | 1.27k | return Status::OK(); | 642 | 1.27k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 127 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 127 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 127 | _terminated = true; | 641 | 127 | return Status::OK(); | 642 | 127 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 186 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 186 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 186 | _terminated = true; | 641 | 186 | return Status::OK(); | 642 | 186 | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 4 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 4 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 4 | _terminated = true; | 641 | 4 | return Status::OK(); | 642 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 218 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 218 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 218 | _terminated = true; | 641 | 218 | return Status::OK(); | 642 | 218 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 8.80k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 8.80k | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 8.80k | _terminated = true; | 641 | 8.80k | return Status::OK(); | 642 | 8.80k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 9 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 9 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 9 | _terminated = true; | 641 | 9 | return Status::OK(); | 642 | 9 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 25 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 25 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 25 | _terminated = true; | 641 | 25 | return Status::OK(); | 642 | 25 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 150 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 150 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 150 | _terminated = true; | 641 | 150 | return Status::OK(); | 642 | 150 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 972 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 972 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 972 | _terminated = true; | 641 | 972 | return Status::OK(); | 642 | 972 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 636 | 20 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 637 | 20 | if (_terminated) { | 638 | 0 | return Status::OK(); | 639 | 0 | } | 640 | 20 | _terminated = true; | 641 | 20 | return Status::OK(); | 642 | 20 | } |
|
643 | | |
644 | | template <typename SharedStateArg> |
645 | 2.64M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
646 | 2.64M | if (_closed) { |
647 | 274k | return Status::OK(); |
648 | 274k | } |
649 | 2.36M | 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.36M | _closed = true; |
653 | 2.36M | return Status::OK(); |
654 | 2.64M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 76.3k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 76.3k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 76.3k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 76.3k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 76.3k | } | 652 | 76.3k | _closed = true; | 653 | 76.3k | return Status::OK(); | 654 | 76.3k | } |
_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 | 484k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 484k | 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 | 484k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 22 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 22 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 22 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 22 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 22 | } | 652 | 22 | _closed = true; | 653 | 22 | return Status::OK(); | 654 | 22 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 11.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 11.4k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 11.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 11.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 11.4k | } | 652 | 11.4k | _closed = true; | 653 | 11.4k | return Status::OK(); | 654 | 11.4k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 16.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 16.1k | if (_closed) { | 647 | 8.17k | return Status::OK(); | 648 | 8.17k | } | 649 | 8.01k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 8.01k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 8.01k | } | 652 | 8.01k | _closed = true; | 653 | 8.01k | return Status::OK(); | 654 | 16.1k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 160k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 160k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 160k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 160k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 160k | } | 652 | 160k | _closed = true; | 653 | 160k | return Status::OK(); | 654 | 160k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 329 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 329 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 329 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 329 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 329 | } | 652 | 329 | _closed = true; | 653 | 329 | return Status::OK(); | 654 | 329 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 179 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 179 | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 179 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 179 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 179 | } | 652 | 179 | _closed = true; | 653 | 179 | return Status::OK(); | 654 | 179 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 1.07M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 1.07M | if (_closed) { | 647 | 18.0k | return Status::OK(); | 648 | 18.0k | } | 649 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | | } | 652 | 1.06M | _closed = true; | 653 | 1.06M | return Status::OK(); | 654 | 1.07M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 55.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 55.7k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 55.7k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 55.7k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 55.7k | } | 652 | 55.7k | _closed = true; | 653 | 55.7k | return Status::OK(); | 654 | 55.7k | } |
_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.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 10.9k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 10.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 10.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 10.9k | } | 652 | 10.9k | _closed = true; | 653 | 10.9k | return Status::OK(); | 654 | 10.9k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 679 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 679 | if (_closed) { | 647 | 340 | return Status::OK(); | 648 | 340 | } | 649 | 339 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 339 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 339 | } | 652 | 339 | _closed = true; | 653 | 339 | return Status::OK(); | 654 | 679 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 9.91k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 9.91k | if (_closed) { | 647 | 5.02k | return Status::OK(); | 648 | 5.02k | } | 649 | 4.88k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 4.88k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 4.88k | } | 652 | 4.88k | _closed = true; | 653 | 4.88k | return Status::OK(); | 654 | 9.91k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 645 | 732k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 646 | 732k | if (_closed) { | 647 | 0 | return Status::OK(); | 648 | 0 | } | 649 | 732k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 650 | 732k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 651 | 732k | } | 652 | 732k | _closed = true; | 653 | 732k | return Status::OK(); | 654 | 732k | } |
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.95M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
658 | | // create profile |
659 | 1.95M | _operator_profile = |
660 | 1.95M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
661 | 1.95M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
662 | 1.95M | _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.95M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
668 | 1.95M | _operator_profile->add_child(_common_profile, true); |
669 | 1.95M | _operator_profile->add_child(_custom_profile, true); |
670 | | |
671 | 1.95M | _operator_profile->set_metadata(_parent->node_id()); |
672 | 1.95M | _wait_for_finish_dependency_timer = |
673 | 1.95M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
674 | 1.95M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
675 | 1.95M | if constexpr (!is_fake_shared) { |
676 | 1.31M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
677 | 1.31M | info.shared_state_map.end()) { |
678 | 320k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
679 | 293k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
680 | 293k | } |
681 | 320k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
682 | 320k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
683 | 320k | ? 0 |
684 | 320k | : info.task_idx] |
685 | 320k | .get(); |
686 | 320k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
687 | 997k | } else { |
688 | 997k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
689 | 45 | DCHECK(false); |
690 | 45 | } |
691 | 997k | _shared_state = info.shared_state->template cast<SharedState>(); |
692 | 997k | _dependency = _shared_state->create_sink_dependency( |
693 | 997k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
694 | 997k | } |
695 | 1.31M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
696 | 1.31M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
697 | 1.31M | } |
698 | | |
699 | 1.95M | 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.95M | _rows_input_counter = |
704 | 1.95M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
705 | 1.95M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
706 | 1.95M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
707 | 1.95M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
708 | 1.95M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
709 | 1.95M | _memory_used_counter = |
710 | 1.95M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
711 | 1.95M | _common_profile->add_info_string("IsColocate", |
712 | 1.95M | std::to_string(_parent->is_colocated_operator())); |
713 | 1.95M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
714 | 1.95M | _common_profile->add_info_string("FollowedByShuffledOperator", |
715 | 1.95M | std::to_string(_parent->followed_by_shuffled_operator())); |
716 | 1.95M | return Status::OK(); |
717 | 1.95M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 124k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 124k | _operator_profile = | 660 | 124k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 124k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 124k | _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 | 124k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 124k | _operator_profile->add_child(_common_profile, true); | 669 | 124k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 124k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 124k | _wait_for_finish_dependency_timer = | 673 | 124k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 124k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 124k | if constexpr (!is_fake_shared) { | 676 | 124k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 124k | 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 | 26.7k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 26.7k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 26.7k | ? 0 | 684 | 26.7k | : info.task_idx] | 685 | 26.7k | .get(); | 686 | 26.7k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 97.5k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 97.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 97.5k | _dependency = _shared_state->create_sink_dependency( | 693 | 97.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 97.5k | } | 695 | 124k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 124k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 124k | } | 698 | | | 699 | 124k | 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 | 124k | _rows_input_counter = | 704 | 124k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 124k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 124k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 124k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 124k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 124k | _memory_used_counter = | 710 | 124k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 124k | _common_profile->add_info_string("IsColocate", | 712 | 124k | std::to_string(_parent->is_colocated_operator())); | 713 | 124k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 124k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 124k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 124k | return Status::OK(); | 717 | 124k | } |
_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 | 242k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 242k | _operator_profile = | 660 | 242k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 242k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 242k | _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 | 242k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 242k | _operator_profile->add_child(_common_profile, true); | 669 | 242k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 242k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 242k | _wait_for_finish_dependency_timer = | 673 | 242k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 242k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 242k | if constexpr (!is_fake_shared) { | 676 | 242k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 242k | 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 | 242k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 242k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 242k | _dependency = _shared_state->create_sink_dependency( | 693 | 242k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 242k | } | 695 | 242k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 242k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 242k | } | 698 | | | 699 | 242k | 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 | 242k | _rows_input_counter = | 704 | 242k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 242k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 242k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 242k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 242k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 242k | _memory_used_counter = | 710 | 242k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 242k | _common_profile->add_info_string("IsColocate", | 712 | 242k | std::to_string(_parent->is_colocated_operator())); | 713 | 242k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 242k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 242k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 242k | return Status::OK(); | 717 | 242k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 28 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 28 | _operator_profile = | 660 | 28 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 28 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 28 | _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 | 28 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 28 | _operator_profile->add_child(_common_profile, true); | 669 | 28 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 28 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 28 | _wait_for_finish_dependency_timer = | 673 | 28 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 28 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 28 | if constexpr (!is_fake_shared) { | 676 | 28 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 28 | 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 | 28 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 28 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 28 | _dependency = _shared_state->create_sink_dependency( | 693 | 28 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 28 | } | 695 | 28 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 28 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 28 | } | 698 | | | 699 | 28 | 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 | 28 | _rows_input_counter = | 704 | 28 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 28 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 28 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 28 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 28 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 28 | _memory_used_counter = | 710 | 28 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 28 | _common_profile->add_info_string("IsColocate", | 712 | 28 | std::to_string(_parent->is_colocated_operator())); | 713 | 28 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 28 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 28 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 28 | return Status::OK(); | 717 | 28 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 11.4k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 11.4k | _operator_profile = | 660 | 11.4k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 11.4k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 11.4k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 11.4k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 11.4k | _operator_profile->add_child(_common_profile, true); | 669 | 11.4k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 11.4k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 11.4k | _wait_for_finish_dependency_timer = | 673 | 11.4k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 11.4k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 11.4k | if constexpr (!is_fake_shared) { | 676 | 11.4k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 11.4k | 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.4k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 11.4k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 11.4k | _dependency = _shared_state->create_sink_dependency( | 693 | 11.4k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 11.4k | } | 695 | 11.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 11.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 11.4k | } | 698 | | | 699 | 11.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 11.4k | _rows_input_counter = | 704 | 11.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 11.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 11.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 11.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 11.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 11.4k | _memory_used_counter = | 710 | 11.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 11.4k | _common_profile->add_info_string("IsColocate", | 712 | 11.4k | std::to_string(_parent->is_colocated_operator())); | 713 | 11.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 11.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 11.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 11.4k | return Status::OK(); | 717 | 11.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 8.02k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 8.02k | _operator_profile = | 660 | 8.02k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 8.02k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 8.02k | _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 | 8.02k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 8.02k | _operator_profile->add_child(_common_profile, true); | 669 | 8.02k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 8.02k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 8.02k | _wait_for_finish_dependency_timer = | 673 | 8.02k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 8.02k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 8.02k | if constexpr (!is_fake_shared) { | 676 | 8.02k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 8.02k | 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 | 8.02k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 8.02k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 8.02k | _dependency = _shared_state->create_sink_dependency( | 693 | 8.02k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 8.02k | } | 695 | 8.02k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 8.02k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 8.02k | } | 698 | | | 699 | 8.02k | 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 | 8.02k | _rows_input_counter = | 704 | 8.02k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 8.02k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 8.02k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 8.02k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 8.02k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 8.02k | _memory_used_counter = | 710 | 8.02k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 8.02k | _common_profile->add_info_string("IsColocate", | 712 | 8.02k | std::to_string(_parent->is_colocated_operator())); | 713 | 8.02k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 8.02k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 8.02k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 8.02k | return Status::OK(); | 717 | 8.02k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 161k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 161k | _operator_profile = | 660 | 161k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 161k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 161k | _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 | 161k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 161k | _operator_profile->add_child(_common_profile, true); | 669 | 161k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 161k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 161k | _wait_for_finish_dependency_timer = | 673 | 161k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 161k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 161k | if constexpr (!is_fake_shared) { | 676 | 161k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 161k | 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 | 161k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 161k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 161k | _dependency = _shared_state->create_sink_dependency( | 693 | 161k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 161k | } | 695 | 161k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 161k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 161k | } | 698 | | | 699 | 161k | 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 | 161k | _rows_input_counter = | 704 | 161k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 161k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 161k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 161k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 161k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 161k | _memory_used_counter = | 710 | 161k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 161k | _common_profile->add_info_string("IsColocate", | 712 | 161k | std::to_string(_parent->is_colocated_operator())); | 713 | 161k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 161k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 161k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 161k | return Status::OK(); | 717 | 161k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 291 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 291 | _operator_profile = | 660 | 291 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 291 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 291 | _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 | 291 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 291 | _operator_profile->add_child(_common_profile, true); | 669 | 291 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 291 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 291 | _wait_for_finish_dependency_timer = | 673 | 291 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 291 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 291 | if constexpr (!is_fake_shared) { | 676 | 291 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 291 | 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 | 290 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 290 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 290 | ? 0 | 684 | 290 | : info.task_idx] | 685 | 290 | .get(); | 686 | 290 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 290 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 1 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 1 | _dependency = _shared_state->create_sink_dependency( | 693 | 1 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 1 | } | 695 | 291 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 291 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 291 | } | 698 | | | 699 | 291 | 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 | 291 | _rows_input_counter = | 704 | 291 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 291 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 291 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 291 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 291 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 291 | _memory_used_counter = | 710 | 291 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 291 | _common_profile->add_info_string("IsColocate", | 712 | 291 | std::to_string(_parent->is_colocated_operator())); | 713 | 291 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 291 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 291 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 291 | return Status::OK(); | 717 | 291 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 190 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 190 | _operator_profile = | 660 | 190 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 190 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 190 | _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 | 190 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 190 | _operator_profile->add_child(_common_profile, true); | 669 | 190 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 190 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 190 | _wait_for_finish_dependency_timer = | 673 | 190 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 190 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 190 | if constexpr (!is_fake_shared) { | 676 | 190 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 190 | 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 | 190 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 190 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 190 | _dependency = _shared_state->create_sink_dependency( | 693 | 190 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 190 | } | 695 | 190 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 190 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 190 | } | 698 | | | 699 | 190 | 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 | 190 | _rows_input_counter = | 704 | 190 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 190 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 190 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 190 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 190 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 190 | _memory_used_counter = | 710 | 190 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 190 | _common_profile->add_info_string("IsColocate", | 712 | 190 | std::to_string(_parent->is_colocated_operator())); | 713 | 190 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 190 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 190 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 190 | return Status::OK(); | 717 | 190 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 640k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 640k | _operator_profile = | 660 | 640k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 640k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 640k | _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 | 640k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 640k | _operator_profile->add_child(_common_profile, true); | 669 | 640k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 640k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 640k | _wait_for_finish_dependency_timer = | 673 | 640k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 640k | 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 | 640k | 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 | 640k | _rows_input_counter = | 704 | 640k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 640k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 640k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 640k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 640k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 640k | _memory_used_counter = | 710 | 640k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 640k | _common_profile->add_info_string("IsColocate", | 712 | 640k | std::to_string(_parent->is_colocated_operator())); | 713 | 640k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 640k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 640k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 640k | return Status::OK(); | 717 | 640k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 6.96k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 6.96k | _operator_profile = | 660 | 6.96k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 6.96k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 6.96k | _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 | 6.96k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 6.96k | _operator_profile->add_child(_common_profile, true); | 669 | 6.96k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 6.96k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 6.96k | _wait_for_finish_dependency_timer = | 673 | 6.96k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 6.96k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 6.96k | if constexpr (!is_fake_shared) { | 676 | 6.96k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 6.96k | 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 | 6.96k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 6.96k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 6.96k | _dependency = _shared_state->create_sink_dependency( | 693 | 6.96k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 6.96k | } | 695 | 6.96k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 6.96k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 6.96k | } | 698 | | | 699 | 6.96k | 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 | 6.96k | _rows_input_counter = | 704 | 6.96k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 6.96k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 6.96k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 6.96k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 6.96k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 6.96k | _memory_used_counter = | 710 | 6.96k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 6.96k | _common_profile->add_info_string("IsColocate", | 712 | 6.96k | std::to_string(_parent->is_colocated_operator())); | 713 | 6.96k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 6.96k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 6.96k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 6.96k | return Status::OK(); | 717 | 6.96k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 442 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 442 | _operator_profile = | 660 | 442 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 442 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 442 | _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 | 442 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 442 | _operator_profile->add_child(_common_profile, true); | 669 | 442 | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 442 | _operator_profile->set_metadata(_parent->node_id()); | 672 | 442 | _wait_for_finish_dependency_timer = | 673 | 442 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 442 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 442 | if constexpr (!is_fake_shared) { | 676 | 442 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 442 | 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 | 442 | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 442 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 442 | _dependency = _shared_state->create_sink_dependency( | 693 | 442 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 442 | } | 695 | 442 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 442 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 442 | } | 698 | | | 699 | 442 | 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 | 442 | _rows_input_counter = | 704 | 442 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 442 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 442 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 442 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 442 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 442 | _memory_used_counter = | 710 | 442 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 442 | _common_profile->add_info_string("IsColocate", | 712 | 442 | std::to_string(_parent->is_colocated_operator())); | 713 | 442 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 442 | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 442 | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 442 | return Status::OK(); | 717 | 442 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 4.15k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 4.15k | _operator_profile = | 660 | 4.15k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 4.15k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 4.15k | _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 | 4.15k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 4.15k | _operator_profile->add_child(_common_profile, true); | 669 | 4.15k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 4.15k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 4.15k | _wait_for_finish_dependency_timer = | 673 | 4.15k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 4.15k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 4.15k | if constexpr (!is_fake_shared) { | 676 | 4.15k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 4.15k | 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 | 4.15k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 4.15k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 4.15k | _dependency = _shared_state->create_sink_dependency( | 693 | 4.15k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 4.15k | } | 695 | 4.15k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 4.15k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 4.15k | } | 698 | | | 699 | 4.15k | 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 | 4.15k | _rows_input_counter = | 704 | 4.15k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 4.15k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 4.15k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 4.15k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 4.15k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 4.15k | _memory_used_counter = | 710 | 4.15k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 4.15k | _common_profile->add_info_string("IsColocate", | 712 | 4.15k | std::to_string(_parent->is_colocated_operator())); | 713 | 4.15k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 4.15k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 4.15k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 4.15k | return Status::OK(); | 717 | 4.15k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 12.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 12.0k | _operator_profile = | 660 | 12.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 12.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 12.0k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 663 | | | 664 | | // indentation is true | 665 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 666 | | // So we should set the indentation to true. | 667 | 12.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 12.0k | _operator_profile->add_child(_common_profile, true); | 669 | 12.0k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 12.0k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 12.0k | _wait_for_finish_dependency_timer = | 673 | 12.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 12.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 12.0k | if constexpr (!is_fake_shared) { | 676 | 12.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 12.0k | info.shared_state_map.end()) { | 678 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | | } | 681 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 0 | ? 0 | 684 | 0 | : info.task_idx] | 685 | 0 | .get(); | 686 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 12.0k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 12.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 12.0k | _dependency = _shared_state->create_sink_dependency( | 693 | 12.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 12.0k | } | 695 | 12.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 12.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 12.0k | } | 698 | | | 699 | 12.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 700 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 701 | 0 | } | 702 | | | 703 | 12.0k | _rows_input_counter = | 704 | 12.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 12.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 12.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 12.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 12.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 12.0k | _memory_used_counter = | 710 | 12.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 12.0k | _common_profile->add_info_string("IsColocate", | 712 | 12.0k | std::to_string(_parent->is_colocated_operator())); | 713 | 12.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 12.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 12.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 12.0k | return Status::OK(); | 717 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 293k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 293k | _operator_profile = | 660 | 293k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 293k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 293k | _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 | 293k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 293k | _operator_profile->add_child(_common_profile, true); | 669 | 293k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 293k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 293k | _wait_for_finish_dependency_timer = | 673 | 293k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 293k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 293k | if constexpr (!is_fake_shared) { | 676 | 293k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 293k | info.shared_state_map.end()) { | 678 | 293k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 679 | 293k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 680 | 293k | } | 681 | 293k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 682 | 293k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 683 | 293k | ? 0 | 684 | 293k | : info.task_idx] | 685 | 293k | .get(); | 686 | 293k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 687 | 293k | } else { | 688 | 45 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | 45 | DCHECK(false); | 690 | 45 | } | 691 | 45 | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 45 | _dependency = _shared_state->create_sink_dependency( | 693 | 45 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 45 | } | 695 | 293k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 293k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 293k | } | 698 | | | 699 | 293k | 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 | 293k | _rows_input_counter = | 704 | 293k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 293k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 293k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 293k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 293k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 293k | _memory_used_counter = | 710 | 293k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 293k | _common_profile->add_info_string("IsColocate", | 712 | 293k | std::to_string(_parent->is_colocated_operator())); | 713 | 293k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 293k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 293k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 293k | return Status::OK(); | 717 | 293k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 657 | 452k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 658 | | // create profile | 659 | 452k | _operator_profile = | 660 | 452k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 661 | 452k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 662 | 452k | _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 | 452k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 668 | 452k | _operator_profile->add_child(_common_profile, true); | 669 | 452k | _operator_profile->add_child(_custom_profile, true); | 670 | | | 671 | 452k | _operator_profile->set_metadata(_parent->node_id()); | 672 | 452k | _wait_for_finish_dependency_timer = | 673 | 452k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 674 | 452k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 675 | 452k | if constexpr (!is_fake_shared) { | 676 | 452k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 677 | 452k | 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 | 452k | } else { | 688 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 689 | | DCHECK(false); | 690 | | } | 691 | 452k | _shared_state = info.shared_state->template cast<SharedState>(); | 692 | 452k | _dependency = _shared_state->create_sink_dependency( | 693 | 452k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 694 | 452k | } | 695 | 452k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 696 | 452k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 697 | 452k | } | 698 | | | 699 | 452k | 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 | 452k | _rows_input_counter = | 704 | 452k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 705 | 452k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 706 | 452k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 707 | 452k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 708 | 452k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 709 | 452k | _memory_used_counter = | 710 | 452k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 711 | 452k | _common_profile->add_info_string("IsColocate", | 712 | 452k | std::to_string(_parent->is_colocated_operator())); | 713 | 452k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 714 | 452k | _common_profile->add_info_string("FollowedByShuffledOperator", | 715 | 452k | std::to_string(_parent->followed_by_shuffled_operator())); | 716 | 452k | return Status::OK(); | 717 | 452k | } |
_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 | 1.96M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
721 | 1.96M | if (_closed) { |
722 | 2 | return Status::OK(); |
723 | 2 | } |
724 | 1.96M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
725 | 1.32M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
726 | 1.32M | } |
727 | 1.96M | _closed = true; |
728 | 1.96M | return Status::OK(); |
729 | 1.96M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 124k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 124k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 124k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 124k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 124k | } | 727 | 124k | _closed = true; | 728 | 124k | return Status::OK(); | 729 | 124k | } |
_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 | 242k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 242k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 242k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 242k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 242k | } | 727 | 242k | _closed = true; | 728 | 242k | return Status::OK(); | 729 | 242k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 20 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 20 | if (_closed) { | 722 | 2 | return Status::OK(); | 723 | 2 | } | 724 | 18 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 18 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 18 | } | 727 | 18 | _closed = true; | 728 | 18 | return Status::OK(); | 729 | 20 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 11.4k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 11.4k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 11.4k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 11.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 11.4k | } | 727 | 11.4k | _closed = true; | 728 | 11.4k | return Status::OK(); | 729 | 11.4k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 8.01k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 8.01k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 8.01k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 8.01k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 8.01k | } | 727 | 8.01k | _closed = true; | 728 | 8.01k | return Status::OK(); | 729 | 8.01k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 160k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 160k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 160k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 160k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 160k | } | 727 | 160k | _closed = true; | 728 | 160k | return Status::OK(); | 729 | 160k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 291 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 291 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 291 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 291 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 291 | } | 727 | 291 | _closed = true; | 728 | 291 | return Status::OK(); | 729 | 291 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 179 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 179 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 179 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 179 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 179 | } | 727 | 179 | _closed = true; | 728 | 179 | return Status::OK(); | 729 | 179 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 641k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 641k | 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 | 641k | _closed = true; | 728 | 641k | return Status::OK(); | 729 | 641k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 6.99k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 6.99k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 6.99k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 6.99k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 6.99k | } | 727 | 6.99k | _closed = true; | 728 | 6.99k | return Status::OK(); | 729 | 6.99k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 336 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 336 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 336 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 336 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 336 | } | 727 | 336 | _closed = true; | 728 | 336 | return Status::OK(); | 729 | 336 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 4.17k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 4.17k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 4.17k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 4.17k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 4.17k | } | 727 | 4.17k | _closed = true; | 728 | 4.17k | return Status::OK(); | 729 | 4.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 12.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 12.0k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 12.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 12.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 12.0k | } | 727 | 12.0k | _closed = true; | 728 | 12.0k | return Status::OK(); | 729 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 294k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 294k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 294k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 294k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 294k | } | 727 | 294k | _closed = true; | 728 | 294k | return Status::OK(); | 729 | 294k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 455k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 455k | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 455k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 455k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 455k | } | 727 | 455k | _closed = true; | 728 | 455k | return Status::OK(); | 729 | 455k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 720 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 721 | 14 | if (_closed) { | 722 | 0 | return Status::OK(); | 723 | 0 | } | 724 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 725 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 726 | 14 | } | 727 | 14 | _closed = true; | 728 | 14 | return Status::OK(); | 729 | 14 | } |
_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 | 10.7k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
733 | 10.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
734 | 10.6k | return pull(state, block, eos); |
735 | 10.7k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 732 | 431 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 733 | 431 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 734 | 431 | return pull(state, block, eos); | 735 | 431 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 732 | 10.2k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 733 | 10.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 734 | 10.2k | return pull(state, block, eos); | 735 | 10.2k | } |
|
736 | | |
737 | | template <typename LocalStateType> |
738 | 678k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
739 | 678k | auto& local_state = get_local_state(state); |
740 | 678k | if (need_more_input_data(state)) { |
741 | 648k | local_state._child_block->clear_column_data( |
742 | 648k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
743 | 648k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
744 | 648k | state, local_state._child_block.get(), &local_state._child_eos)); |
745 | 648k | *eos = local_state._child_eos; |
746 | 648k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
747 | 104k | return Status::OK(); |
748 | 104k | } |
749 | 544k | { |
750 | 544k | SCOPED_TIMER(local_state.exec_time_counter()); |
751 | 544k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
752 | 544k | } |
753 | 544k | } |
754 | | |
755 | 574k | if (!need_more_input_data(state)) { |
756 | 520k | SCOPED_TIMER(local_state.exec_time_counter()); |
757 | 520k | bool new_eos = false; |
758 | 520k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
759 | 520k | if (new_eos) { |
760 | 444k | *eos = true; |
761 | 444k | } else if (!need_more_input_data(state)) { |
762 | 21.1k | *eos = false; |
763 | 21.1k | } |
764 | 520k | } |
765 | 574k | return Status::OK(); |
766 | 574k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 153k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 153k | auto& local_state = get_local_state(state); | 740 | 153k | if (need_more_input_data(state)) { | 741 | 135k | local_state._child_block->clear_column_data( | 742 | 135k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 135k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 135k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 135k | *eos = local_state._child_eos; | 746 | 135k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 47.4k | return Status::OK(); | 748 | 47.4k | } | 749 | 87.7k | { | 750 | 87.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 87.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 87.7k | } | 753 | 87.7k | } | 754 | | | 755 | 106k | if (!need_more_input_data(state)) { | 756 | 106k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 106k | bool new_eos = false; | 758 | 106k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 106k | if (new_eos) { | 760 | 52.1k | *eos = true; | 761 | 53.9k | } else if (!need_more_input_data(state)) { | 762 | 8.45k | *eos = false; | 763 | 8.45k | } | 764 | 106k | } | 765 | 106k | return Status::OK(); | 766 | 106k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 3.35k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 3.35k | auto& local_state = get_local_state(state); | 740 | 3.35k | if (need_more_input_data(state)) { | 741 | 1.99k | local_state._child_block->clear_column_data( | 742 | 1.99k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 1.99k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 1.99k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 1.99k | *eos = local_state._child_eos; | 746 | 1.99k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 542 | return Status::OK(); | 748 | 542 | } | 749 | 1.44k | { | 750 | 1.44k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 1.44k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 1.44k | } | 753 | 1.44k | } | 754 | | | 755 | 2.81k | if (!need_more_input_data(state)) { | 756 | 2.81k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 2.81k | bool new_eos = false; | 758 | 2.81k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 2.81k | if (new_eos) { | 760 | 1.12k | *eos = true; | 761 | 1.69k | } else if (!need_more_input_data(state)) { | 762 | 1.36k | *eos = false; | 763 | 1.36k | } | 764 | 2.81k | } | 765 | 2.81k | return Status::OK(); | 766 | 2.81k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 4.68k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 4.68k | auto& local_state = get_local_state(state); | 740 | 4.68k | if (need_more_input_data(state)) { | 741 | 4.68k | local_state._child_block->clear_column_data( | 742 | 4.68k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 4.68k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 4.68k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 4.68k | *eos = local_state._child_eos; | 746 | 4.68k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 1.54k | return Status::OK(); | 748 | 1.54k | } | 749 | 3.13k | { | 750 | 3.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 3.13k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 3.13k | } | 753 | 3.13k | } | 754 | | | 755 | 3.13k | if (!need_more_input_data(state)) { | 756 | 3.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 3.13k | bool new_eos = false; | 758 | 3.13k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 3.13k | if (new_eos) { | 760 | 1.58k | *eos = true; | 761 | 1.58k | } else if (!need_more_input_data(state)) { | 762 | 0 | *eos = false; | 763 | 0 | } | 764 | 3.13k | } | 765 | 3.13k | return Status::OK(); | 766 | 3.13k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 39.7k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 39.7k | auto& local_state = get_local_state(state); | 740 | 39.7k | if (need_more_input_data(state)) { | 741 | 39.7k | local_state._child_block->clear_column_data( | 742 | 39.7k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 39.7k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 39.7k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 39.7k | *eos = local_state._child_eos; | 746 | 39.7k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 5.23k | return Status::OK(); | 748 | 5.23k | } | 749 | 34.4k | { | 750 | 34.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 34.4k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 34.4k | } | 753 | 34.4k | } | 754 | | | 755 | 34.4k | if (!need_more_input_data(state)) { | 756 | 12.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 12.8k | bool new_eos = false; | 758 | 12.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 12.8k | if (new_eos) { | 760 | 12.7k | *eos = true; | 761 | 12.7k | } else if (!need_more_input_data(state)) { | 762 | 13 | *eos = false; | 763 | 13 | } | 764 | 12.8k | } | 765 | 34.4k | return Status::OK(); | 766 | 34.4k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 439k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 439k | auto& local_state = get_local_state(state); | 740 | 440k | if (need_more_input_data(state)) { | 741 | 440k | local_state._child_block->clear_column_data( | 742 | 440k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 440k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 440k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 440k | *eos = local_state._child_eos; | 746 | 440k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 46.5k | return Status::OK(); | 748 | 46.5k | } | 749 | 393k | { | 750 | 393k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 393k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 393k | } | 753 | 393k | } | 754 | | | 755 | 392k | if (!need_more_input_data(state)) { | 756 | 361k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 361k | bool new_eos = false; | 758 | 361k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 361k | if (new_eos) { | 760 | 360k | *eos = true; | 761 | 360k | } else if (!need_more_input_data(state)) { | 762 | 0 | *eos = false; | 763 | 0 | } | 764 | 361k | } | 765 | 392k | return Status::OK(); | 766 | 392k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 31.0k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 31.0k | auto& local_state = get_local_state(state); | 740 | 31.0k | if (need_more_input_data(state)) { | 741 | 20.0k | local_state._child_block->clear_column_data( | 742 | 20.0k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 20.0k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 20.0k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 20.0k | *eos = local_state._child_eos; | 746 | 20.0k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 2.35k | return Status::OK(); | 748 | 2.35k | } | 749 | 17.6k | { | 750 | 17.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 17.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 17.6k | } | 753 | 17.6k | } | 754 | | | 755 | 28.6k | if (!need_more_input_data(state)) { | 756 | 28.2k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 28.2k | bool new_eos = false; | 758 | 28.2k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 28.2k | if (new_eos) { | 760 | 11.4k | *eos = true; | 761 | 16.8k | } else if (!need_more_input_data(state)) { | 762 | 11.0k | *eos = false; | 763 | 11.0k | } | 764 | 28.2k | } | 765 | 28.6k | return Status::OK(); | 766 | 28.6k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 738 | 7.16k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 739 | 7.16k | auto& local_state = get_local_state(state); | 740 | 7.16k | if (need_more_input_data(state)) { | 741 | 6.80k | local_state._child_block->clear_column_data( | 742 | 6.80k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 743 | 6.80k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 744 | 6.80k | state, local_state._child_block.get(), &local_state._child_eos)); | 745 | 6.80k | *eos = local_state._child_eos; | 746 | 6.80k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 747 | 536 | return Status::OK(); | 748 | 536 | } | 749 | 6.27k | { | 750 | 6.27k | SCOPED_TIMER(local_state.exec_time_counter()); | 751 | 6.27k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 752 | 6.27k | } | 753 | 6.27k | } | 754 | | | 755 | 6.62k | if (!need_more_input_data(state)) { | 756 | 6.62k | SCOPED_TIMER(local_state.exec_time_counter()); | 757 | 6.62k | bool new_eos = false; | 758 | 6.62k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 759 | 6.62k | if (new_eos) { | 760 | 4.66k | *eos = true; | 761 | 4.66k | } else if (!need_more_input_data(state)) { | 762 | 366 | *eos = false; | 763 | 366 | } | 764 | 6.62k | } | 765 | 6.62k | return Status::OK(); | 766 | 6.62k | } |
|
767 | | |
768 | | template <typename Writer, typename Parent> |
769 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
770 | 63.4k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
771 | 63.4k | RETURN_IF_ERROR(Base::init(state, info)); |
772 | 63.4k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
773 | 63.4k | "AsyncWriterDependency", true); |
774 | 63.4k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
775 | 63.4k | _finish_dependency)); |
776 | | |
777 | 63.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
778 | 63.4k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
779 | 63.4k | return Status::OK(); |
780 | 63.4k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 520 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 520 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 520 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 520 | "AsyncWriterDependency", true); | 774 | 520 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 520 | _finish_dependency)); | 776 | | | 777 | 520 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 520 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 520 | return Status::OK(); | 780 | 520 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 88 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 88 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 88 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 88 | "AsyncWriterDependency", true); | 774 | 88 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 88 | _finish_dependency)); | 776 | | | 777 | 88 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 88 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 88 | return Status::OK(); | 780 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 44.3k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 44.3k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 44.3k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 44.3k | "AsyncWriterDependency", true); | 774 | 44.3k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 44.3k | _finish_dependency)); | 776 | | | 777 | 44.3k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 44.3k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 44.3k | return Status::OK(); | 780 | 44.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 8.96k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 8.96k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 8.96k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 8.96k | "AsyncWriterDependency", true); | 774 | 8.96k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 8.96k | _finish_dependency)); | 776 | | | 777 | 8.96k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 8.96k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 8.96k | return Status::OK(); | 780 | 8.96k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 5.15k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 5.15k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 5.15k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 5.15k | "AsyncWriterDependency", true); | 774 | 5.15k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 5.15k | _finish_dependency)); | 776 | | | 777 | 5.15k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 5.15k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 5.15k | return Status::OK(); | 780 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 3.38k | "AsyncWriterDependency", true); | 774 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 3.38k | _finish_dependency)); | 776 | | | 777 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 3.38k | return Status::OK(); | 780 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 160 | "AsyncWriterDependency", true); | 774 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 160 | _finish_dependency)); | 776 | | | 777 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 160 | return Status::OK(); | 780 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 640 | "AsyncWriterDependency", true); | 774 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 640 | _finish_dependency)); | 776 | | | 777 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 640 | return Status::OK(); | 780 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 770 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 771 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 772 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 773 | 156 | "AsyncWriterDependency", true); | 774 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 775 | 156 | _finish_dependency)); | 776 | | | 777 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 778 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 779 | 156 | return Status::OK(); | 780 | 156 | } |
|
781 | | |
782 | | template <typename Writer, typename Parent> |
783 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
784 | 63.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
785 | 63.6k | RETURN_IF_ERROR(Base::open(state)); |
786 | 63.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
787 | 575k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
788 | 511k | RETURN_IF_ERROR( |
789 | 511k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
790 | 511k | } |
791 | 63.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
792 | 63.6k | return Status::OK(); |
793 | 63.6k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 520 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 520 | RETURN_IF_ERROR(Base::open(state)); | 786 | 520 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 2.78k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 2.26k | RETURN_IF_ERROR( | 789 | 2.26k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 2.26k | } | 791 | 520 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 520 | return Status::OK(); | 793 | 520 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 88 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 88 | RETURN_IF_ERROR(Base::open(state)); | 786 | 88 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 412 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 324 | RETURN_IF_ERROR( | 789 | 324 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 324 | } | 791 | 88 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 88 | return Status::OK(); | 793 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 44.6k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 44.6k | RETURN_IF_ERROR(Base::open(state)); | 786 | 44.6k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 333k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 288k | RETURN_IF_ERROR( | 789 | 288k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 288k | } | 791 | 44.6k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 44.6k | return Status::OK(); | 793 | 44.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 8.91k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 8.91k | RETURN_IF_ERROR(Base::open(state)); | 786 | 8.91k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 54.9k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 46.0k | RETURN_IF_ERROR( | 789 | 46.0k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 46.0k | } | 791 | 8.91k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 8.91k | return Status::OK(); | 793 | 8.91k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 5.14k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 5.14k | RETURN_IF_ERROR(Base::open(state)); | 786 | 5.14k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 135k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 130k | RETURN_IF_ERROR( | 789 | 130k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 130k | } | 791 | 5.14k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 5.14k | return Status::OK(); | 793 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 786 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 42.2k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 38.8k | RETURN_IF_ERROR( | 789 | 38.8k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 38.8k | } | 791 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 3.38k | return Status::OK(); | 793 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 160 | RETURN_IF_ERROR(Base::open(state)); | 786 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 478 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 318 | RETURN_IF_ERROR( | 789 | 318 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 318 | } | 791 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 160 | return Status::OK(); | 793 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 640 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 640 | RETURN_IF_ERROR(Base::open(state)); | 786 | 640 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 4.39k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 3.75k | RETURN_IF_ERROR( | 789 | 3.75k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 3.75k | } | 791 | 640 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 640 | return Status::OK(); | 793 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 784 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 785 | 156 | RETURN_IF_ERROR(Base::open(state)); | 786 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 787 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 788 | 630 | RETURN_IF_ERROR( | 789 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 790 | 630 | } | 791 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 792 | 156 | return Status::OK(); | 793 | 156 | } |
|
794 | | |
795 | | template <typename Writer, typename Parent> |
796 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
797 | 86.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
798 | 86.3k | return _writer->sink(block, eos); |
799 | 86.3k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 2.04k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 2.04k | return _writer->sink(block, eos); | 799 | 2.04k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 112 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 112 | return _writer->sink(block, eos); | 799 | 112 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 59.6k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 59.6k | return _writer->sink(block, eos); | 799 | 59.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 10.3k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 10.3k | return _writer->sink(block, eos); | 799 | 10.3k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 7.50k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 7.50k | return _writer->sink(block, eos); | 799 | 7.50k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 5.33k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 5.33k | return _writer->sink(block, eos); | 799 | 5.33k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 180 | return _writer->sink(block, eos); | 799 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 792 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 792 | return _writer->sink(block, eos); | 799 | 792 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 797 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 798 | 310 | return _writer->sink(block, eos); | 799 | 310 | } |
|
800 | | |
801 | | template <typename Writer, typename Parent> |
802 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
803 | 63.7k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
804 | 63.7k | if (_closed) { |
805 | 0 | return Status::OK(); |
806 | 0 | } |
807 | 63.7k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
808 | 63.7k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
809 | | // if the init failed, the _writer may be nullptr. so here need check |
810 | 63.7k | if (_writer) { |
811 | 63.7k | Status st = _writer->get_writer_status(); |
812 | 63.7k | if (exec_status.ok()) { |
813 | 63.5k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
814 | 63.5k | : Status::Cancelled("force close")); |
815 | 63.5k | } else { |
816 | 177 | _writer->force_close(exec_status); |
817 | 177 | } |
818 | | // If there is an error in process_block thread, then we should get the writer |
819 | | // status before call force_close. For example, the thread may failed in commit |
820 | | // transaction. |
821 | 63.7k | RETURN_IF_ERROR(st); |
822 | 63.7k | } |
823 | 63.6k | return Base::close(state, exec_status); |
824 | 63.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 508 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 508 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 508 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 508 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 508 | if (_writer) { | 811 | 508 | Status st = _writer->get_writer_status(); | 812 | 508 | if (exec_status.ok()) { | 813 | 508 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 508 | : Status::Cancelled("force close")); | 815 | 508 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 508 | RETURN_IF_ERROR(st); | 822 | 508 | } | 823 | 508 | return Base::close(state, exec_status); | 824 | 508 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 88 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 88 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 88 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 88 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 88 | if (_writer) { | 811 | 88 | Status st = _writer->get_writer_status(); | 812 | 88 | if (exec_status.ok()) { | 813 | 88 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 88 | : Status::Cancelled("force close")); | 815 | 88 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 88 | RETURN_IF_ERROR(st); | 822 | 88 | } | 823 | 80 | return Base::close(state, exec_status); | 824 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 44.6k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 44.6k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 44.6k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 44.6k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 44.6k | if (_writer) { | 811 | 44.6k | Status st = _writer->get_writer_status(); | 812 | 44.6k | if (exec_status.ok()) { | 813 | 44.5k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 44.5k | : Status::Cancelled("force close")); | 815 | 44.5k | } else { | 816 | 95 | _writer->force_close(exec_status); | 817 | 95 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 44.6k | RETURN_IF_ERROR(st); | 822 | 44.6k | } | 823 | 44.6k | return Base::close(state, exec_status); | 824 | 44.6k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 8.94k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 8.94k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 8.94k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 8.94k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 8.95k | if (_writer) { | 811 | 8.95k | Status st = _writer->get_writer_status(); | 812 | 8.95k | if (exec_status.ok()) { | 813 | 8.87k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 8.87k | : Status::Cancelled("force close")); | 815 | 8.87k | } else { | 816 | 80 | _writer->force_close(exec_status); | 817 | 80 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 8.95k | RETURN_IF_ERROR(st); | 822 | 8.95k | } | 823 | 8.94k | return Base::close(state, exec_status); | 824 | 8.94k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 5.15k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 5.15k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 5.15k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 5.15k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 5.15k | if (_writer) { | 811 | 5.15k | Status st = _writer->get_writer_status(); | 812 | 5.15k | if (exec_status.ok()) { | 813 | 5.15k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 5.15k | : Status::Cancelled("force close")); | 815 | 5.15k | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 5.15k | RETURN_IF_ERROR(st); | 822 | 5.15k | } | 823 | 5.15k | return Base::close(state, exec_status); | 824 | 5.15k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 3.38k | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 3.38k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 3.38k | if (_writer) { | 811 | 3.38k | Status st = _writer->get_writer_status(); | 812 | 3.38k | if (exec_status.ok()) { | 813 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 3.38k | : Status::Cancelled("force close")); | 815 | 3.38k | } else { | 816 | 2 | _writer->force_close(exec_status); | 817 | 2 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 3.38k | RETURN_IF_ERROR(st); | 822 | 3.38k | } | 823 | 3.38k | return Base::close(state, exec_status); | 824 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 160 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 160 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 160 | if (_writer) { | 811 | 160 | Status st = _writer->get_writer_status(); | 812 | 160 | if (exec_status.ok()) { | 813 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 160 | : Status::Cancelled("force close")); | 815 | 160 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 160 | RETURN_IF_ERROR(st); | 822 | 160 | } | 823 | 160 | return Base::close(state, exec_status); | 824 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 640 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 640 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 640 | if (_writer) { | 811 | 640 | Status st = _writer->get_writer_status(); | 812 | 640 | if (exec_status.ok()) { | 813 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 640 | : Status::Cancelled("force close")); | 815 | 640 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 640 | RETURN_IF_ERROR(st); | 822 | 640 | } | 823 | 640 | return Base::close(state, exec_status); | 824 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 803 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 804 | 156 | if (_closed) { | 805 | 0 | return Status::OK(); | 806 | 0 | } | 807 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 808 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 809 | | // if the init failed, the _writer may be nullptr. so here need check | 810 | 156 | if (_writer) { | 811 | 156 | Status st = _writer->get_writer_status(); | 812 | 156 | if (exec_status.ok()) { | 813 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 814 | 156 | : Status::Cancelled("force close")); | 815 | 156 | } else { | 816 | 0 | _writer->force_close(exec_status); | 817 | 0 | } | 818 | | // If there is an error in process_block thread, then we should get the writer | 819 | | // status before call force_close. For example, the thread may failed in commit | 820 | | // transaction. | 821 | 156 | RETURN_IF_ERROR(st); | 822 | 156 | } | 823 | 156 | return Base::close(state, exec_status); | 824 | 156 | } |
|
825 | | |
826 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
827 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
828 | | DECLARE_OPERATOR(ResultSinkLocalState) |
829 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
830 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
831 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
832 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
833 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
834 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
835 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
836 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
837 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
838 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
839 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
840 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
841 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
842 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
843 | | DECLARE_OPERATOR(SortSinkLocalState) |
844 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
845 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
846 | | DECLARE_OPERATOR(AggSinkLocalState) |
847 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
848 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
849 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
850 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
851 | | DECLARE_OPERATOR(UnionSinkLocalState) |
852 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
853 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
854 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
855 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
856 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
857 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
858 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
859 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
860 | | DECLARE_OPERATOR(CacheSinkLocalState) |
861 | | DECLARE_OPERATOR(DictSinkLocalState) |
862 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
863 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
864 | | |
865 | | #undef DECLARE_OPERATOR |
866 | | |
867 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
868 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
869 | | DECLARE_OPERATOR(OlapScanLocalState) |
870 | | DECLARE_OPERATOR(GroupCommitLocalState) |
871 | | DECLARE_OPERATOR(JDBCScanLocalState) |
872 | | DECLARE_OPERATOR(FileScanLocalState) |
873 | | DECLARE_OPERATOR(AnalyticLocalState) |
874 | | DECLARE_OPERATOR(SortLocalState) |
875 | | DECLARE_OPERATOR(SpillSortLocalState) |
876 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
877 | | DECLARE_OPERATOR(AggLocalState) |
878 | | DECLARE_OPERATOR(BucketedAggLocalState) |
879 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
880 | | DECLARE_OPERATOR(TableFunctionLocalState) |
881 | | DECLARE_OPERATOR(ExchangeLocalState) |
882 | | DECLARE_OPERATOR(RepeatLocalState) |
883 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
884 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
885 | | DECLARE_OPERATOR(EmptySetLocalState) |
886 | | DECLARE_OPERATOR(UnionSourceLocalState) |
887 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
888 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
889 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
890 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
891 | | DECLARE_OPERATOR(DataGenLocalState) |
892 | | DECLARE_OPERATOR(SchemaScanLocalState) |
893 | | DECLARE_OPERATOR(MetaScanLocalState) |
894 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
895 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
896 | | DECLARE_OPERATOR(CacheSourceLocalState) |
897 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
898 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
899 | | |
900 | | #ifdef BE_TEST |
901 | | DECLARE_OPERATOR(MockLocalState) |
902 | | DECLARE_OPERATOR(MockScanLocalState) |
903 | | #endif |
904 | | #undef DECLARE_OPERATOR |
905 | | |
906 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
907 | | template class StreamingOperatorX<SelectLocalState>; |
908 | | |
909 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
910 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
911 | | template class StatefulOperatorX<RepeatLocalState>; |
912 | | template class StatefulOperatorX<MaterializationLocalState>; |
913 | | template class StatefulOperatorX<StreamingAggLocalState>; |
914 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
915 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
916 | | template class StatefulOperatorX<TableFunctionLocalState>; |
917 | | |
918 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
919 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
920 | | template class PipelineXSinkLocalState<SortSharedState>; |
921 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
922 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
923 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
924 | | template class PipelineXSinkLocalState<AggSharedState>; |
925 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
926 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
927 | | template class PipelineXSinkLocalState<FakeSharedState>; |
928 | | template class PipelineXSinkLocalState<UnionSharedState>; |
929 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
930 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
931 | | template class PipelineXSinkLocalState<SetSharedState>; |
932 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
933 | | template class PipelineXSinkLocalState<BasicSharedState>; |
934 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
935 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
936 | | |
937 | | template class PipelineXLocalState<HashJoinSharedState>; |
938 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
939 | | template class PipelineXLocalState<SortSharedState>; |
940 | | template class PipelineXLocalState<SpillSortSharedState>; |
941 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
942 | | template class PipelineXLocalState<AnalyticSharedState>; |
943 | | template class PipelineXLocalState<AggSharedState>; |
944 | | template class PipelineXLocalState<BucketedAggSharedState>; |
945 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
946 | | template class PipelineXLocalState<FakeSharedState>; |
947 | | template class PipelineXLocalState<UnionSharedState>; |
948 | | template class PipelineXLocalState<DataQueueSharedState>; |
949 | | template class PipelineXLocalState<MultiCastSharedState>; |
950 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
951 | | template class PipelineXLocalState<SetSharedState>; |
952 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
953 | | template class PipelineXLocalState<BasicSharedState>; |
954 | | template class PipelineXLocalState<RecCTESharedState>; |
955 | | |
956 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
957 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
958 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
959 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
960 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
961 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
962 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
963 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
964 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
965 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
966 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
967 | | |
968 | | #ifdef BE_TEST |
969 | | template class OperatorX<DummyOperatorLocalState>; |
970 | | template class DataSinkOperatorX<DummySinkLocalState>; |
971 | | #endif |
972 | | |
973 | | } // namespace doris |