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.23M | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { |
119 | 2.23M | if (_parent->nereids_id() == -1) { |
120 | 1.14M | return fmt::format("(id={})", _parent->node_id()); |
121 | 1.14M | } else { |
122 | 1.08M | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
123 | 1.08M | } |
124 | 2.23M | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 65.3k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 65.3k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 65.3k | } else { | 122 | 65.3k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 65.3k | } | 124 | 65.3k | } |
_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 | 267k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 267k | if (_parent->nereids_id() == -1) { | 120 | 12 | return fmt::format("(id={})", _parent->node_id()); | 121 | 267k | } else { | 122 | 267k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 267k | } | 124 | 267k | } |
_ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 23 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 23 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 23 | } else { | 122 | 23 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 23 | } | 124 | 23 | } |
_ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 30.5k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 30.5k | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 30.5k | } else { | 122 | 30.5k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 30.5k | } | 124 | 30.5k | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 9.82k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 9.82k | if (_parent->nereids_id() == -1) { | 120 | 9 | return fmt::format("(id={})", _parent->node_id()); | 121 | 9.81k | } else { | 122 | 9.81k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 9.81k | } | 124 | 9.82k | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 194k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 194k | if (_parent->nereids_id() == -1) { | 120 | 29 | return fmt::format("(id={})", _parent->node_id()); | 121 | 193k | } else { | 122 | 193k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 193k | } | 124 | 194k | } |
_ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 488 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 488 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 488 | } else { | 122 | 488 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 488 | } | 124 | 488 | } |
_ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 132 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 132 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 132 | } else { | 122 | 132 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 132 | } | 124 | 132 | } |
_ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 885k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 885k | if (_parent->nereids_id() == -1) { | 120 | 432k | return fmt::format("(id={})", _parent->node_id()); | 121 | 452k | } else { | 122 | 452k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 452k | } | 124 | 885k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 54.8k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 54.8k | if (_parent->nereids_id() == -1) { | 120 | 2 | return fmt::format("(id={})", _parent->node_id()); | 121 | 54.8k | } else { | 122 | 54.8k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 54.8k | } | 124 | 54.8k | } |
_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 | 41.2k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 41.2k | if (_parent->nereids_id() == -1) { | 120 | 41.2k | return fmt::format("(id={})", _parent->node_id()); | 121 | 41.2k | } else { | 122 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 0 | } | 124 | 41.2k | } |
_ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 473 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 473 | if (_parent->nereids_id() == -1) { | 120 | 102 | return fmt::format("(id={})", _parent->node_id()); | 121 | 371 | } else { | 122 | 371 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 371 | } | 124 | 473 | } |
_ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 4.86k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 4.86k | if (_parent->nereids_id() == -1) { | 120 | 13 | return fmt::format("(id={})", _parent->node_id()); | 121 | 4.85k | } else { | 122 | 4.85k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 4.85k | } | 124 | 4.86k | } |
_ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 675k | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 675k | if (_parent->nereids_id() == -1) { | 120 | 675k | return fmt::format("(id={})", _parent->node_id()); | 121 | 675k | } else { | 122 | 195 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 195 | } | 124 | 675k | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 118 | 134 | std::string PipelineXLocalState<SharedStateArg>::name_suffix() const { | 119 | 134 | if (_parent->nereids_id() == -1) { | 120 | 0 | return fmt::format("(id={})", _parent->node_id()); | 121 | 134 | } else { | 122 | 134 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 123 | 134 | } | 124 | 134 | } |
|
125 | | |
126 | | template <typename SharedStateArg> |
127 | 1.34M | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { |
128 | 1.34M | if (_parent->nereids_id() == -1) { |
129 | 724k | return fmt::format("(id={})", _parent->node_id()); |
130 | 724k | } else { |
131 | 624k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); |
132 | 624k | } |
133 | 1.34M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 113k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 113k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 113k | } else { | 131 | 113k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 113k | } | 133 | 113k | } |
_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 | 268k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 268k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 268k | } else { | 131 | 268k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 268k | } | 133 | 268k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 29 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 29 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 29 | } else { | 131 | 29 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 29 | } | 133 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 30.6k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 30.6k | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 30.6k | } else { | 131 | 30.6k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 30.6k | } | 133 | 30.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 9.84k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 9.84k | if (_parent->nereids_id() == -1) { | 129 | 9 | return fmt::format("(id={})", _parent->node_id()); | 130 | 9.84k | } else { | 131 | 9.84k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 9.84k | } | 133 | 9.84k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 194k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 194k | if (_parent->nereids_id() == -1) { | 129 | 29 | return fmt::format("(id={})", _parent->node_id()); | 130 | 194k | } else { | 131 | 194k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 194k | } | 133 | 194k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 428 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 428 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 428 | } else { | 131 | 428 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 428 | } | 133 | 428 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 142 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 142 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 142 | } else { | 131 | 142 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 142 | } | 133 | 142 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 131 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 131 | if (_parent->nereids_id() == -1) { | 129 | 131 | return fmt::format("(id={})", _parent->node_id()); | 130 | 131 | } else { | 131 | 0 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 0 | } | 133 | 131 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 6.17k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 6.17k | if (_parent->nereids_id() == -1) { | 129 | 3 | return fmt::format("(id={})", _parent->node_id()); | 130 | 6.17k | } else { | 131 | 6.17k | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 6.17k | } | 133 | 6.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 473 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 473 | if (_parent->nereids_id() == -1) { | 129 | 102 | return fmt::format("(id={})", _parent->node_id()); | 130 | 371 | } else { | 131 | 371 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 371 | } | 133 | 473 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE11name_suffixB5cxx11Ev _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 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 | 15 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 15 | } | 133 | 12.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 240k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 240k | if (_parent->nereids_id() == -1) { | 129 | 240k | return fmt::format("(id={})", _parent->node_id()); | 130 | 240k | } else { | 131 | 33 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 33 | } | 133 | 240k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE11name_suffixB5cxx11Ev Line | Count | Source | 127 | 471k | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 471k | if (_parent->nereids_id() == -1) { | 129 | 470k | return fmt::format("(id={})", _parent->node_id()); | 130 | 470k | } else { | 131 | 325 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 325 | } | 133 | 471k | } |
_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 | 268 | std::string PipelineXSinkLocalState<SharedStateArg>::name_suffix() { | 128 | 268 | if (_parent->nereids_id() == -1) { | 129 | 0 | return fmt::format("(id={})", _parent->node_id()); | 130 | 268 | } else { | 131 | 268 | return fmt::format("(nereids_id={}, id={})", _parent->nereids_id(), _parent->node_id()); | 132 | 268 | } | 133 | 268 | } |
|
134 | | |
135 | | template <typename SharedStateArg> |
136 | 32.3k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
137 | 32.3k | if (_terminated) { |
138 | 0 | return Status::OK(); |
139 | 0 | } |
140 | 32.3k | _terminated = true; |
141 | 32.3k | return Status::OK(); |
142 | 32.3k | } _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 | 865 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 865 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 865 | _terminated = true; | 141 | 865 | return Status::OK(); | 142 | 865 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 7 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 7 | _terminated = true; | 141 | 7 | return Status::OK(); | 142 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 7 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 7 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 7 | _terminated = true; | 141 | 7 | return Status::OK(); | 142 | 7 | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 3.68k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 3.68k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 3.68k | _terminated = true; | 141 | 3.68k | return Status::OK(); | 142 | 3.68k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2 | _terminated = true; | 141 | 2 | return Status::OK(); | 142 | 2 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 816 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 816 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 816 | _terminated = true; | 141 | 816 | return Status::OK(); | 142 | 816 | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 22 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 22 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 22 | _terminated = true; | 141 | 22 | return Status::OK(); | 142 | 22 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 2.59k | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 2.59k | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 2.59k | _terminated = true; | 141 | 2.59k | return Status::OK(); | 142 | 2.59k | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 203 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 203 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 203 | _terminated = true; | 141 | 203 | return Status::OK(); | 142 | 203 | } |
Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 136 | 124 | Status PipelineXSinkLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 137 | 124 | if (_terminated) { | 138 | 0 | return Status::OK(); | 139 | 0 | } | 140 | 124 | _terminated = true; | 141 | 124 | return Status::OK(); | 142 | 124 | } |
|
143 | | |
144 | 1.13M | DataDistribution OperatorBase::required_data_distribution(RuntimeState* /*state*/) const { |
145 | 1.13M | return _child && _child->is_serial_operator() && !is_source() |
146 | 1.13M | ? DataDistribution(ExchangeType::PASSTHROUGH) |
147 | 1.13M | : DataDistribution(ExchangeType::NOOP); |
148 | 1.13M | } |
149 | | |
150 | 81.6k | const RowDescriptor& OperatorBase::row_desc() const { |
151 | 81.6k | return _child->row_desc(); |
152 | 81.6k | } |
153 | | |
154 | | template <typename SharedStateArg> |
155 | 20.7k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
156 | 20.7k | fmt::memory_buffer debug_string_buffer; |
157 | 20.7k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
158 | 20.7k | return fmt::to_string(debug_string_buffer); |
159 | 20.7k | } _ZNK5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 76 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 76 | fmt::memory_buffer debug_string_buffer; | 157 | 76 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 76 | return fmt::to_string(debug_string_buffer); | 159 | 76 | } |
_ZNK5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 3 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 3 | fmt::memory_buffer debug_string_buffer; | 157 | 3 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 3 | return fmt::to_string(debug_string_buffer); | 159 | 3 | } |
_ZNK5doris19PipelineXLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 51 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 51 | fmt::memory_buffer debug_string_buffer; | 157 | 51 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 51 | return fmt::to_string(debug_string_buffer); | 159 | 51 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 14 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 14 | fmt::memory_buffer debug_string_buffer; | 157 | 14 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 14 | return fmt::to_string(debug_string_buffer); | 159 | 14 | } |
_ZNK5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 16 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 16 | fmt::memory_buffer debug_string_buffer; | 157 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 16 | return fmt::to_string(debug_string_buffer); | 159 | 16 | } |
_ZNK5doris19PipelineXLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 16 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 16 | fmt::memory_buffer debug_string_buffer; | 157 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 16 | return fmt::to_string(debug_string_buffer); | 159 | 16 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 20.4k | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 20.4k | fmt::memory_buffer debug_string_buffer; | 157 | 20.4k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 20.4k | return fmt::to_string(debug_string_buffer); | 159 | 20.4k | } |
_ZNK5doris19PipelineXLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 1 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 1 | fmt::memory_buffer debug_string_buffer; | 157 | 1 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 1 | return fmt::to_string(debug_string_buffer); | 159 | 1 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 18 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 18 | fmt::memory_buffer debug_string_buffer; | 157 | 18 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 18 | return fmt::to_string(debug_string_buffer); | 159 | 18 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 64 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 64 | fmt::memory_buffer debug_string_buffer; | 157 | 64 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 64 | return fmt::to_string(debug_string_buffer); | 159 | 64 | } |
Unexecuted instantiation: _ZNK5doris19PipelineXLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris19PipelineXLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 155 | 20 | std::string PipelineXLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 156 | 20 | fmt::memory_buffer debug_string_buffer; | 157 | 20 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 158 | 20 | return fmt::to_string(debug_string_buffer); | 159 | 20 | } |
|
160 | | |
161 | | template <typename SharedStateArg> |
162 | 20.6k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { |
163 | 20.6k | fmt::memory_buffer debug_string_buffer; |
164 | 20.6k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); |
165 | 20.6k | return fmt::to_string(debug_string_buffer); |
166 | 20.6k | } _ZNK5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 8 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 8 | fmt::memory_buffer debug_string_buffer; | 164 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 8 | return fmt::to_string(debug_string_buffer); | 166 | 8 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 48 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 48 | fmt::memory_buffer debug_string_buffer; | 164 | 48 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 48 | return fmt::to_string(debug_string_buffer); | 166 | 48 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 8 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 8 | fmt::memory_buffer debug_string_buffer; | 164 | 8 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 8 | return fmt::to_string(debug_string_buffer); | 166 | 8 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 17 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 17 | fmt::memory_buffer debug_string_buffer; | 164 | 17 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 17 | return fmt::to_string(debug_string_buffer); | 166 | 17 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 16 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 16 | fmt::memory_buffer debug_string_buffer; | 164 | 16 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 16 | return fmt::to_string(debug_string_buffer); | 166 | 16 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 76 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 76 | fmt::memory_buffer debug_string_buffer; | 164 | 76 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 76 | return fmt::to_string(debug_string_buffer); | 166 | 76 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 20 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 20 | fmt::memory_buffer debug_string_buffer; | 164 | 20 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 20 | return fmt::to_string(debug_string_buffer); | 166 | 20 | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE12debug_stringB5cxx11Ei Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 48 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 48 | fmt::memory_buffer debug_string_buffer; | 164 | 48 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 48 | return fmt::to_string(debug_string_buffer); | 166 | 48 | } |
_ZNK5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 20.3k | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 20.3k | fmt::memory_buffer debug_string_buffer; | 164 | 20.3k | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 20.3k | return fmt::to_string(debug_string_buffer); | 166 | 20.3k | } |
Unexecuted instantiation: _ZNK5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE12debug_stringB5cxx11Ei _ZNK5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE12debug_stringB5cxx11Ei Line | Count | Source | 162 | 20 | std::string PipelineXSinkLocalState<SharedStateArg>::debug_string(int indentation_level) const { | 163 | 20 | fmt::memory_buffer debug_string_buffer; | 164 | 20 | fmt::format_to(debug_string_buffer, "{}", _parent->debug_string(indentation_level)); | 165 | 20 | return fmt::to_string(debug_string_buffer); | 166 | 20 | } |
|
167 | | |
168 | 20.8k | std::string OperatorXBase::debug_string(int indentation_level) const { |
169 | 20.8k | fmt::memory_buffer debug_string_buffer; |
170 | 20.8k | fmt::format_to(debug_string_buffer, "{}{}: id={}, parallel_tasks={}, _is_serial_operator={}", |
171 | 20.8k | std::string(indentation_level * 2, ' '), _op_name, node_id(), _parallel_tasks, |
172 | 20.8k | _is_serial_operator); |
173 | 20.8k | return fmt::to_string(debug_string_buffer); |
174 | 20.8k | } |
175 | | |
176 | 20.7k | std::string OperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
177 | 20.7k | return state->get_local_state(operator_id())->debug_string(indentation_level); |
178 | 20.7k | } |
179 | | |
180 | 886k | Status OperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
181 | 886k | std::string node_name = print_plan_node_type(tnode.node_type); |
182 | 886k | _nereids_id = tnode.nereids_id; |
183 | 886k | if (!tnode.intermediate_output_tuple_id_list.empty()) { |
184 | 5.71k | if (!tnode.__isset.output_tuple_id) { |
185 | 0 | return Status::InternalError("no final output tuple id"); |
186 | 0 | } |
187 | 5.71k | if (tnode.intermediate_output_tuple_id_list.size() != |
188 | 5.71k | tnode.intermediate_projections_list.size()) { |
189 | 0 | return Status::InternalError( |
190 | 0 | "intermediate_output_tuple_id_list size:{} not match " |
191 | 0 | "intermediate_projections_list size:{}", |
192 | 0 | tnode.intermediate_output_tuple_id_list.size(), |
193 | 0 | tnode.intermediate_projections_list.size()); |
194 | 0 | } |
195 | 5.71k | } |
196 | 886k | auto substr = node_name.substr(0, node_name.find("_NODE")); |
197 | 886k | _op_name = substr + "_OPERATOR"; |
198 | | |
199 | 886k | if (tnode.__isset.vconjunct) { |
200 | 0 | return Status::InternalError("vconjunct is not supported yet"); |
201 | 886k | } else if (tnode.__isset.conjuncts) { |
202 | 439k | for (const auto& conjunct : tnode.conjuncts) { |
203 | 439k | VExprContextSPtr context; |
204 | 439k | RETURN_IF_ERROR(VExpr::create_expr_tree(conjunct, context)); |
205 | 439k | _conjuncts.emplace_back(context); |
206 | 439k | } |
207 | 141k | } |
208 | | |
209 | | // create the projections expr |
210 | 886k | if (tnode.__isset.projections) { |
211 | 352k | DCHECK(tnode.__isset.output_tuple_id); |
212 | 352k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode.projections, _projections)); |
213 | 352k | } |
214 | 886k | if (!tnode.intermediate_projections_list.empty()) { |
215 | 5.71k | DCHECK(tnode.__isset.projections) << "no final projections"; |
216 | 5.71k | _intermediate_projections.reserve(tnode.intermediate_projections_list.size()); |
217 | 17.5k | for (const auto& tnode_projections : tnode.intermediate_projections_list) { |
218 | 17.5k | VExprContextSPtrs projections; |
219 | 17.5k | RETURN_IF_ERROR(VExpr::create_expr_trees(tnode_projections, projections)); |
220 | 17.5k | _intermediate_projections.push_back(projections); |
221 | 17.5k | } |
222 | 5.71k | } |
223 | 886k | return Status::OK(); |
224 | 886k | } |
225 | | |
226 | 950k | Status OperatorXBase::prepare(RuntimeState* state) { |
227 | 950k | for (auto& conjunct : _conjuncts) { |
228 | 439k | RETURN_IF_ERROR(conjunct->prepare(state, intermediate_row_desc())); |
229 | 439k | } |
230 | 950k | if (state->enable_adjust_conjunct_order_by_cost()) { |
231 | 899k | std::ranges::sort(_conjuncts, [](const auto& a, const auto& b) { |
232 | 594k | return a->execute_cost() < b->execute_cost(); |
233 | 594k | }); |
234 | 899k | }; |
235 | | |
236 | 967k | for (int i = 0; i < _intermediate_projections.size(); i++) { |
237 | 17.5k | RETURN_IF_ERROR( |
238 | 17.5k | VExpr::prepare(_intermediate_projections[i], state, intermediate_row_desc(i))); |
239 | 17.5k | } |
240 | 950k | RETURN_IF_ERROR(VExpr::prepare(_projections, state, projections_row_desc())); |
241 | | |
242 | 950k | if (has_output_row_desc()) { |
243 | 352k | RETURN_IF_ERROR(VExpr::check_expr_output_type(_projections, *_output_row_descriptor)); |
244 | 352k | } |
245 | | |
246 | 950k | for (auto& conjunct : _conjuncts) { |
247 | 438k | RETURN_IF_ERROR(conjunct->open(state)); |
248 | 438k | } |
249 | 950k | RETURN_IF_ERROR(VExpr::open(_projections, state)); |
250 | 950k | for (auto& projections : _intermediate_projections) { |
251 | 17.5k | RETURN_IF_ERROR(VExpr::open(projections, state)); |
252 | 17.5k | } |
253 | 950k | if (_child && !is_source()) { |
254 | 176k | RETURN_IF_ERROR(_child->prepare(state)); |
255 | 176k | } |
256 | | |
257 | 950k | if (VExpr::contains_blockable_function(_conjuncts) || |
258 | 950k | VExpr::contains_blockable_function(_projections)) { |
259 | 0 | _blockable = true; |
260 | 0 | } |
261 | | |
262 | 950k | return Status::OK(); |
263 | 950k | } |
264 | | |
265 | 11.7k | Status OperatorXBase::terminate(RuntimeState* state) { |
266 | 11.7k | if (_child && !is_source()) { |
267 | 3.42k | RETURN_IF_ERROR(_child->terminate(state)); |
268 | 3.42k | } |
269 | 11.7k | auto result = state->get_local_state_result(operator_id()); |
270 | 11.7k | if (!result) { |
271 | 0 | return result.error(); |
272 | 0 | } |
273 | 11.7k | return result.value()->terminate(state); |
274 | 11.7k | } |
275 | | |
276 | 6.13M | Status OperatorXBase::close(RuntimeState* state) { |
277 | 6.13M | if (_child && !is_source()) { |
278 | 1.07M | RETURN_IF_ERROR(_child->close(state)); |
279 | 1.07M | } |
280 | 6.13M | auto result = state->get_local_state_result(operator_id()); |
281 | 6.13M | if (!result) { |
282 | 0 | return result.error(); |
283 | 0 | } |
284 | 6.13M | return result.value()->close(state); |
285 | 6.13M | } |
286 | | |
287 | 347k | void PipelineXLocalStateBase::clear_origin_block() { |
288 | 347k | _origin_block.clear_column_data(_parent->intermediate_row_desc().num_materialized_slots()); |
289 | 347k | } |
290 | | |
291 | 708k | Status PipelineXLocalStateBase::filter_block(const VExprContextSPtrs& expr_contexts, Block* block) { |
292 | 708k | RETURN_IF_ERROR(VExprContext::filter_block(expr_contexts, block, block->columns())); |
293 | | |
294 | 708k | _estimate_memory_usage += VExprContext::get_memory_usage(expr_contexts); |
295 | 708k | return Status::OK(); |
296 | 708k | } |
297 | | |
298 | 0 | bool PipelineXLocalStateBase::is_blockable() const { |
299 | 0 | return std::any_of(_projections.begin(), _projections.end(), |
300 | 0 | [&](VExprContextSPtr expr) -> bool { return expr->is_blockable(); }); |
301 | 0 | } |
302 | | |
303 | | Status OperatorXBase::do_projections(RuntimeState* state, Block* origin_block, |
304 | 347k | Block* output_block) const { |
305 | 347k | auto* local_state = state->get_local_state(operator_id()); |
306 | 347k | SCOPED_TIMER(local_state->exec_time_counter()); |
307 | 347k | SCOPED_TIMER(local_state->_projection_timer); |
308 | 347k | const size_t rows = origin_block->rows(); |
309 | 347k | if (rows == 0) { |
310 | 170k | return Status::OK(); |
311 | 170k | } |
312 | 176k | Block input_block = *origin_block; |
313 | | |
314 | 176k | size_t bytes_usage = 0; |
315 | 176k | ColumnsWithTypeAndName new_columns; |
316 | 176k | for (const auto& projections : local_state->_intermediate_projections) { |
317 | 1.15k | if (projections.empty()) { |
318 | 0 | return Status::InternalError("meet empty intermediate projection, node id: {}", |
319 | 0 | node_id()); |
320 | 0 | } |
321 | 1.15k | new_columns.resize(projections.size()); |
322 | 8.27k | for (int i = 0; i < projections.size(); i++) { |
323 | 7.12k | RETURN_IF_ERROR(projections[i]->execute(&input_block, new_columns[i])); |
324 | 7.12k | if (new_columns[i].column->size() != rows) { |
325 | 0 | return Status::InternalError( |
326 | 0 | "intermediate projection result column size {} not equal input rows {}, " |
327 | 0 | "expr: {}", |
328 | 0 | new_columns[i].column->size(), rows, |
329 | 0 | projections[i]->root()->debug_string()); |
330 | 0 | } |
331 | 7.12k | } |
332 | 1.15k | Block tmp_block {new_columns}; |
333 | 1.15k | bytes_usage += tmp_block.allocated_bytes(); |
334 | 1.15k | input_block.swap(tmp_block); |
335 | 1.15k | } |
336 | | |
337 | 176k | if (input_block.rows() != rows) { |
338 | 0 | return Status::InternalError( |
339 | 0 | "after intermediate projections input block rows {} not equal origin rows {}, " |
340 | 0 | "input_block: {}", |
341 | 0 | input_block.rows(), rows, input_block.dump_structure()); |
342 | 0 | } |
343 | 836k | auto insert_column_datas = [&](auto& to, ColumnPtr& from, size_t rows) { |
344 | 836k | if (to->is_nullable() && !from->is_nullable()) { |
345 | 0 | if (_keep_origin || !from->is_exclusive()) { |
346 | 0 | auto& null_column = reinterpret_cast<ColumnNullable&>(*to); |
347 | 0 | null_column.get_nested_column().insert_range_from(*from, 0, rows); |
348 | 0 | null_column.get_null_map_column().get_data().resize_fill(rows, 0); |
349 | 0 | bytes_usage += null_column.allocated_bytes(); |
350 | 0 | } else { |
351 | 0 | to = make_nullable(from, false)->assert_mutable(); |
352 | 0 | } |
353 | 836k | } else { |
354 | 836k | if (_keep_origin || !from->is_exclusive()) { |
355 | 813k | to->insert_range_from(*from, 0, rows); |
356 | 813k | bytes_usage += from->allocated_bytes(); |
357 | 813k | } else { |
358 | 23.0k | to = from->assert_mutable(); |
359 | 23.0k | } |
360 | 836k | } |
361 | 836k | }; |
362 | | |
363 | 176k | auto scoped_mutable_block = VectorizedUtils::build_scoped_mutable_mem_reuse_block( |
364 | 176k | output_block, *_output_row_descriptor); |
365 | 176k | auto& mutable_block = scoped_mutable_block.mutable_block(); |
366 | 176k | auto& mutable_columns = mutable_block.mutable_columns(); |
367 | 176k | if (rows != 0) { |
368 | 176k | DCHECK_EQ(mutable_columns.size(), local_state->_projections.size()) << debug_string(); |
369 | 1.01M | for (int i = 0; i < mutable_columns.size(); ++i) { |
370 | 836k | ColumnPtr column_ptr; |
371 | 836k | RETURN_IF_ERROR(local_state->_projections[i]->execute(&input_block, column_ptr)); |
372 | 836k | if (column_ptr->size() != rows) { |
373 | 0 | return Status::InternalError( |
374 | 0 | "projection result column size {} not equal input rows {}, expr: {}", |
375 | 0 | column_ptr->size(), rows, |
376 | 0 | local_state->_projections[i]->root()->debug_string()); |
377 | 0 | } |
378 | 836k | column_ptr = column_ptr->convert_to_full_column_if_const(); |
379 | 836k | bytes_usage += column_ptr->allocated_bytes(); |
380 | 836k | insert_column_datas(mutable_columns[i], column_ptr, rows); |
381 | 836k | } |
382 | 176k | DCHECK(mutable_block.rows() == rows); |
383 | 176k | } |
384 | 176k | local_state->_estimate_memory_usage += bytes_usage; |
385 | | |
386 | 176k | return Status::OK(); |
387 | 176k | } |
388 | | |
389 | 5.21M | Status OperatorXBase::get_block_after_projects(RuntimeState* state, Block* block, bool* eos) { |
390 | 5.21M | DBUG_EXECUTE_IF("Pipeline::return_empty_block", { |
391 | 5.21M | if (this->_op_name == "AGGREGATION_OPERATOR" || this->_op_name == "HASH_JOIN_OPERATOR" || |
392 | 5.21M | this->_op_name == "PARTITIONED_AGGREGATION_OPERATOR" || |
393 | 5.21M | this->_op_name == "PARTITIONED_HASH_JOIN_OPERATOR" || |
394 | 5.21M | this->_op_name == "CROSS_JOIN_OPERATOR" || this->_op_name == "SORT_OPERATOR") { |
395 | 5.21M | if (_debug_point_count++ % 2 == 0) { |
396 | 5.21M | return Status::OK(); |
397 | 5.21M | } |
398 | 5.21M | } |
399 | 5.21M | }); |
400 | | |
401 | 5.21M | Status status; |
402 | 5.21M | auto* local_state = state->get_local_state(operator_id()); |
403 | 5.21M | Defer defer([&]() { |
404 | 5.21M | if (status.ok()) { |
405 | 5.21M | local_state->update_output_block_counters(*block); |
406 | 5.21M | } |
407 | 5.21M | }); |
408 | 5.21M | if (_output_row_descriptor) { |
409 | 347k | local_state->clear_origin_block(); |
410 | 347k | status = get_block(state, &local_state->_origin_block, eos); |
411 | 347k | if (UNLIKELY(!status.ok())) { |
412 | 19 | return status; |
413 | 19 | } |
414 | 347k | status = do_projections(state, &local_state->_origin_block, block); |
415 | 347k | return status; |
416 | 347k | } |
417 | 4.86M | status = get_block(state, block, eos); |
418 | 4.86M | RETURN_IF_ERROR(block->check_type_and_column()); |
419 | 4.86M | return status; |
420 | 4.86M | } |
421 | | |
422 | 3.19M | void PipelineXLocalStateBase::reached_limit(Block* block, bool* eos) { |
423 | 3.19M | if (_parent->_limit != -1 and _num_rows_returned + block->rows() >= _parent->_limit) { |
424 | 7.26k | block->set_num_rows(_parent->_limit - _num_rows_returned); |
425 | 7.26k | *eos = true; |
426 | 7.26k | } |
427 | | |
428 | 3.19M | DBUG_EXECUTE_IF("Pipeline::reached_limit_early", { |
429 | 3.19M | auto op_name = to_lower(_parent->_op_name); |
430 | 3.19M | auto arg_op_name = dp->param<std::string>("op_name"); |
431 | 3.19M | arg_op_name = to_lower(arg_op_name); |
432 | | |
433 | 3.19M | if (op_name == arg_op_name) { |
434 | 3.19M | *eos = true; |
435 | 3.19M | } |
436 | 3.19M | }); |
437 | | |
438 | 3.19M | if (auto rows = block->rows()) { |
439 | 926k | _num_rows_returned += rows; |
440 | 926k | _state->get_query_ctx()->resource_ctx()->io_context()->update_process_rows(rows); |
441 | 926k | } |
442 | 3.19M | } |
443 | | |
444 | 32.3k | Status DataSinkOperatorXBase::terminate(RuntimeState* state) { |
445 | 32.3k | auto result = state->get_sink_local_state_result(); |
446 | 32.3k | if (!result) { |
447 | 0 | return result.error(); |
448 | 0 | } |
449 | 32.3k | return result.value()->terminate(state); |
450 | 32.3k | } |
451 | | |
452 | 20.7k | std::string DataSinkOperatorXBase::debug_string(int indentation_level) const { |
453 | 20.7k | fmt::memory_buffer debug_string_buffer; |
454 | | |
455 | 20.7k | fmt::format_to(debug_string_buffer, "{}{}: id={}, _is_serial_operator={}", |
456 | 20.7k | std::string(indentation_level * 2, ' '), _name, node_id(), _is_serial_operator); |
457 | 20.7k | return fmt::to_string(debug_string_buffer); |
458 | 20.7k | } |
459 | | |
460 | 20.6k | std::string DataSinkOperatorXBase::debug_string(RuntimeState* state, int indentation_level) const { |
461 | 20.6k | return state->get_sink_local_state()->debug_string(indentation_level); |
462 | 20.6k | } |
463 | | |
464 | 539k | Status DataSinkOperatorXBase::init(const TDataSink& tsink) { |
465 | 539k | std::string op_name = "UNKNOWN_SINK"; |
466 | 539k | auto it = _TDataSinkType_VALUES_TO_NAMES.find(tsink.type); |
467 | | |
468 | 539k | if (it != _TDataSinkType_VALUES_TO_NAMES.end()) { |
469 | 539k | op_name = it->second; |
470 | 539k | } |
471 | 539k | _name = op_name + "_OPERATOR"; |
472 | 539k | return Status::OK(); |
473 | 539k | } |
474 | | |
475 | 280k | Status DataSinkOperatorXBase::init(const TPlanNode& tnode, RuntimeState* state) { |
476 | 280k | std::string op_name = print_plan_node_type(tnode.node_type); |
477 | 280k | _nereids_id = tnode.nereids_id; |
478 | 280k | auto substr = op_name.substr(0, op_name.find("_NODE")); |
479 | 280k | _name = substr + "_SINK_OPERATOR"; |
480 | 280k | return Status::OK(); |
481 | 280k | } |
482 | | |
483 | | template <typename LocalStateType> |
484 | | Status DataSinkOperatorX<LocalStateType>::setup_local_state(RuntimeState* state, |
485 | 2.08M | LocalSinkStateInfo& info) { |
486 | 2.08M | auto local_state = LocalStateType::create_unique(this, state); |
487 | 2.08M | RETURN_IF_ERROR(local_state->init(state, info)); |
488 | 2.08M | state->emplace_sink_local_state(operator_id(), std::move(local_state)); |
489 | 2.08M | return Status::OK(); |
490 | 2.08M | } _ZN5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 113k | LocalSinkStateInfo& info) { | 486 | 113k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 113k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 113k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 113k | return Status::OK(); | 490 | 113k | } |
_ZN5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 408k | LocalSinkStateInfo& info) { | 486 | 408k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 408k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 408k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 408k | return Status::OK(); | 490 | 408k | } |
_ZN5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 88 | LocalSinkStateInfo& info) { | 486 | 88 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 88 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 88 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 88 | return Status::OK(); | 490 | 88 | } |
_ZN5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3 | LocalSinkStateInfo& info) { | 486 | 3 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3 | return Status::OK(); | 490 | 3 | } |
_ZN5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 512 | LocalSinkStateInfo& info) { | 486 | 512 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 512 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 512 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 512 | return Status::OK(); | 490 | 512 | } |
_ZN5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 44.1k | LocalSinkStateInfo& info) { | 486 | 44.1k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 44.1k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 44.1k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 44.1k | return Status::OK(); | 490 | 44.1k | } |
_ZN5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 8.83k | LocalSinkStateInfo& info) { | 486 | 8.83k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 8.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 8.83k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 8.83k | return Status::OK(); | 490 | 8.83k | } |
_ZN5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 5.14k | LocalSinkStateInfo& info) { | 486 | 5.14k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 5.14k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 5.14k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 5.14k | return Status::OK(); | 490 | 5.14k | } |
_ZN5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 156 | LocalSinkStateInfo& info) { | 486 | 156 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 156 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 156 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 156 | return Status::OK(); | 490 | 156 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 3.38k | LocalSinkStateInfo& info) { | 486 | 3.38k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 3.38k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 3.38k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 3.38k | return Status::OK(); | 490 | 3.38k | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 160 | LocalSinkStateInfo& info) { | 486 | 160 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 160 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 160 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 160 | return Status::OK(); | 490 | 160 | } |
_ZN5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 640 | LocalSinkStateInfo& info) { | 486 | 640 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 640 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 640 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 640 | return Status::OK(); | 490 | 640 | } |
Unexecuted instantiation: _ZN5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 9.83k | LocalSinkStateInfo& info) { | 486 | 9.83k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 9.83k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 9.83k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 9.83k | return Status::OK(); | 490 | 9.83k | } |
_ZN5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 127 | LocalSinkStateInfo& info) { | 486 | 127 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 127 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 127 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 127 | return Status::OK(); | 490 | 127 | } |
_ZN5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 268k | LocalSinkStateInfo& info) { | 486 | 268k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 268k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 268k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 268k | return Status::OK(); | 490 | 268k | } |
_ZN5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 29 | LocalSinkStateInfo& info) { | 486 | 29 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 29 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 29 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 29 | return Status::OK(); | 490 | 29 | } |
_ZN5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 240k | LocalSinkStateInfo& info) { | 486 | 240k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 240k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 240k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 240k | return Status::OK(); | 490 | 240k | } |
_ZN5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 194k | LocalSinkStateInfo& info) { | 486 | 194k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 194k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 194k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 194k | return Status::OK(); | 490 | 194k | } |
_ZN5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 428 | LocalSinkStateInfo& info) { | 486 | 428 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 428 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 428 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 428 | return Status::OK(); | 490 | 428 | } |
_ZN5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 142 | LocalSinkStateInfo& info) { | 486 | 142 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 142 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 142 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 142 | return Status::OK(); | 490 | 142 | } |
_ZN5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 726k | LocalSinkStateInfo& info) { | 486 | 726k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 726k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 726k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 726k | return Status::OK(); | 490 | 726k | } |
_ZN5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 30.6k | LocalSinkStateInfo& info) { | 486 | 30.6k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 30.6k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 30.6k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 30.6k | return Status::OK(); | 490 | 30.6k | } |
_ZN5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 6.17k | LocalSinkStateInfo& info) { | 486 | 6.17k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 6.17k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 6.17k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 6.17k | return Status::OK(); | 490 | 6.17k | } |
_ZN5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 14.0k | LocalSinkStateInfo& info) { | 486 | 14.0k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 14.0k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 14.0k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 14.0k | return Status::OK(); | 490 | 14.0k | } |
_ZN5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 371 | LocalSinkStateInfo& info) { | 486 | 371 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 371 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 371 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 371 | return Status::OK(); | 490 | 371 | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 4.63k | LocalSinkStateInfo& info) { | 486 | 4.63k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 4.63k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 4.63k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 4.63k | return Status::OK(); | 490 | 4.63k | } |
_ZN5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.46k | LocalSinkStateInfo& info) { | 486 | 2.46k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.46k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.46k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.46k | return Status::OK(); | 490 | 2.46k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.44k | LocalSinkStateInfo& info) { | 486 | 2.44k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.44k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.44k | return Status::OK(); | 490 | 2.44k | } |
_ZN5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 2.44k | LocalSinkStateInfo& info) { | 486 | 2.44k | auto local_state = LocalStateType::create_unique(this, state); | 487 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 2.44k | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 2.44k | return Status::OK(); | 490 | 2.44k | } |
_ZN5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 1 | LocalSinkStateInfo& info) { | 486 | 1 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 1 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 1 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 1 | return Status::OK(); | 490 | 1 | } |
_ZN5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 166 | LocalSinkStateInfo& info) { | 486 | 166 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 166 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 166 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 166 | return Status::OK(); | 490 | 166 | } |
_ZN5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 14 | LocalSinkStateInfo& info) { | 486 | 14 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 14 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 14 | return Status::OK(); | 490 | 14 | } |
_ZN5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 106 | LocalSinkStateInfo& info) { | 486 | 106 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 106 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 106 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 106 | return Status::OK(); | 490 | 106 | } |
_ZN5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 134 | LocalSinkStateInfo& info) { | 486 | 134 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 134 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 134 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 134 | return Status::OK(); | 490 | 134 | } |
_ZN5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 485 | 134 | LocalSinkStateInfo& info) { | 486 | 134 | auto local_state = LocalStateType::create_unique(this, state); | 487 | 134 | RETURN_IF_ERROR(local_state->init(state, info)); | 488 | 134 | state->emplace_sink_local_state(operator_id(), std::move(local_state)); | 489 | 134 | return Status::OK(); | 490 | 134 | } |
|
491 | | |
492 | | template <typename LocalStateType> |
493 | 1.80M | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { |
494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
495 | 0 | LocalExchangeSharedState>) { |
496 | 0 | return nullptr; |
497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, |
498 | 0 | MultiCastSharedState>) { |
499 | 0 | throw Exception(Status::FatalError("should not reach here!")); |
500 | 1.80M | } else { |
501 | 1.80M | auto ss = LocalStateType::SharedStateType::create_shared(); |
502 | 1.80M | ss->id = operator_id(); |
503 | 1.80M | for (auto& dest : dests_id()) { |
504 | 1.80M | ss->related_op_ids.insert(dest); |
505 | 1.80M | } |
506 | 1.80M | return ss; |
507 | 1.80M | } |
508 | 1.80M | } _ZNK5doris17DataSinkOperatorXINS_27HashJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 97.2k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 97.2k | } else { | 501 | 97.2k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 97.2k | ss->id = operator_id(); | 503 | 97.2k | for (auto& dest : dests_id()) { | 504 | 97.2k | ss->related_op_ids.insert(dest); | 505 | 97.2k | } | 506 | 97.2k | return ss; | 507 | 97.2k | } | 508 | 97.2k | } |
_ZNK5doris17DataSinkOperatorXINS_20ResultSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 408k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 408k | } else { | 501 | 408k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 408k | ss->id = operator_id(); | 503 | 408k | for (auto& dest : dests_id()) { | 504 | 408k | ss->related_op_ids.insert(dest); | 505 | 408k | } | 506 | 408k | return ss; | 507 | 408k | } | 508 | 408k | } |
_ZNK5doris17DataSinkOperatorXINS_23JdbcTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 88 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 88 | } else { | 501 | 88 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 88 | ss->id = operator_id(); | 503 | 88 | for (auto& dest : dests_id()) { | 504 | 88 | ss->related_op_ids.insert(dest); | 505 | 88 | } | 506 | 88 | return ss; | 507 | 88 | } | 508 | 88 | } |
_ZNK5doris17DataSinkOperatorXINS_27MemoryScratchSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 3 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 3 | } else { | 501 | 3 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 3 | ss->id = operator_id(); | 503 | 3 | for (auto& dest : dests_id()) { | 504 | 3 | ss->related_op_ids.insert(dest); | 505 | 3 | } | 506 | 3 | return ss; | 507 | 3 | } | 508 | 3 | } |
_ZNK5doris17DataSinkOperatorXINS_24ResultFileSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 512 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 512 | } else { | 501 | 512 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 512 | ss->id = operator_id(); | 503 | 512 | for (auto& dest : dests_id()) { | 504 | 512 | ss->related_op_ids.insert(dest); | 505 | 512 | } | 506 | 512 | return ss; | 507 | 512 | } | 508 | 512 | } |
_ZNK5doris17DataSinkOperatorXINS_23OlapTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 44.1k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 44.1k | } else { | 501 | 44.1k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 44.1k | ss->id = operator_id(); | 503 | 44.1k | for (auto& dest : dests_id()) { | 504 | 44.0k | ss->related_op_ids.insert(dest); | 505 | 44.0k | } | 506 | 44.1k | return ss; | 507 | 44.1k | } | 508 | 44.1k | } |
_ZNK5doris17DataSinkOperatorXINS_25OlapTableSinkV2LocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 8.83k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 8.83k | } else { | 501 | 8.83k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 8.83k | ss->id = operator_id(); | 503 | 8.83k | for (auto& dest : dests_id()) { | 504 | 8.83k | ss->related_op_ids.insert(dest); | 505 | 8.83k | } | 506 | 8.83k | return ss; | 507 | 8.83k | } | 508 | 8.83k | } |
_ZNK5doris17DataSinkOperatorXINS_23HiveTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 5.14k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 5.14k | } else { | 501 | 5.14k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 5.14k | ss->id = operator_id(); | 503 | 5.15k | for (auto& dest : dests_id()) { | 504 | 5.15k | ss->related_op_ids.insert(dest); | 505 | 5.15k | } | 506 | 5.14k | return ss; | 507 | 5.14k | } | 508 | 5.14k | } |
_ZNK5doris17DataSinkOperatorXINS_22TVFTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 156 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 156 | } else { | 501 | 156 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 156 | ss->id = operator_id(); | 503 | 156 | for (auto& dest : dests_id()) { | 504 | 156 | ss->related_op_ids.insert(dest); | 505 | 156 | } | 506 | 156 | return ss; | 507 | 156 | } | 508 | 156 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergTableSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 3.38k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 3.38k | } else { | 501 | 3.38k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 3.38k | ss->id = operator_id(); | 503 | 3.38k | for (auto& dest : dests_id()) { | 504 | 3.38k | ss->related_op_ids.insert(dest); | 505 | 3.38k | } | 506 | 3.38k | return ss; | 507 | 3.38k | } | 508 | 3.38k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_31SpillIcebergTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27IcebergDeleteSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 160 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 160 | } else { | 501 | 160 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 160 | ss->id = operator_id(); | 503 | 160 | for (auto& dest : dests_id()) { | 504 | 160 | ss->related_op_ids.insert(dest); | 505 | 160 | } | 506 | 160 | return ss; | 507 | 160 | } | 508 | 160 | } |
_ZNK5doris17DataSinkOperatorXINS_26IcebergMergeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 640 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 640 | } else { | 501 | 640 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 640 | ss->id = operator_id(); | 503 | 640 | for (auto& dest : dests_id()) { | 504 | 640 | ss->related_op_ids.insert(dest); | 505 | 640 | } | 506 | 640 | return ss; | 507 | 640 | } | 508 | 640 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_21MCTableSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_22AnalyticSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 9.85k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 9.85k | } else { | 501 | 9.85k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 9.85k | ss->id = operator_id(); | 503 | 9.85k | for (auto& dest : dests_id()) { | 504 | 9.85k | ss->related_op_ids.insert(dest); | 505 | 9.85k | } | 506 | 9.85k | return ss; | 507 | 9.85k | } | 508 | 9.85k | } |
_ZNK5doris17DataSinkOperatorXINS_23BlackholeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 126 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 126 | } else { | 501 | 126 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 126 | ss->id = operator_id(); | 503 | 127 | for (auto& dest : dests_id()) { | 504 | 127 | ss->related_op_ids.insert(dest); | 505 | 127 | } | 506 | 126 | return ss; | 507 | 126 | } | 508 | 126 | } |
_ZNK5doris17DataSinkOperatorXINS_18SortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 268k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 268k | } else { | 501 | 268k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 268k | ss->id = operator_id(); | 503 | 268k | for (auto& dest : dests_id()) { | 504 | 268k | ss->related_op_ids.insert(dest); | 505 | 268k | } | 506 | 268k | return ss; | 507 | 268k | } | 508 | 268k | } |
_ZNK5doris17DataSinkOperatorXINS_23SpillSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 31 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 31 | } else { | 501 | 31 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 31 | ss->id = operator_id(); | 503 | 31 | for (auto& dest : dests_id()) { | 504 | 31 | ss->related_op_ids.insert(dest); | 505 | 31 | } | 506 | 31 | return ss; | 507 | 31 | } | 508 | 31 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_27LocalExchangeSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17AggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 194k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 194k | } else { | 501 | 194k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 194k | ss->id = operator_id(); | 503 | 194k | for (auto& dest : dests_id()) { | 504 | 194k | ss->related_op_ids.insert(dest); | 505 | 194k | } | 506 | 194k | return ss; | 507 | 194k | } | 508 | 194k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_25BucketedAggSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_28PartitionedAggSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 141 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 141 | } else { | 501 | 141 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 141 | ss->id = operator_id(); | 503 | 141 | for (auto& dest : dests_id()) { | 504 | 141 | ss->related_op_ids.insert(dest); | 505 | 141 | } | 506 | 141 | return ss; | 507 | 141 | } | 508 | 141 | } |
_ZNK5doris17DataSinkOperatorXINS_22ExchangeSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 726k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 726k | } else { | 501 | 726k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 726k | ss->id = operator_id(); | 503 | 726k | for (auto& dest : dests_id()) { | 504 | 726k | ss->related_op_ids.insert(dest); | 505 | 726k | } | 506 | 726k | return ss; | 507 | 726k | } | 508 | 726k | } |
_ZNK5doris17DataSinkOperatorXINS_33NestedLoopJoinBuildSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 30.6k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 30.6k | } else { | 501 | 30.6k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 30.6k | ss->id = operator_id(); | 503 | 30.6k | for (auto& dest : dests_id()) { | 504 | 30.6k | ss->related_op_ids.insert(dest); | 505 | 30.6k | } | 506 | 30.6k | return ss; | 507 | 30.6k | } | 508 | 30.6k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19UnionSinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33MultiCastDataStreamSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_27PartitionSortSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 474 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 474 | } else { | 501 | 474 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 474 | ss->id = operator_id(); | 503 | 475 | for (auto& dest : dests_id()) { | 504 | 475 | ss->related_op_ids.insert(dest); | 505 | 475 | } | 506 | 474 | return ss; | 507 | 474 | } | 508 | 474 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb1EEEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_22SetProbeSinkLocalStateILb0EEEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb1EEEE19create_shared_stateEv Line | Count | Source | 493 | 2.47k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 2.47k | } else { | 501 | 2.47k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 2.47k | ss->id = operator_id(); | 503 | 2.47k | for (auto& dest : dests_id()) { | 504 | 2.47k | ss->related_op_ids.insert(dest); | 505 | 2.47k | } | 506 | 2.47k | return ss; | 507 | 2.47k | } | 508 | 2.47k | } |
_ZNK5doris17DataSinkOperatorXINS_17SetSinkLocalStateILb0EEEE19create_shared_stateEv Line | Count | Source | 493 | 2.46k | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 2.46k | } else { | 501 | 2.46k | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 2.46k | ss->id = operator_id(); | 503 | 2.46k | for (auto& dest : dests_id()) { | 504 | 2.45k | ss->related_op_ids.insert(dest); | 505 | 2.45k | } | 506 | 2.46k | return ss; | 507 | 2.46k | } | 508 | 2.46k | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_33PartitionedHashJoinSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_30GroupCommitBlockSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 166 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 166 | } else { | 501 | 166 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 166 | ss->id = operator_id(); | 503 | 166 | for (auto& dest : dests_id()) { | 504 | 166 | ss->related_op_ids.insert(dest); | 505 | 166 | } | 506 | 166 | return ss; | 507 | 166 | } | 508 | 166 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_19CacheSinkLocalStateEE19create_shared_stateEv _ZNK5doris17DataSinkOperatorXINS_18DictSinkLocalStateEE19create_shared_stateEv Line | Count | Source | 493 | 106 | std::shared_ptr<BasicSharedState> DataSinkOperatorX<LocalStateType>::create_shared_state() const { | 494 | | if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 495 | | LocalExchangeSharedState>) { | 496 | | return nullptr; | 497 | | } else if constexpr (std::is_same_v<typename LocalStateType::SharedStateType, | 498 | | MultiCastSharedState>) { | 499 | | throw Exception(Status::FatalError("should not reach here!")); | 500 | 106 | } else { | 501 | 106 | auto ss = LocalStateType::SharedStateType::create_shared(); | 502 | 106 | ss->id = operator_id(); | 503 | 106 | for (auto& dest : dests_id()) { | 504 | 106 | ss->related_op_ids.insert(dest); | 505 | 106 | } | 506 | 106 | return ss; | 507 | 106 | } | 508 | 106 | } |
Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_20RecCTESinkLocalStateEE19create_shared_stateEv Unexecuted instantiation: _ZNK5doris17DataSinkOperatorXINS_26RecCTEAnchorSinkLocalStateEE19create_shared_stateEv |
509 | | |
510 | | template <typename LocalStateType> |
511 | 2.55M | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { |
512 | 2.55M | auto local_state = LocalStateType::create_unique(state, this); |
513 | 2.55M | RETURN_IF_ERROR(local_state->init(state, info)); |
514 | 2.55M | state->emplace_local_state(operator_id(), std::move(local_state)); |
515 | 2.55M | return Status::OK(); |
516 | 2.55M | } _ZN5doris9OperatorXINS_23HashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 65.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 65.2k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 65.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 65.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 65.2k | return Status::OK(); | 516 | 65.2k | } |
_ZN5doris9OperatorXINS_18OlapScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 288k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 288k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 288k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 288k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 288k | return Status::OK(); | 516 | 288k | } |
_ZN5doris9OperatorXINS_21GroupCommitLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 79 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 79 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 79 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 79 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 79 | return Status::OK(); | 516 | 79 | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_18JDBCScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_18FileScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 32.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 32.7k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 32.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 32.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 32.7k | return Status::OK(); | 516 | 32.7k | } |
_ZN5doris9OperatorXINS_18AnalyticLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 9.82k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 9.82k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 9.82k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 9.82k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 9.82k | return Status::OK(); | 516 | 9.82k | } |
_ZN5doris9OperatorXINS_14SortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 10.3k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 10.3k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 10.3k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 10.3k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 10.3k | return Status::OK(); | 516 | 10.3k | } |
_ZN5doris9OperatorXINS_19SpillSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 23 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 23 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 23 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 23 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 23 | return Status::OK(); | 516 | 23 | } |
_ZN5doris9OperatorXINS_24LocalMergeSortLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 257k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 257k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 257k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 257k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 257k | return Status::OK(); | 516 | 257k | } |
_ZN5doris9OperatorXINS_13AggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 194k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 194k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 194k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 194k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 194k | return Status::OK(); | 516 | 194k | } |
_ZN5doris9OperatorXINS_21BucketedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 488 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 488 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 488 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 488 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 488 | return Status::OK(); | 516 | 488 | } |
_ZN5doris9OperatorXINS_24PartitionedAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 132 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 132 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 132 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 132 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 132 | return Status::OK(); | 516 | 132 | } |
_ZN5doris9OperatorXINS_23TableFunctionLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 4.95k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 4.95k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 4.95k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 4.95k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 4.95k | return Status::OK(); | 516 | 4.95k | } |
_ZN5doris9OperatorXINS_18ExchangeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 432k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 432k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 432k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 432k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 432k | return Status::OK(); | 516 | 432k | } |
_ZN5doris9OperatorXINS_16RepeatLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.07k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.07k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.07k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.07k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.07k | return Status::OK(); | 516 | 1.07k | } |
_ZN5doris9OperatorXINS_29NestedLoopJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 30.5k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 30.5k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 30.5k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 30.5k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 30.5k | return Status::OK(); | 516 | 30.5k | } |
_ZN5doris9OperatorXINS_23AssertNumRowsLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 221 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 221 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 221 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 221 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 221 | return Status::OK(); | 516 | 221 | } |
_ZN5doris9OperatorXINS_18EmptySetLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.94k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.94k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.94k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.94k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.94k | return Status::OK(); | 516 | 1.94k | } |
_ZN5doris9OperatorXINS_21UnionSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 54.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 54.7k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 54.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 54.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 54.7k | return Status::OK(); | 516 | 54.7k | } |
_ZN5doris9OperatorXINS_35MultiCastDataStreamSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 41.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 41.2k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 41.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 41.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 41.2k | return Status::OK(); | 516 | 41.2k | } |
_ZN5doris9OperatorXINS_29PartitionSortSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 369 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 369 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 369 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 369 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 369 | return Status::OK(); | 516 | 369 | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb1EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.44k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.44k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.44k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.44k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.44k | return Status::OK(); | 516 | 2.44k | } |
_ZN5doris9OperatorXINS_19SetSourceLocalStateILb0EEEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.41k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.41k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.41k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.41k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.41k | return Status::OK(); | 516 | 2.41k | } |
_ZN5doris9OperatorXINS_17DataGenLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 467 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 467 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 467 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 467 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 467 | return Status::OK(); | 516 | 467 | } |
_ZN5doris9OperatorXINS_20SchemaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 2.04k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 2.04k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 2.04k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 2.04k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 2.04k | return Status::OK(); | 516 | 2.04k | } |
_ZN5doris9OperatorXINS_18MetaScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 6.66k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 6.66k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 6.66k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 6.66k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 6.66k | return Status::OK(); | 516 | 6.66k | } |
_ZN5doris9OperatorXINS_29LocalExchangeSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 676k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 676k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 676k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 676k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 676k | return Status::OK(); | 516 | 676k | } |
Unexecuted instantiation: _ZN5doris9OperatorXINS_34PartitionedHashJoinProbeLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris9OperatorXINS_21CacheSourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 14 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 14 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 14 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 14 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 14 | return Status::OK(); | 516 | 14 | } |
_ZN5doris9OperatorXINS_22RecCTESourceLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 134 | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 134 | auto local_state = LocalStateType::create_unique(state, this); | 513 | 134 | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 134 | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 134 | return Status::OK(); | 516 | 134 | } |
_ZN5doris9OperatorXINS_20RecCTEScanLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.85k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.85k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.85k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.85k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.85k | return Status::OK(); | 516 | 1.85k | } |
_ZN5doris9OperatorXINS_25MaterializationLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 1.60k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 1.60k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 1.60k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 1.60k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 1.60k | return Status::OK(); | 516 | 1.60k | } |
_ZN5doris9OperatorXINS_16SelectLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 13.2k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 13.2k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 13.2k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 13.2k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 13.2k | return Status::OK(); | 516 | 13.2k | } |
_ZN5doris9OperatorXINS_22StreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 14.7k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 14.7k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 14.7k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 14.7k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 14.7k | return Status::OK(); | 516 | 14.7k | } |
_ZN5doris9OperatorXINS_30DistinctStreamingAggLocalStateEE17setup_local_stateEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 511 | 406k | Status OperatorX<LocalStateType>::setup_local_state(RuntimeState* state, LocalStateInfo& info) { | 512 | 406k | auto local_state = LocalStateType::create_unique(state, this); | 513 | 406k | RETURN_IF_ERROR(local_state->init(state, info)); | 514 | 406k | state->emplace_local_state(operator_id(), std::move(local_state)); | 515 | 406k | return Status::OK(); | 516 | 406k | } |
|
517 | | |
518 | | PipelineXSinkLocalStateBase::PipelineXSinkLocalStateBase(DataSinkOperatorXBase* parent, |
519 | | RuntimeState* state) |
520 | 2.09M | : _parent(parent), _state(state) {} |
521 | | |
522 | | PipelineXLocalStateBase::PipelineXLocalStateBase(RuntimeState* state, OperatorXBase* parent) |
523 | 2.55M | : _num_rows_returned(0), |
524 | 2.55M | _rows_returned_counter(nullptr), |
525 | 2.55M | _parent(parent), |
526 | 2.55M | _state(state), |
527 | 2.55M | _budget(state->batch_size(), state->preferred_block_size_bytes()) {} |
528 | | |
529 | | template <typename SharedStateArg> |
530 | 2.55M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { |
531 | 2.55M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); |
532 | 2.55M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); |
533 | 2.55M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
534 | 2.55M | _operator_profile->set_metadata(_parent->node_id()); |
535 | | // indent is false so that source operator will have same |
536 | | // indentation_level with its parent operator. |
537 | 2.55M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); |
538 | 2.55M | _operator_profile->add_child(_common_profile.get(), true); |
539 | 2.55M | _operator_profile->add_child(_custom_profile.get(), true); |
540 | 2.55M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; |
541 | 2.55M | if constexpr (!is_fake_shared) { |
542 | 1.34M | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { |
543 | 692k | _shared_state = info.shared_state_map.at(_parent->operator_id()) |
544 | 692k | .first.get() |
545 | 692k | ->template cast<SharedStateArg>(); |
546 | | |
547 | 692k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); |
548 | 692k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
549 | 692k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
550 | 692k | } else if (info.shared_state) { |
551 | 597k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
552 | 0 | DCHECK(false); |
553 | 0 | } |
554 | | // For UnionSourceOperator without children, there is no shared state. |
555 | 597k | _shared_state = info.shared_state->template cast<SharedStateArg>(); |
556 | | |
557 | 597k | _dependency = _shared_state->create_source_dependency( |
558 | 597k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); |
559 | 597k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
560 | 597k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
561 | 597k | } else { |
562 | 60.1k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { |
563 | 3.48k | DCHECK(false); |
564 | 3.48k | } |
565 | 60.1k | } |
566 | 1.34M | } |
567 | | |
568 | 2.55M | if (must_set_shared_state() && _shared_state == nullptr) { |
569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
570 | 0 | } |
571 | | |
572 | 2.55M | _rows_returned_counter = |
573 | 2.55M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); |
574 | 2.55M | _blocks_returned_counter = |
575 | 2.55M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); |
576 | 2.55M | _output_block_bytes_counter = |
577 | 2.55M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
578 | 2.55M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
579 | 2.55M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
580 | 2.55M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( |
581 | 2.55M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); |
582 | 2.55M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); |
583 | 2.55M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
584 | 2.55M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
585 | 2.55M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
586 | 2.55M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
587 | 2.55M | _memory_used_counter = |
588 | 2.55M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
589 | 2.55M | _common_profile->add_info_string("IsColocate", |
590 | 2.55M | std::to_string(_parent->is_colocated_operator())); |
591 | 2.55M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
592 | 2.55M | _common_profile->add_info_string("FollowedByShuffledOperator", |
593 | 2.55M | std::to_string(_parent->followed_by_shuffled_operator())); |
594 | 2.55M | return Status::OK(); |
595 | 2.55M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 65.4k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 65.4k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 65.4k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 65.4k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 65.4k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 65.4k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 65.4k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 65.4k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 65.4k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 65.4k | if constexpr (!is_fake_shared) { | 542 | 65.4k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 16.2k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 16.2k | .first.get() | 545 | 16.2k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 16.2k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 16.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 16.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 49.2k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 48.9k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 48.9k | _dependency = _shared_state->create_source_dependency( | 558 | 48.9k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 48.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 48.9k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 48.9k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 245 | } | 566 | 65.4k | } | 567 | | | 568 | 65.4k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 65.4k | _rows_returned_counter = | 573 | 65.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 65.4k | _blocks_returned_counter = | 575 | 65.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 65.4k | _output_block_bytes_counter = | 577 | 65.4k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 65.4k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 65.4k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 65.4k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 65.4k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 65.4k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 65.4k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 65.4k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 65.4k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 65.4k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 65.4k | _memory_used_counter = | 588 | 65.4k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 65.4k | _common_profile->add_info_string("IsColocate", | 590 | 65.4k | std::to_string(_parent->is_colocated_operator())); | 591 | 65.4k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 65.4k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 65.4k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 65.4k | return Status::OK(); | 595 | 65.4k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 1 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 1 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 1 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 1 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 1 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 1 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 1 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 1 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 1 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 1 | if constexpr (!is_fake_shared) { | 542 | 1 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 1 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 1 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 1 | _dependency = _shared_state->create_source_dependency( | 558 | 1 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 1 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 1 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 1 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 1 | } | 567 | | | 568 | 1 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 1 | _rows_returned_counter = | 573 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 1 | _blocks_returned_counter = | 575 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 1 | _output_block_bytes_counter = | 577 | 1 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 1 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 1 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 1 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 1 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 1 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 1 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 1 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 1 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 1 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 1 | _memory_used_counter = | 588 | 1 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 1 | _common_profile->add_info_string("IsColocate", | 590 | 1 | std::to_string(_parent->is_colocated_operator())); | 591 | 1 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 1 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 1 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 1 | return Status::OK(); | 595 | 1 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 268k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 268k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 268k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 268k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 268k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 268k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 268k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 268k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 268k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 268k | if constexpr (!is_fake_shared) { | 542 | 268k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 268k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 265k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 265k | _dependency = _shared_state->create_source_dependency( | 558 | 265k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 265k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 265k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 265k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 3.23k | } | 566 | 268k | } | 567 | | | 568 | 268k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 268k | _rows_returned_counter = | 573 | 268k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 268k | _blocks_returned_counter = | 575 | 268k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 268k | _output_block_bytes_counter = | 577 | 268k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 268k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 268k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 268k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 268k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 268k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 268k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 268k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 268k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 268k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 268k | _memory_used_counter = | 588 | 268k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 268k | _common_profile->add_info_string("IsColocate", | 590 | 268k | std::to_string(_parent->is_colocated_operator())); | 591 | 268k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 268k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 268k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 268k | return Status::OK(); | 595 | 268k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 23 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 23 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 23 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 23 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 23 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 23 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 23 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 23 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 23 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 23 | if constexpr (!is_fake_shared) { | 542 | 23 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 23 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 23 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 23 | _dependency = _shared_state->create_source_dependency( | 558 | 23 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 23 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 23 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 23 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 23 | } | 567 | | | 568 | 23 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 23 | _rows_returned_counter = | 573 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 23 | _blocks_returned_counter = | 575 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 23 | _output_block_bytes_counter = | 577 | 23 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 23 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 23 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 23 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 23 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 23 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 23 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 23 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 23 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 23 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 23 | _memory_used_counter = | 588 | 23 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 23 | _common_profile->add_info_string("IsColocate", | 590 | 23 | std::to_string(_parent->is_colocated_operator())); | 591 | 23 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 23 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 23 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 23 | return Status::OK(); | 595 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 30.5k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 30.5k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 30.5k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 30.5k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 30.5k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 30.5k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 30.5k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 30.5k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 30.5k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 30.5k | if constexpr (!is_fake_shared) { | 542 | 30.5k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 30.5k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 30.4k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 30.4k | _dependency = _shared_state->create_source_dependency( | 558 | 30.4k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 30.4k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 30.4k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 30.4k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 54 | } | 566 | 30.5k | } | 567 | | | 568 | 30.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 30.5k | _rows_returned_counter = | 573 | 30.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 30.5k | _blocks_returned_counter = | 575 | 30.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 30.5k | _output_block_bytes_counter = | 577 | 30.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 30.5k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 30.5k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 30.5k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 30.5k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 30.5k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 30.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 30.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 30.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 30.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 30.5k | _memory_used_counter = | 588 | 30.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 30.5k | _common_profile->add_info_string("IsColocate", | 590 | 30.5k | std::to_string(_parent->is_colocated_operator())); | 591 | 30.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 30.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 30.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 30.5k | return Status::OK(); | 595 | 30.5k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 9.85k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 9.85k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 9.85k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 9.85k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 9.85k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 9.85k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 9.85k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 9.85k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 9.85k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 9.85k | if constexpr (!is_fake_shared) { | 542 | 9.85k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 9.85k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 9.78k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 9.78k | _dependency = _shared_state->create_source_dependency( | 558 | 9.78k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 9.78k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 9.78k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 9.78k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 67 | } | 566 | 9.85k | } | 567 | | | 568 | 9.85k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 9.85k | _rows_returned_counter = | 573 | 9.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 9.85k | _blocks_returned_counter = | 575 | 9.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 9.85k | _output_block_bytes_counter = | 577 | 9.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 9.85k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 9.85k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 9.85k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 9.85k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 9.85k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 9.85k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 9.85k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 9.85k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 9.85k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 9.85k | _memory_used_counter = | 588 | 9.85k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 9.85k | _common_profile->add_info_string("IsColocate", | 590 | 9.85k | std::to_string(_parent->is_colocated_operator())); | 591 | 9.85k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 9.85k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 9.85k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 9.85k | return Status::OK(); | 595 | 9.85k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 194k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 194k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 194k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 194k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 194k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 194k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 194k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 194k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 194k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 194k | if constexpr (!is_fake_shared) { | 542 | 194k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 194k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 193k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 193k | _dependency = _shared_state->create_source_dependency( | 558 | 193k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 193k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 193k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 193k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 1.01k | } | 566 | 194k | } | 567 | | | 568 | 194k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 194k | _rows_returned_counter = | 573 | 194k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 194k | _blocks_returned_counter = | 575 | 194k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 194k | _output_block_bytes_counter = | 577 | 194k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 194k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 194k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 194k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 194k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 194k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 194k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 194k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 194k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 194k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 194k | _memory_used_counter = | 588 | 194k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 194k | _common_profile->add_info_string("IsColocate", | 590 | 194k | std::to_string(_parent->is_colocated_operator())); | 591 | 194k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 194k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 194k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 194k | return Status::OK(); | 595 | 194k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 490 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 490 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 490 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 490 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 490 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 490 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 490 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 490 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 490 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 490 | if constexpr (!is_fake_shared) { | 542 | 490 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 490 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 490 | .first.get() | 545 | 490 | ->template cast<SharedStateArg>(); | 546 | | | 547 | 490 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 490 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 490 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 490 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | |
| 557 | 0 | _dependency = _shared_state->create_source_dependency( | 558 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 0 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 490 | } | 567 | | | 568 | 490 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 490 | _rows_returned_counter = | 573 | 490 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 490 | _blocks_returned_counter = | 575 | 490 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 490 | _output_block_bytes_counter = | 577 | 490 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 490 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 490 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 490 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 490 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 490 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 490 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 490 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 490 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 490 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 490 | _memory_used_counter = | 588 | 490 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 490 | _common_profile->add_info_string("IsColocate", | 590 | 490 | std::to_string(_parent->is_colocated_operator())); | 591 | 490 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 490 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 490 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 490 | return Status::OK(); | 595 | 490 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 132 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 132 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 132 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 132 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 132 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 132 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 132 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 132 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 132 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 132 | if constexpr (!is_fake_shared) { | 542 | 132 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 132 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 132 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 132 | _dependency = _shared_state->create_source_dependency( | 558 | 132 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 132 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 132 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 132 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 132 | } | 567 | | | 568 | 132 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 132 | _rows_returned_counter = | 573 | 132 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 132 | _blocks_returned_counter = | 575 | 132 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 132 | _output_block_bytes_counter = | 577 | 132 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 132 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 132 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 132 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 132 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 132 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 132 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 132 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 132 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 132 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 132 | _memory_used_counter = | 588 | 132 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 132 | _common_profile->add_info_string("IsColocate", | 590 | 132 | std::to_string(_parent->is_colocated_operator())); | 591 | 132 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 132 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 132 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 132 | return Status::OK(); | 595 | 132 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 1.20M | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 1.20M | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 1.20M | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 1.20M | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 1.20M | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 1.20M | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 1.20M | _operator_profile->add_child(_common_profile.get(), true); | 539 | 1.20M | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 1.20M | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | | if constexpr (!is_fake_shared) { | 542 | | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | | .first.get() | 545 | | ->template cast<SharedStateArg>(); | 546 | | | 547 | | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | | _dependency = _shared_state->create_source_dependency( | 558 | | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | | } | 566 | | } | 567 | | | 568 | 1.20M | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 1.20M | _rows_returned_counter = | 573 | 1.20M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 1.20M | _blocks_returned_counter = | 575 | 1.20M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 1.20M | _output_block_bytes_counter = | 577 | 1.20M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 1.20M | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 1.20M | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 1.20M | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 1.20M | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 1.20M | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 1.20M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 1.20M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 1.20M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 1.20M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 1.20M | _memory_used_counter = | 588 | 1.20M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 1.20M | _common_profile->add_info_string("IsColocate", | 590 | 1.20M | std::to_string(_parent->is_colocated_operator())); | 591 | 1.20M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 1.20M | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 1.20M | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 1.20M | return Status::OK(); | 595 | 1.20M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 54.8k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 54.8k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 54.8k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 54.8k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 54.8k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 54.8k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 54.8k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 54.8k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 54.8k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 54.8k | if constexpr (!is_fake_shared) { | 542 | 54.8k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 54.8k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 2.98k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 2.98k | _dependency = _shared_state->create_source_dependency( | 558 | 2.98k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 2.98k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 2.98k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 51.8k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 51.8k | } | 566 | 54.8k | } | 567 | | | 568 | 54.8k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 54.8k | _rows_returned_counter = | 573 | 54.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 54.8k | _blocks_returned_counter = | 575 | 54.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 54.8k | _output_block_bytes_counter = | 577 | 54.8k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 54.8k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 54.8k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 54.8k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 54.8k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 54.8k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 54.8k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 54.8k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 54.8k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 54.8k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 54.8k | _memory_used_counter = | 588 | 54.8k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 54.8k | _common_profile->add_info_string("IsColocate", | 590 | 54.8k | std::to_string(_parent->is_colocated_operator())); | 591 | 54.8k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 54.8k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 54.8k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 54.8k | return Status::OK(); | 595 | 54.8k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 17 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 17 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 17 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 17 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 17 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 17 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 17 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 17 | if constexpr (!is_fake_shared) { | 542 | 17 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 17 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 17 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 17 | _dependency = _shared_state->create_source_dependency( | 558 | 17 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 17 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 17 | } | 567 | | | 568 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 17 | _rows_returned_counter = | 573 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 17 | _blocks_returned_counter = | 575 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 17 | _output_block_bytes_counter = | 577 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 17 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 17 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 17 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 17 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 17 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 17 | _memory_used_counter = | 588 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 17 | _common_profile->add_info_string("IsColocate", | 590 | 17 | std::to_string(_parent->is_colocated_operator())); | 591 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 17 | return Status::OK(); | 595 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 41.2k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 41.2k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 41.2k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 41.2k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 41.2k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 41.2k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 41.2k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 41.2k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 41.2k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 41.2k | if constexpr (!is_fake_shared) { | 542 | 41.2k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 41.2k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 41.2k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 41.2k | _dependency = _shared_state->create_source_dependency( | 558 | 41.2k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 41.2k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 41.2k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 41.2k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 13 | } | 566 | 41.2k | } | 567 | | | 568 | 41.2k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 41.2k | _rows_returned_counter = | 573 | 41.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 41.2k | _blocks_returned_counter = | 575 | 41.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 41.2k | _output_block_bytes_counter = | 577 | 41.2k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 41.2k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 41.2k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 41.2k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 41.2k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 41.2k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 41.2k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 41.2k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 41.2k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 41.2k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 41.2k | _memory_used_counter = | 588 | 41.2k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 41.2k | _common_profile->add_info_string("IsColocate", | 590 | 41.2k | std::to_string(_parent->is_colocated_operator())); | 591 | 41.2k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 41.2k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 41.2k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 41.2k | return Status::OK(); | 595 | 41.2k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 475 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 475 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 475 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 475 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 475 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 475 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 475 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 475 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 475 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 475 | if constexpr (!is_fake_shared) { | 542 | 475 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 475 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 471 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 471 | _dependency = _shared_state->create_source_dependency( | 558 | 471 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 471 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 471 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 471 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 4 | } | 566 | 475 | } | 567 | | | 568 | 475 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 475 | _rows_returned_counter = | 573 | 475 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 475 | _blocks_returned_counter = | 575 | 475 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 475 | _output_block_bytes_counter = | 577 | 475 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 475 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 475 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 475 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 475 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 475 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 475 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 475 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 475 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 475 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 475 | _memory_used_counter = | 588 | 475 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 475 | _common_profile->add_info_string("IsColocate", | 590 | 475 | std::to_string(_parent->is_colocated_operator())); | 591 | 475 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 475 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 475 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 475 | return Status::OK(); | 595 | 475 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 4.94k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 4.94k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 4.94k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 4.94k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 4.94k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 4.94k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 4.94k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 4.94k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 4.94k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 4.94k | if constexpr (!is_fake_shared) { | 542 | 4.94k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 4.94k | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 4.76k | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 4.76k | _dependency = _shared_state->create_source_dependency( | 558 | 4.76k | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 4.76k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 4.76k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 4.76k | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 179 | } | 566 | 4.94k | } | 567 | | | 568 | 4.94k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 4.94k | _rows_returned_counter = | 573 | 4.94k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 4.94k | _blocks_returned_counter = | 575 | 4.94k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 4.94k | _output_block_bytes_counter = | 577 | 4.94k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 4.94k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 4.94k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 4.94k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 4.94k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 4.94k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 4.94k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 4.94k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 4.94k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 4.94k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 4.94k | _memory_used_counter = | 588 | 4.94k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 4.94k | _common_profile->add_info_string("IsColocate", | 590 | 4.94k | std::to_string(_parent->is_colocated_operator())); | 591 | 4.94k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 4.94k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 4.94k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 4.94k | return Status::OK(); | 595 | 4.94k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 679k | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 679k | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 679k | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 679k | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 679k | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 679k | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 679k | _operator_profile->add_child(_common_profile.get(), true); | 539 | 679k | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 679k | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 679k | if constexpr (!is_fake_shared) { | 542 | 679k | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 675k | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 675k | .first.get() | 545 | 675k | ->template cast<SharedStateArg>(); | 546 | | | 547 | 675k | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 675k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 675k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 675k | } else if (info.shared_state) { | 551 | 0 | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | 0 | DCHECK(false); | 553 | 0 | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 0 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | |
| 557 | 0 | _dependency = _shared_state->create_source_dependency( | 558 | 0 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 3.48k | } else { | 562 | 3.48k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | 3.48k | DCHECK(false); | 564 | 3.48k | } | 565 | 3.48k | } | 566 | 679k | } | 567 | | | 568 | 679k | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 679k | _rows_returned_counter = | 573 | 679k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 679k | _blocks_returned_counter = | 575 | 679k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 679k | _output_block_bytes_counter = | 577 | 679k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 679k | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 679k | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 679k | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 679k | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 679k | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 679k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 679k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 679k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 679k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 679k | _memory_used_counter = | 588 | 679k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 679k | _common_profile->add_info_string("IsColocate", | 590 | 679k | std::to_string(_parent->is_colocated_operator())); | 591 | 679k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 679k | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 679k | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 679k | return Status::OK(); | 595 | 679k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_14LocalStateInfoE Line | Count | Source | 530 | 134 | Status PipelineXLocalState<SharedStateArg>::init(RuntimeState* state, LocalStateInfo& info) { | 531 | 134 | _operator_profile.reset(new RuntimeProfile(_parent->get_name() + name_suffix())); | 532 | 134 | _common_profile.reset(new RuntimeProfile(profile::COMMON_COUNTERS)); | 533 | 134 | _custom_profile.reset(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 534 | 134 | _operator_profile->set_metadata(_parent->node_id()); | 535 | | // indent is false so that source operator will have same | 536 | | // indentation_level with its parent operator. | 537 | 134 | info.parent_profile->add_child(_operator_profile.get(), /*indent=*/false); | 538 | 134 | _operator_profile->add_child(_common_profile.get(), true); | 539 | 134 | _operator_profile->add_child(_custom_profile.get(), true); | 540 | 134 | constexpr auto is_fake_shared = std::is_same_v<SharedStateArg, FakeSharedState>; | 541 | 134 | if constexpr (!is_fake_shared) { | 542 | 134 | if (info.shared_state_map.find(_parent->operator_id()) != info.shared_state_map.end()) { | 543 | 0 | _shared_state = info.shared_state_map.at(_parent->operator_id()) | 544 | 0 | .first.get() | 545 | 0 | ->template cast<SharedStateArg>(); | 546 | |
| 547 | 0 | _dependency = _shared_state->get_dep_by_channel_id(info.task_idx).front().get(); | 548 | 0 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 549 | 0 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 550 | 134 | } else if (info.shared_state) { | 551 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 552 | | DCHECK(false); | 553 | | } | 554 | | // For UnionSourceOperator without children, there is no shared state. | 555 | 134 | _shared_state = info.shared_state->template cast<SharedStateArg>(); | 556 | | | 557 | 134 | _dependency = _shared_state->create_source_dependency( | 558 | 134 | _parent->operator_id(), _parent->node_id(), _parent->get_name()); | 559 | 134 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 560 | 134 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 561 | 134 | } else { | 562 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedStateArg>) { | 563 | | DCHECK(false); | 564 | | } | 565 | 0 | } | 566 | 134 | } | 567 | | | 568 | 134 | if (must_set_shared_state() && _shared_state == nullptr) { | 569 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 570 | 0 | } | 571 | | | 572 | 134 | _rows_returned_counter = | 573 | 134 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::ROWS_PRODUCED, TUnit::UNIT, 1); | 574 | 134 | _blocks_returned_counter = | 575 | 134 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::BLOCKS_PRODUCED, TUnit::UNIT, 1); | 576 | 134 | _output_block_bytes_counter = | 577 | 134 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 578 | 134 | _max_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 579 | 134 | _common_profile, profile::MAX_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 580 | 134 | _min_output_block_bytes_counter = ADD_COUNTER_WITH_LEVEL( | 581 | 134 | _common_profile, profile::MIN_OUTPUT_BLOCK_BYTES, TUnit::BYTES, 1); | 582 | 134 | _projection_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::PROJECTION_TIME, 2); | 583 | 134 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 584 | 134 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 585 | 134 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 586 | 134 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 587 | 134 | _memory_used_counter = | 588 | 134 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 589 | 134 | _common_profile->add_info_string("IsColocate", | 590 | 134 | std::to_string(_parent->is_colocated_operator())); | 591 | 134 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 592 | 134 | _common_profile->add_info_string("FollowedByShuffledOperator", | 593 | 134 | std::to_string(_parent->followed_by_shuffled_operator())); | 594 | 134 | return Status::OK(); | 595 | 134 | } |
|
596 | | |
597 | | template <typename SharedStateArg> |
598 | 2.56M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { |
599 | 2.56M | _conjuncts.resize(_parent->_conjuncts.size()); |
600 | 2.56M | _projections.resize(_parent->_projections.size()); |
601 | 3.06M | for (size_t i = 0; i < _conjuncts.size(); i++) { |
602 | 498k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); |
603 | 498k | } |
604 | 5.39M | for (size_t i = 0; i < _projections.size(); i++) { |
605 | 2.83M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); |
606 | 2.83M | } |
607 | 2.56M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); |
608 | 2.58M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { |
609 | 23.4k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); |
610 | 146k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { |
611 | 122k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( |
612 | 122k | state, _intermediate_projections[i][j])); |
613 | 122k | } |
614 | 23.4k | } |
615 | 2.56M | return Status::OK(); |
616 | 2.56M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 65.4k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 65.4k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 65.4k | _projections.resize(_parent->_projections.size()); | 601 | 66.3k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 866 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 866 | } | 604 | 328k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 263k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 263k | } | 607 | 65.4k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 66.6k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 1.17k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 12.8k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 11.7k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 11.7k | state, _intermediate_projections[i][j])); | 613 | 11.7k | } | 614 | 1.17k | } | 615 | 65.4k | return Status::OK(); | 616 | 65.4k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 3 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 3 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 3 | _projections.resize(_parent->_projections.size()); | 601 | 3 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 3 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 3 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 3 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 3 | return Status::OK(); | 616 | 3 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 268k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 268k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 268k | _projections.resize(_parent->_projections.size()); | 601 | 268k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 269k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 355 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 355 | } | 607 | 268k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 268k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 268k | return Status::OK(); | 616 | 268k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 23 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 23 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 23 | _projections.resize(_parent->_projections.size()); | 601 | 23 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 23 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 23 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 23 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 23 | return Status::OK(); | 616 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 30.6k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 30.6k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 30.6k | _projections.resize(_parent->_projections.size()); | 601 | 30.7k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 79 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 79 | } | 604 | 256k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 226k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 226k | } | 607 | 30.6k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 30.7k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 146 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 916 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 770 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 770 | state, _intermediate_projections[i][j])); | 613 | 770 | } | 614 | 146 | } | 615 | 30.6k | return Status::OK(); | 616 | 30.6k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 9.86k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 9.86k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 9.86k | _projections.resize(_parent->_projections.size()); | 601 | 10.6k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 795 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 795 | } | 604 | 26.3k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 16.4k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 16.4k | } | 607 | 9.86k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 9.96k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 91 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 688 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 597 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 597 | state, _intermediate_projections[i][j])); | 613 | 597 | } | 614 | 91 | } | 615 | 9.86k | return Status::OK(); | 616 | 9.86k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 194k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 194k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 194k | _projections.resize(_parent->_projections.size()); | 601 | 198k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 3.93k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 3.93k | } | 604 | 466k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 272k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 272k | } | 607 | 194k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 194k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 222 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 1.61k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 1.38k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 1.38k | state, _intermediate_projections[i][j])); | 613 | 1.38k | } | 614 | 222 | } | 615 | 194k | return Status::OK(); | 616 | 194k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 490 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 490 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 490 | _projections.resize(_parent->_projections.size()); | 601 | 497 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 7 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 7 | } | 604 | 1.62k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 1.13k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 1.13k | } | 607 | 490 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 490 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 490 | return Status::OK(); | 616 | 490 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 134 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 134 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 134 | _projections.resize(_parent->_projections.size()); | 601 | 134 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 290 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 156 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 156 | } | 607 | 134 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 134 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 134 | return Status::OK(); | 616 | 134 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 1.21M | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 1.21M | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 1.21M | _projections.resize(_parent->_projections.size()); | 601 | 1.69M | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 478k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 478k | } | 604 | 3.17M | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 1.96M | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 1.96M | } | 607 | 1.21M | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 1.23M | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 21.7k | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 130k | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 108k | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 108k | state, _intermediate_projections[i][j])); | 613 | 108k | } | 614 | 21.7k | } | 615 | 1.21M | return Status::OK(); | 616 | 1.21M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 54.9k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 54.9k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 54.9k | _projections.resize(_parent->_projections.size()); | 601 | 54.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 148k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 93.3k | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 93.3k | } | 607 | 54.9k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 54.9k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 54.9k | return Status::OK(); | 616 | 54.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 17 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 17 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 17 | _projections.resize(_parent->_projections.size()); | 601 | 17 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 17 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 17 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 17 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 17 | return Status::OK(); | 616 | 17 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 41.2k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 41.2k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 41.2k | _projections.resize(_parent->_projections.size()); | 601 | 55.9k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 14.6k | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 14.6k | } | 604 | 41.2k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 41.2k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 41.2k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 41.2k | return Status::OK(); | 616 | 41.2k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 475 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 475 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 475 | _projections.resize(_parent->_projections.size()); | 601 | 475 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 475 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 475 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 475 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 475 | return Status::OK(); | 616 | 475 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 4.97k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 4.97k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 4.97k | _projections.resize(_parent->_projections.size()); | 601 | 4.97k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 4.97k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 4.97k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 4.97k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 4.97k | return Status::OK(); | 616 | 4.97k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 679k | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 679k | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 679k | _projections.resize(_parent->_projections.size()); | 601 | 679k | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 0 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 0 | } | 604 | 679k | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 0 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 0 | } | 607 | 679k | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 679k | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 0 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 0 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 0 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 0 | state, _intermediate_projections[i][j])); | 613 | 0 | } | 614 | 0 | } | 615 | 679k | return Status::OK(); | 616 | 679k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE4openEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE4openEPNS_12RuntimeStateE Line | Count | Source | 598 | 134 | Status PipelineXLocalState<SharedStateArg>::open(RuntimeState* state) { | 599 | 134 | _conjuncts.resize(_parent->_conjuncts.size()); | 600 | 134 | _projections.resize(_parent->_projections.size()); | 601 | 140 | for (size_t i = 0; i < _conjuncts.size(); i++) { | 602 | 6 | RETURN_IF_ERROR(_parent->_conjuncts[i]->clone(state, _conjuncts[i])); | 603 | 6 | } | 604 | 410 | for (size_t i = 0; i < _projections.size(); i++) { | 605 | 276 | RETURN_IF_ERROR(_parent->_projections[i]->clone(state, _projections[i])); | 606 | 276 | } | 607 | 134 | _intermediate_projections.resize(_parent->_intermediate_projections.size()); | 608 | 135 | for (int i = 0; i < _parent->_intermediate_projections.size(); i++) { | 609 | 1 | _intermediate_projections[i].resize(_parent->_intermediate_projections[i].size()); | 610 | 3 | for (int j = 0; j < _parent->_intermediate_projections[i].size(); j++) { | 611 | 2 | RETURN_IF_ERROR(_parent->_intermediate_projections[i][j]->clone( | 612 | 2 | state, _intermediate_projections[i][j])); | 613 | 2 | } | 614 | 1 | } | 615 | 134 | return Status::OK(); | 616 | 134 | } |
|
617 | | |
618 | | template <typename SharedStateArg> |
619 | 11.7k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { |
620 | 11.7k | if (_terminated) { |
621 | 0 | return Status::OK(); |
622 | 0 | } |
623 | 11.7k | _terminated = true; |
624 | 11.7k | return Status::OK(); |
625 | 11.7k | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 563 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 563 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 563 | _terminated = true; | 624 | 563 | return Status::OK(); | 625 | 563 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 122 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 122 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 122 | _terminated = true; | 624 | 122 | return Status::OK(); | 625 | 122 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 163 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 163 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 163 | _terminated = true; | 624 | 163 | return Status::OK(); | 625 | 163 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 208 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 208 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 208 | _terminated = true; | 624 | 208 | return Status::OK(); | 625 | 208 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE9terminateEPNS_12RuntimeStateE Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 9.52k | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 9.52k | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 9.52k | _terminated = true; | 624 | 9.52k | return Status::OK(); | 625 | 9.52k | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 7 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 7 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 7 | _terminated = true; | 624 | 7 | return Status::OK(); | 625 | 7 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 13 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 13 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 13 | _terminated = true; | 624 | 13 | return Status::OK(); | 625 | 13 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 161 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 161 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 161 | _terminated = true; | 624 | 161 | return Status::OK(); | 625 | 161 | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 992 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 992 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 992 | _terminated = true; | 624 | 992 | return Status::OK(); | 625 | 992 | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE9terminateEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE9terminateEPNS_12RuntimeStateE Line | Count | Source | 619 | 14 | Status PipelineXLocalState<SharedStateArg>::terminate(RuntimeState* state) { | 620 | 14 | if (_terminated) { | 621 | 0 | return Status::OK(); | 622 | 0 | } | 623 | 14 | _terminated = true; | 624 | 14 | return Status::OK(); | 625 | 14 | } |
|
626 | | |
627 | | template <typename SharedStateArg> |
628 | 2.87M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { |
629 | 2.87M | if (_closed) { |
630 | 312k | return Status::OK(); |
631 | 312k | } |
632 | 2.56M | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { |
633 | 1.35M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
634 | 1.35M | } |
635 | 2.56M | _closed = true; |
636 | 2.56M | return Status::OK(); |
637 | 2.87M | } _ZN5doris19PipelineXLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 65.4k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 65.4k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 65.4k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 65.4k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 65.4k | } | 635 | 65.4k | _closed = true; | 636 | 65.4k | return Status::OK(); | 637 | 65.4k | } |
_ZN5doris19PipelineXLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 4 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 4 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 4 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 4 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 4 | } | 635 | 4 | _closed = true; | 636 | 4 | return Status::OK(); | 637 | 4 | } |
_ZN5doris19PipelineXLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 535k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 535k | if (_closed) { | 630 | 267k | return Status::OK(); | 631 | 267k | } | 632 | 267k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 267k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 267k | } | 635 | 267k | _closed = true; | 636 | 267k | return Status::OK(); | 637 | 535k | } |
_ZN5doris19PipelineXLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 23 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 23 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 23 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 23 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 23 | } | 635 | 23 | _closed = true; | 636 | 23 | return Status::OK(); | 637 | 23 | } |
_ZN5doris19PipelineXLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 30.6k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 30.6k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 30.6k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 30.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 30.6k | } | 635 | 30.6k | _closed = true; | 636 | 30.6k | return Status::OK(); | 637 | 30.6k | } |
_ZN5doris19PipelineXLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 19.7k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 19.7k | if (_closed) { | 630 | 9.94k | return Status::OK(); | 631 | 9.94k | } | 632 | 9.84k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 9.84k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 9.84k | } | 635 | 9.84k | _closed = true; | 636 | 9.84k | return Status::OK(); | 637 | 19.7k | } |
_ZN5doris19PipelineXLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 194k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 194k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 194k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 194k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 194k | } | 635 | 194k | _closed = true; | 636 | 194k | return Status::OK(); | 637 | 194k | } |
_ZN5doris19PipelineXLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 488 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 488 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 488 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 488 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 488 | } | 635 | 488 | _closed = true; | 636 | 488 | return Status::OK(); | 637 | 488 | } |
_ZN5doris19PipelineXLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 131 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 131 | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 131 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 131 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 131 | } | 635 | 131 | _closed = true; | 636 | 131 | return Status::OK(); | 637 | 131 | } |
_ZN5doris19PipelineXLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 1.24M | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 1.24M | if (_closed) { | 630 | 29.3k | return Status::OK(); | 631 | 29.3k | } | 632 | | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | | } | 635 | 1.21M | _closed = true; | 636 | 1.21M | return Status::OK(); | 637 | 1.24M | } |
_ZN5doris19PipelineXLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 54.9k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 54.9k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 54.9k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 54.9k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 54.9k | } | 635 | 54.9k | _closed = true; | 636 | 54.9k | return Status::OK(); | 637 | 54.9k | } |
_ZN5doris19PipelineXLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 28 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 28 | if (_closed) { | 630 | 14 | return Status::OK(); | 631 | 14 | } | 632 | 14 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 14 | } | 635 | 14 | _closed = true; | 636 | 14 | return Status::OK(); | 637 | 28 | } |
_ZN5doris19PipelineXLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 41.1k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 41.1k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 41.1k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 41.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 41.1k | } | 635 | 41.1k | _closed = true; | 636 | 41.1k | return Status::OK(); | 637 | 41.1k | } |
_ZN5doris19PipelineXLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 742 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 742 | if (_closed) { | 630 | 371 | return Status::OK(); | 631 | 371 | } | 632 | 371 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 371 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 371 | } | 635 | 371 | _closed = true; | 636 | 371 | return Status::OK(); | 637 | 742 | } |
_ZN5doris19PipelineXLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 9.96k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 9.96k | if (_closed) { | 630 | 5.00k | return Status::OK(); | 631 | 5.00k | } | 632 | 4.95k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 4.95k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 4.95k | } | 635 | 4.95k | _closed = true; | 636 | 4.95k | return Status::OK(); | 637 | 9.96k | } |
_ZN5doris19PipelineXLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 681k | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 681k | if (_closed) { | 630 | 0 | return Status::OK(); | 631 | 0 | } | 632 | 681k | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 681k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 681k | } | 635 | 681k | _closed = true; | 636 | 681k | return Status::OK(); | 637 | 681k | } |
Unexecuted instantiation: _ZN5doris19PipelineXLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateE _ZN5doris19PipelineXLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateE Line | Count | Source | 628 | 253 | Status PipelineXLocalState<SharedStateArg>::close(RuntimeState* state) { | 629 | 253 | if (_closed) { | 630 | 126 | return Status::OK(); | 631 | 126 | } | 632 | 127 | if constexpr (!std::is_same_v<SharedStateArg, FakeSharedState>) { | 633 | 127 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 634 | 127 | } | 635 | 127 | _closed = true; | 636 | 127 | return Status::OK(); | 637 | 253 | } |
|
638 | | |
639 | | template <typename SharedState> |
640 | 2.09M | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
641 | | // create profile |
642 | 2.09M | _operator_profile = |
643 | 2.09M | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); |
644 | 2.09M | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); |
645 | 2.09M | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); |
646 | | |
647 | | // indentation is true |
648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. |
649 | | // So we should set the indentation to true. |
650 | 2.09M | info.parent_profile->add_child(_operator_profile, /*indent=*/true); |
651 | 2.09M | _operator_profile->add_child(_common_profile, true); |
652 | 2.09M | _operator_profile->add_child(_custom_profile, true); |
653 | | |
654 | 2.09M | _operator_profile->set_metadata(_parent->node_id()); |
655 | 2.09M | _wait_for_finish_dependency_timer = |
656 | 2.09M | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); |
657 | 2.09M | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; |
658 | 2.09M | if constexpr (!is_fake_shared) { |
659 | 1.36M | if (info.shared_state_map.find(_parent->dests_id().front()) != |
660 | 1.36M | info.shared_state_map.end()) { |
661 | 257k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
662 | 240k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); |
663 | 240k | } |
664 | 257k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) |
665 | 257k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> |
666 | 257k | ? 0 |
667 | 257k | : info.task_idx] |
668 | 257k | .get(); |
669 | 257k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); |
670 | 1.10M | } else { |
671 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { |
672 | 18.4E | DCHECK(false); |
673 | 18.4E | } |
674 | 1.10M | _shared_state = info.shared_state->template cast<SharedState>(); |
675 | 1.10M | _dependency = _shared_state->create_sink_dependency( |
676 | 1.10M | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); |
677 | 1.10M | } |
678 | 1.36M | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
679 | 1.36M | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); |
680 | 1.36M | } |
681 | | |
682 | 2.09M | if (must_set_shared_state() && _shared_state == nullptr) { |
683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); |
684 | 0 | } |
685 | | |
686 | 2.09M | _rows_input_counter = |
687 | 2.09M | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); |
688 | 2.09M | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); |
689 | 2.09M | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); |
690 | 2.09M | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); |
691 | 2.09M | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); |
692 | 2.09M | _memory_used_counter = |
693 | 2.09M | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); |
694 | 2.09M | _common_profile->add_info_string("IsColocate", |
695 | 2.09M | std::to_string(_parent->is_colocated_operator())); |
696 | 2.09M | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); |
697 | 2.09M | _common_profile->add_info_string("FollowedByShuffledOperator", |
698 | 2.09M | std::to_string(_parent->followed_by_shuffled_operator())); |
699 | 2.09M | return Status::OK(); |
700 | 2.09M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 113k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 113k | _operator_profile = | 643 | 113k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 113k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 113k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 113k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 113k | _operator_profile->add_child(_common_profile, true); | 652 | 113k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 113k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 113k | _wait_for_finish_dependency_timer = | 656 | 113k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 113k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 113k | if constexpr (!is_fake_shared) { | 659 | 113k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 113k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 16.2k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 16.2k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 16.2k | ? 0 | 667 | 16.2k | : info.task_idx] | 668 | 16.2k | .get(); | 669 | 16.2k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 97.2k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 97.2k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 97.2k | _dependency = _shared_state->create_sink_dependency( | 676 | 97.2k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 97.2k | } | 678 | 113k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 113k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 113k | } | 681 | | | 682 | 113k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 113k | _rows_input_counter = | 687 | 113k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 113k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 113k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 113k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 113k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 113k | _memory_used_counter = | 693 | 113k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 113k | _common_profile->add_info_string("IsColocate", | 695 | 113k | std::to_string(_parent->is_colocated_operator())); | 696 | 113k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 113k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 113k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 113k | return Status::OK(); | 700 | 113k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 2 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 2 | _operator_profile = | 643 | 2 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 2 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 2 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 2 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 2 | _operator_profile->add_child(_common_profile, true); | 652 | 2 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 2 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 2 | _wait_for_finish_dependency_timer = | 656 | 2 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 2 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 2 | if constexpr (!is_fake_shared) { | 659 | 2 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 2 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 2 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 2 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 2 | _dependency = _shared_state->create_sink_dependency( | 676 | 2 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 2 | } | 678 | 2 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 2 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 2 | } | 681 | | | 682 | 2 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 2 | _rows_input_counter = | 687 | 2 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 2 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 2 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 2 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 2 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 2 | _memory_used_counter = | 693 | 2 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 2 | _common_profile->add_info_string("IsColocate", | 695 | 2 | std::to_string(_parent->is_colocated_operator())); | 696 | 2 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 2 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 2 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 2 | return Status::OK(); | 700 | 2 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 268k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 268k | _operator_profile = | 643 | 268k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 268k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 268k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 268k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 268k | _operator_profile->add_child(_common_profile, true); | 652 | 268k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 268k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 268k | _wait_for_finish_dependency_timer = | 656 | 268k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 268k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 268k | if constexpr (!is_fake_shared) { | 659 | 268k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 268k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 268k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 268k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 268k | _dependency = _shared_state->create_sink_dependency( | 676 | 268k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 268k | } | 678 | 268k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 268k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 268k | } | 681 | | | 682 | 268k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 268k | _rows_input_counter = | 687 | 268k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 268k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 268k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 268k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 268k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 268k | _memory_used_counter = | 693 | 268k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 268k | _common_profile->add_info_string("IsColocate", | 695 | 268k | std::to_string(_parent->is_colocated_operator())); | 696 | 268k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 268k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 268k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 268k | return Status::OK(); | 700 | 268k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 29 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 29 | _operator_profile = | 643 | 29 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 29 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 29 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 29 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 29 | _operator_profile->add_child(_common_profile, true); | 652 | 29 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 29 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 29 | _wait_for_finish_dependency_timer = | 656 | 29 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 29 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 29 | if constexpr (!is_fake_shared) { | 659 | 29 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 29 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 29 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 29 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 29 | _dependency = _shared_state->create_sink_dependency( | 676 | 29 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 29 | } | 678 | 29 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 29 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 29 | } | 681 | | | 682 | 29 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 29 | _rows_input_counter = | 687 | 29 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 29 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 29 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 29 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 29 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 29 | _memory_used_counter = | 693 | 29 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 29 | _common_profile->add_info_string("IsColocate", | 695 | 29 | std::to_string(_parent->is_colocated_operator())); | 696 | 29 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 29 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 29 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 29 | return Status::OK(); | 700 | 29 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 30.5k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 30.5k | _operator_profile = | 643 | 30.5k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 30.5k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 30.5k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 30.5k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 30.5k | _operator_profile->add_child(_common_profile, true); | 652 | 30.5k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 30.5k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 30.5k | _wait_for_finish_dependency_timer = | 656 | 30.5k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 30.5k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 30.5k | if constexpr (!is_fake_shared) { | 659 | 30.5k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 30.5k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 30.5k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 30.5k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 30.5k | _dependency = _shared_state->create_sink_dependency( | 676 | 30.5k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 30.5k | } | 678 | 30.5k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 30.5k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 30.5k | } | 681 | | | 682 | 30.5k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 30.5k | _rows_input_counter = | 687 | 30.5k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 30.5k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 30.5k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 30.5k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 30.5k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 30.5k | _memory_used_counter = | 693 | 30.5k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 30.5k | _common_profile->add_info_string("IsColocate", | 695 | 30.5k | std::to_string(_parent->is_colocated_operator())); | 696 | 30.5k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 30.5k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 30.5k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 30.5k | return Status::OK(); | 700 | 30.5k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 9.85k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 9.85k | _operator_profile = | 643 | 9.85k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 9.85k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 9.85k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 9.85k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 9.85k | _operator_profile->add_child(_common_profile, true); | 652 | 9.85k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 9.85k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 9.85k | _wait_for_finish_dependency_timer = | 656 | 9.85k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 9.85k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 9.85k | if constexpr (!is_fake_shared) { | 659 | 9.85k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 9.85k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 9.85k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 9.85k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 9.85k | _dependency = _shared_state->create_sink_dependency( | 676 | 9.85k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 9.85k | } | 678 | 9.85k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 9.85k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 9.85k | } | 681 | | | 682 | 9.85k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 9.85k | _rows_input_counter = | 687 | 9.85k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 9.85k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 9.85k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 9.85k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 9.85k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 9.85k | _memory_used_counter = | 693 | 9.85k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 9.85k | _common_profile->add_info_string("IsColocate", | 695 | 9.85k | std::to_string(_parent->is_colocated_operator())); | 696 | 9.85k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 9.85k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 9.85k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 9.85k | return Status::OK(); | 700 | 9.85k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 194k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 194k | _operator_profile = | 643 | 194k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 194k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 194k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 194k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 194k | _operator_profile->add_child(_common_profile, true); | 652 | 194k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 194k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 194k | _wait_for_finish_dependency_timer = | 656 | 194k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 194k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 194k | if constexpr (!is_fake_shared) { | 659 | 194k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 194k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 194k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 194k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 194k | _dependency = _shared_state->create_sink_dependency( | 676 | 194k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 194k | } | 678 | 194k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 194k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 194k | } | 681 | | | 682 | 194k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 194k | _rows_input_counter = | 687 | 194k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 194k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 194k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 194k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 194k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 194k | _memory_used_counter = | 693 | 194k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 194k | _common_profile->add_info_string("IsColocate", | 695 | 194k | std::to_string(_parent->is_colocated_operator())); | 696 | 194k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 194k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 194k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 194k | return Status::OK(); | 700 | 194k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 429 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 429 | _operator_profile = | 643 | 429 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 429 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 429 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 429 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 429 | _operator_profile->add_child(_common_profile, true); | 652 | 429 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 429 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 429 | _wait_for_finish_dependency_timer = | 656 | 429 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 429 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 429 | if constexpr (!is_fake_shared) { | 659 | 429 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 429 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 429 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 429 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 429 | ? 0 | 667 | 429 | : info.task_idx] | 668 | 429 | .get(); | 669 | 429 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 429 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 0 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 0 | _dependency = _shared_state->create_sink_dependency( | 676 | 0 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 0 | } | 678 | 429 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 429 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 429 | } | 681 | | | 682 | 429 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 429 | _rows_input_counter = | 687 | 429 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 429 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 429 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 429 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 429 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 429 | _memory_used_counter = | 693 | 429 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 429 | _common_profile->add_info_string("IsColocate", | 695 | 429 | std::to_string(_parent->is_colocated_operator())); | 696 | 429 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 429 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 429 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 429 | return Status::OK(); | 700 | 429 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 142 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 142 | _operator_profile = | 643 | 142 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 142 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 142 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 142 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 142 | _operator_profile->add_child(_common_profile, true); | 652 | 142 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 142 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 142 | _wait_for_finish_dependency_timer = | 656 | 142 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 142 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 142 | if constexpr (!is_fake_shared) { | 659 | 142 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 142 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 142 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 142 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 142 | _dependency = _shared_state->create_sink_dependency( | 676 | 142 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 142 | } | 678 | 142 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 142 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 142 | } | 681 | | | 682 | 142 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 142 | _rows_input_counter = | 687 | 142 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 142 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 142 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 142 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 142 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 142 | _memory_used_counter = | 693 | 142 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 142 | _common_profile->add_info_string("IsColocate", | 695 | 142 | std::to_string(_parent->is_colocated_operator())); | 696 | 142 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 142 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 142 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 142 | return Status::OK(); | 700 | 142 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 729k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 729k | _operator_profile = | 643 | 729k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 729k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 729k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 729k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 729k | _operator_profile->add_child(_common_profile, true); | 652 | 729k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 729k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 729k | _wait_for_finish_dependency_timer = | 656 | 729k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 729k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | | if constexpr (!is_fake_shared) { | 659 | | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | | ? 0 | 667 | | : info.task_idx] | 668 | | .get(); | 669 | | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | | _dependency = _shared_state->create_sink_dependency( | 676 | | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | | } | 678 | | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | | } | 681 | | | 682 | 729k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 729k | _rows_input_counter = | 687 | 729k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 729k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 729k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 729k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 729k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 729k | _memory_used_counter = | 693 | 729k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 729k | _common_profile->add_info_string("IsColocate", | 695 | 729k | std::to_string(_parent->is_colocated_operator())); | 696 | 729k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 729k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 729k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 729k | return Status::OK(); | 700 | 729k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 6.17k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 6.17k | _operator_profile = | 643 | 6.17k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 6.17k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 6.17k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 6.17k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 6.17k | _operator_profile->add_child(_common_profile, true); | 652 | 6.17k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 6.17k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 6.17k | _wait_for_finish_dependency_timer = | 656 | 6.17k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 6.17k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 6.17k | if constexpr (!is_fake_shared) { | 659 | 6.17k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 6.17k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 6.17k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 6.17k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 6.17k | _dependency = _shared_state->create_sink_dependency( | 676 | 6.17k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 6.17k | } | 678 | 6.17k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 6.17k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 6.17k | } | 681 | | | 682 | 6.17k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 6.17k | _rows_input_counter = | 687 | 6.17k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 6.17k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 6.17k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 6.17k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 6.17k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 6.17k | _memory_used_counter = | 693 | 6.17k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 6.17k | _common_profile->add_info_string("IsColocate", | 695 | 6.17k | std::to_string(_parent->is_colocated_operator())); | 696 | 6.17k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 6.17k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 6.17k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 6.17k | return Status::OK(); | 700 | 6.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 474 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 474 | _operator_profile = | 643 | 474 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 474 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 474 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 474 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 474 | _operator_profile->add_child(_common_profile, true); | 652 | 474 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 474 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 474 | _wait_for_finish_dependency_timer = | 656 | 474 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 474 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 474 | if constexpr (!is_fake_shared) { | 659 | 474 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 474 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 474 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 474 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 474 | _dependency = _shared_state->create_sink_dependency( | 676 | 474 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 474 | } | 678 | 474 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 474 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 474 | } | 681 | | | 682 | 474 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 474 | _rows_input_counter = | 687 | 474 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 474 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 474 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 474 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 474 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 474 | _memory_used_counter = | 693 | 474 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 474 | _common_profile->add_info_string("IsColocate", | 695 | 474 | std::to_string(_parent->is_colocated_operator())); | 696 | 474 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 474 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 474 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 474 | return Status::OK(); | 700 | 474 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 14.0k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 14.0k | _operator_profile = | 643 | 14.0k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 14.0k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 14.0k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 14.0k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 14.0k | _operator_profile->add_child(_common_profile, true); | 652 | 14.0k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 14.0k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 14.0k | _wait_for_finish_dependency_timer = | 656 | 14.0k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 14.0k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 14.0k | if constexpr (!is_fake_shared) { | 659 | 14.0k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 14.0k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 14.0k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 14.0k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 14.0k | _dependency = _shared_state->create_sink_dependency( | 676 | 14.0k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 14.0k | } | 678 | 14.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 14.0k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 14.0k | } | 681 | | | 682 | 14.0k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 14.0k | _rows_input_counter = | 687 | 14.0k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 14.0k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 14.0k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 14.0k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 14.0k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 14.0k | _memory_used_counter = | 693 | 14.0k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 14.0k | _common_profile->add_info_string("IsColocate", | 695 | 14.0k | std::to_string(_parent->is_colocated_operator())); | 696 | 14.0k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 14.0k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 14.0k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 14.0k | return Status::OK(); | 700 | 14.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 12.1k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 12.1k | _operator_profile = | 643 | 12.1k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 12.1k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 12.1k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 12.1k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 12.1k | _operator_profile->add_child(_common_profile, true); | 652 | 12.1k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 12.1k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 12.1k | _wait_for_finish_dependency_timer = | 656 | 12.1k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 12.1k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 12.1k | if constexpr (!is_fake_shared) { | 659 | 12.1k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 12.1k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 12.1k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 12.1k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 12.1k | _dependency = _shared_state->create_sink_dependency( | 676 | 12.1k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 12.1k | } | 678 | 12.1k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 12.1k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 12.1k | } | 681 | | | 682 | 12.1k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 12.1k | _rows_input_counter = | 687 | 12.1k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 12.1k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 12.1k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 12.1k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 12.1k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 12.1k | _memory_used_counter = | 693 | 12.1k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 12.1k | _common_profile->add_info_string("IsColocate", | 695 | 12.1k | std::to_string(_parent->is_colocated_operator())); | 696 | 12.1k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 12.1k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 12.1k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 12.1k | return Status::OK(); | 700 | 12.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 240k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 240k | _operator_profile = | 643 | 240k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 240k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 240k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 240k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 240k | _operator_profile->add_child(_common_profile, true); | 652 | 240k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 240k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 240k | _wait_for_finish_dependency_timer = | 656 | 240k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 240k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 240k | if constexpr (!is_fake_shared) { | 659 | 240k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 240k | info.shared_state_map.end()) { | 661 | 240k | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | 240k | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | 240k | } | 664 | 240k | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 240k | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 240k | ? 0 | 667 | 240k | : info.task_idx] | 668 | 240k | .get(); | 669 | 240k | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 18.4E | } else { | 671 | 18.4E | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | 18.4E | DCHECK(false); | 673 | 18.4E | } | 674 | 18.4E | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 18.4E | _dependency = _shared_state->create_sink_dependency( | 676 | 18.4E | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 18.4E | } | 678 | 240k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 240k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 240k | } | 681 | | | 682 | 240k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 240k | _rows_input_counter = | 687 | 240k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 240k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 240k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 240k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 240k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 240k | _memory_used_counter = | 693 | 240k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 240k | _common_profile->add_info_string("IsColocate", | 695 | 240k | std::to_string(_parent->is_colocated_operator())); | 696 | 240k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 240k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 240k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 240k | return Status::OK(); | 700 | 240k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 471k | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 471k | _operator_profile = | 643 | 471k | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 471k | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 471k | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 471k | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 471k | _operator_profile->add_child(_common_profile, true); | 652 | 471k | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 471k | _operator_profile->set_metadata(_parent->node_id()); | 655 | 471k | _wait_for_finish_dependency_timer = | 656 | 471k | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 471k | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 471k | if constexpr (!is_fake_shared) { | 659 | 471k | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 471k | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 471k | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 471k | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 471k | _dependency = _shared_state->create_sink_dependency( | 676 | 471k | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 471k | } | 678 | 471k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 471k | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 471k | } | 681 | | | 682 | 471k | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 471k | _rows_input_counter = | 687 | 471k | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 471k | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 471k | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 471k | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 471k | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 471k | _memory_used_counter = | 693 | 471k | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 471k | _common_profile->add_info_string("IsColocate", | 695 | 471k | std::to_string(_parent->is_colocated_operator())); | 696 | 471k | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 471k | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 471k | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 471k | return Status::OK(); | 700 | 471k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 17 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 17 | _operator_profile = | 643 | 17 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 17 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 17 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 17 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 17 | _operator_profile->add_child(_common_profile, true); | 652 | 17 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 17 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 17 | _wait_for_finish_dependency_timer = | 656 | 17 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 17 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 17 | if constexpr (!is_fake_shared) { | 659 | 17 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 17 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 17 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 17 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 17 | _dependency = _shared_state->create_sink_dependency( | 676 | 17 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 17 | } | 678 | 17 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 17 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 17 | } | 681 | | | 682 | 17 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 17 | _rows_input_counter = | 687 | 17 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 17 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 17 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 17 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 17 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 17 | _memory_used_counter = | 693 | 17 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 17 | _common_profile->add_info_string("IsColocate", | 695 | 17 | std::to_string(_parent->is_colocated_operator())); | 696 | 17 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 17 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 17 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 17 | return Status::OK(); | 700 | 17 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 640 | 268 | Status PipelineXSinkLocalState<SharedState>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 641 | | // create profile | 642 | 268 | _operator_profile = | 643 | 268 | state->obj_pool()->add(new RuntimeProfile(_parent->get_name() + name_suffix())); | 644 | 268 | _common_profile = state->obj_pool()->add(new RuntimeProfile(profile::COMMON_COUNTERS)); | 645 | 268 | _custom_profile = state->obj_pool()->add(new RuntimeProfile(profile::CUSTOM_COUNTERS)); | 646 | | | 647 | | // indentation is true | 648 | | // The parent profile of sink operator is usually a RuntimeProfile called PipelineTask. | 649 | | // So we should set the indentation to true. | 650 | 268 | info.parent_profile->add_child(_operator_profile, /*indent=*/true); | 651 | 268 | _operator_profile->add_child(_common_profile, true); | 652 | 268 | _operator_profile->add_child(_custom_profile, true); | 653 | | | 654 | 268 | _operator_profile->set_metadata(_parent->node_id()); | 655 | 268 | _wait_for_finish_dependency_timer = | 656 | 268 | ADD_TIMER(_common_profile, profile::PENDING_FINISH_DEPENDENCY); | 657 | 268 | constexpr auto is_fake_shared = std::is_same_v<SharedState, FakeSharedState>; | 658 | 268 | if constexpr (!is_fake_shared) { | 659 | 268 | if (info.shared_state_map.find(_parent->dests_id().front()) != | 660 | 268 | info.shared_state_map.end()) { | 661 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 662 | | DCHECK(info.shared_state_map.at(_parent->dests_id().front()).second.size() == 1); | 663 | | } | 664 | 0 | _dependency = info.shared_state_map.at(_parent->dests_id().front()) | 665 | 0 | .second[std::is_same_v<LocalExchangeSharedState, SharedState> | 666 | 0 | ? 0 | 667 | 0 | : info.task_idx] | 668 | 0 | .get(); | 669 | 0 | _shared_state = _dependency->shared_state()->template cast<SharedState>(); | 670 | 268 | } else { | 671 | | if constexpr (std::is_same_v<LocalExchangeSharedState, SharedState>) { | 672 | | DCHECK(false); | 673 | | } | 674 | 268 | _shared_state = info.shared_state->template cast<SharedState>(); | 675 | 268 | _dependency = _shared_state->create_sink_dependency( | 676 | 268 | _parent->dests_id().front(), _parent->node_id(), _parent->get_name()); | 677 | 268 | } | 678 | 268 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 679 | 268 | _common_profile, "WaitForDependency[" + _dependency->name() + "]Time", 1); | 680 | 268 | } | 681 | | | 682 | 268 | if (must_set_shared_state() && _shared_state == nullptr) { | 683 | 0 | return Status::InternalError("must set shared state, in {}", _parent->get_name()); | 684 | 0 | } | 685 | | | 686 | 268 | _rows_input_counter = | 687 | 268 | ADD_COUNTER_WITH_LEVEL(_common_profile, profile::INPUT_ROWS, TUnit::UNIT, 1); | 688 | 268 | _init_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::INIT_TIME, 2); | 689 | 268 | _open_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::OPEN_TIME, 2); | 690 | 268 | _close_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::CLOSE_TIME, 2); | 691 | 268 | _exec_timer = ADD_TIMER_WITH_LEVEL(_common_profile, profile::EXEC_TIME, 1); | 692 | 268 | _memory_used_counter = | 693 | 268 | _common_profile->AddHighWaterMarkCounter(profile::MEMORY_USAGE, TUnit::BYTES, "", 1); | 694 | 268 | _common_profile->add_info_string("IsColocate", | 695 | 268 | std::to_string(_parent->is_colocated_operator())); | 696 | 268 | _common_profile->add_info_string("IsShuffled", std::to_string(_parent->is_shuffled_operator())); | 697 | 268 | _common_profile->add_info_string("FollowedByShuffledOperator", | 698 | 268 | std::to_string(_parent->followed_by_shuffled_operator())); | 699 | 268 | return Status::OK(); | 700 | 268 | } |
|
701 | | |
702 | | template <typename SharedState> |
703 | 2.09M | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { |
704 | 2.09M | if (_closed) { |
705 | 2 | return Status::OK(); |
706 | 2 | } |
707 | 2.09M | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { |
708 | 1.36M | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); |
709 | 1.36M | } |
710 | 2.09M | _closed = true; |
711 | 2.09M | return Status::OK(); |
712 | 2.09M | } _ZN5doris23PipelineXSinkLocalStateINS_19HashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 113k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 113k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 113k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 113k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 113k | } | 710 | 113k | _closed = true; | 711 | 113k | return Status::OK(); | 712 | 113k | } |
_ZN5doris23PipelineXSinkLocalStateINS_30PartitionedHashJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 1 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 1 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 1 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 1 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 1 | } | 710 | 1 | _closed = true; | 711 | 1 | return Status::OK(); | 712 | 1 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15SortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 268k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 268k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 268k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 268k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 268k | } | 710 | 268k | _closed = true; | 711 | 268k | return Status::OK(); | 712 | 268k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20SpillSortSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 21 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 21 | if (_closed) { | 705 | 2 | return Status::OK(); | 706 | 2 | } | 707 | 19 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 19 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 19 | } | 710 | 19 | _closed = true; | 711 | 19 | return Status::OK(); | 712 | 21 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25NestedLoopJoinSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 30.6k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 30.6k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 30.6k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 30.6k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 30.6k | } | 710 | 30.6k | _closed = true; | 711 | 30.6k | return Status::OK(); | 712 | 30.6k | } |
_ZN5doris23PipelineXSinkLocalStateINS_19AnalyticSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 9.83k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 9.83k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 9.83k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 9.83k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 9.83k | } | 710 | 9.83k | _closed = true; | 711 | 9.83k | return Status::OK(); | 712 | 9.83k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14AggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 193k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 193k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 193k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 193k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 193k | } | 710 | 193k | _closed = true; | 711 | 193k | return Status::OK(); | 712 | 193k | } |
_ZN5doris23PipelineXSinkLocalStateINS_22BucketedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 429 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 429 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 429 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 429 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 429 | } | 710 | 429 | _closed = true; | 711 | 429 | return Status::OK(); | 712 | 429 | } |
_ZN5doris23PipelineXSinkLocalStateINS_25PartitionedAggSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 131 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 131 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 131 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 131 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 131 | } | 710 | 131 | _closed = true; | 711 | 131 | return Status::OK(); | 712 | 131 | } |
_ZN5doris23PipelineXSinkLocalStateINS_15FakeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 728k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 728k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | | } | 710 | 728k | _closed = true; | 711 | 728k | return Status::OK(); | 712 | 728k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16UnionSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 6.17k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 6.17k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 6.17k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 6.17k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 6.17k | } | 710 | 6.17k | _closed = true; | 711 | 6.17k | return Status::OK(); | 712 | 6.17k | } |
_ZN5doris23PipelineXSinkLocalStateINS_28PartitionSortNodeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 371 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 371 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 371 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 371 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 371 | } | 710 | 371 | _closed = true; | 711 | 371 | return Status::OK(); | 712 | 371 | } |
_ZN5doris23PipelineXSinkLocalStateINS_20MultiCastSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 14.0k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 14.0k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 14.0k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 14.0k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 14.0k | } | 710 | 14.0k | _closed = true; | 711 | 14.0k | return Status::OK(); | 712 | 14.0k | } |
_ZN5doris23PipelineXSinkLocalStateINS_14SetSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 12.1k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 12.1k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 12.1k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 12.1k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 12.1k | } | 710 | 12.1k | _closed = true; | 711 | 12.1k | return Status::OK(); | 712 | 12.1k | } |
_ZN5doris23PipelineXSinkLocalStateINS_24LocalExchangeSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 241k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 241k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 241k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 241k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 241k | } | 710 | 241k | _closed = true; | 711 | 241k | return Status::OK(); | 712 | 241k | } |
_ZN5doris23PipelineXSinkLocalStateINS_16BasicSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 473k | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 473k | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 473k | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 473k | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 473k | } | 710 | 473k | _closed = true; | 711 | 473k | return Status::OK(); | 712 | 473k | } |
_ZN5doris23PipelineXSinkLocalStateINS_20DataQueueSharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 14 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 14 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 14 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 14 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 14 | } | 710 | 14 | _closed = true; | 711 | 14 | return Status::OK(); | 712 | 14 | } |
_ZN5doris23PipelineXSinkLocalStateINS_17RecCTESharedStateEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 703 | 268 | Status PipelineXSinkLocalState<SharedState>::close(RuntimeState* state, Status exec_status) { | 704 | 268 | if (_closed) { | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 268 | if constexpr (!std::is_same_v<SharedState, FakeSharedState>) { | 708 | 268 | COUNTER_SET(_wait_for_dependency_timer, _dependency->watcher_elapse_time()); | 709 | 268 | } | 710 | 268 | _closed = true; | 711 | 268 | return Status::OK(); | 712 | 268 | } |
|
713 | | |
714 | | template <typename LocalStateType> |
715 | 87.6k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
716 | 87.6k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); |
717 | 87.6k | return pull(state, block, eos); |
718 | 87.6k | } _ZN5doris18StreamingOperatorXINS_23AssertNumRowsLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 715 | 432 | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 716 | 432 | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 717 | 432 | return pull(state, block, eos); | 718 | 432 | } |
_ZN5doris18StreamingOperatorXINS_16SelectLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 715 | 87.2k | Status StreamingOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 716 | 87.2k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects(state, block, eos)); | 717 | 87.2k | return pull(state, block, eos); | 718 | 87.2k | } |
|
719 | | |
720 | | template <typename LocalStateType> |
721 | 756k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { |
722 | 756k | auto& local_state = get_local_state(state); |
723 | 756k | if (need_more_input_data(state)) { |
724 | 728k | local_state._child_block->clear_column_data( |
725 | 728k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); |
726 | 728k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( |
727 | 728k | state, local_state._child_block.get(), &local_state._child_eos)); |
728 | 728k | *eos = local_state._child_eos; |
729 | 728k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { |
730 | 108k | return Status::OK(); |
731 | 108k | } |
732 | 620k | { |
733 | 620k | SCOPED_TIMER(local_state.exec_time_counter()); |
734 | 620k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); |
735 | 620k | } |
736 | 620k | } |
737 | | |
738 | 648k | if (!need_more_input_data(state)) { |
739 | 586k | SCOPED_TIMER(local_state.exec_time_counter()); |
740 | 586k | bool new_eos = false; |
741 | 586k | RETURN_IF_ERROR(pull(state, block, &new_eos)); |
742 | 586k | if (new_eos) { |
743 | 500k | *eos = true; |
744 | 500k | } else if (!need_more_input_data(state)) { |
745 | 23.0k | *eos = false; |
746 | 23.0k | } |
747 | 586k | } |
748 | 648k | return Status::OK(); |
749 | 648k | } _ZN5doris17StatefulOperatorXINS_23HashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 137k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 137k | auto& local_state = get_local_state(state); | 723 | 137k | if (need_more_input_data(state)) { | 724 | 122k | local_state._child_block->clear_column_data( | 725 | 122k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 122k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 122k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 122k | *eos = local_state._child_eos; | 729 | 122k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 43.9k | return Status::OK(); | 731 | 43.9k | } | 732 | 78.3k | { | 733 | 78.3k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 78.3k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 78.3k | } | 736 | 78.3k | } | 737 | | | 738 | 93.5k | if (!need_more_input_data(state)) { | 739 | 93.5k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 93.5k | bool new_eos = false; | 741 | 93.5k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 93.5k | if (new_eos) { | 743 | 41.2k | *eos = true; | 744 | 52.3k | } else if (!need_more_input_data(state)) { | 745 | 9.12k | *eos = false; | 746 | 9.12k | } | 747 | 93.5k | } | 748 | 93.5k | return Status::OK(); | 749 | 93.5k | } |
Unexecuted instantiation: _ZN5doris17StatefulOperatorXINS_34PartitionedHashJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb _ZN5doris17StatefulOperatorXINS_16RepeatLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 3.32k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 3.32k | auto& local_state = get_local_state(state); | 723 | 3.32k | if (need_more_input_data(state)) { | 724 | 2.08k | local_state._child_block->clear_column_data( | 725 | 2.08k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 2.08k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 2.08k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 2.08k | *eos = local_state._child_eos; | 729 | 2.08k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 630 | return Status::OK(); | 731 | 630 | } | 732 | 1.45k | { | 733 | 1.45k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 1.45k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 1.45k | } | 736 | 1.45k | } | 737 | | | 738 | 2.69k | if (!need_more_input_data(state)) { | 739 | 2.69k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 2.69k | bool new_eos = false; | 741 | 2.69k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 2.69k | if (new_eos) { | 743 | 1.07k | *eos = true; | 744 | 1.62k | } else if (!need_more_input_data(state)) { | 745 | 1.24k | *eos = false; | 746 | 1.24k | } | 747 | 2.69k | } | 748 | 2.69k | return Status::OK(); | 749 | 2.69k | } |
_ZN5doris17StatefulOperatorXINS_25MaterializationLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 4.71k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 4.71k | auto& local_state = get_local_state(state); | 723 | 4.71k | if (need_more_input_data(state)) { | 724 | 4.71k | local_state._child_block->clear_column_data( | 725 | 4.71k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 4.71k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 4.71k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 4.71k | *eos = local_state._child_eos; | 729 | 4.71k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 1.57k | return Status::OK(); | 731 | 1.57k | } | 732 | 3.13k | { | 733 | 3.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 3.13k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 3.13k | } | 736 | 3.13k | } | 737 | | | 738 | 3.13k | if (!need_more_input_data(state)) { | 739 | 3.13k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 3.13k | bool new_eos = false; | 741 | 3.13k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 3.13k | if (new_eos) { | 743 | 1.59k | *eos = true; | 744 | 1.59k | } else if (!need_more_input_data(state)) { | 745 | 0 | *eos = false; | 746 | 0 | } | 747 | 3.13k | } | 748 | 3.13k | return Status::OK(); | 749 | 3.13k | } |
_ZN5doris17StatefulOperatorXINS_22StreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 46.8k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 46.8k | auto& local_state = get_local_state(state); | 723 | 46.8k | if (need_more_input_data(state)) { | 724 | 46.8k | local_state._child_block->clear_column_data( | 725 | 46.8k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 46.8k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 46.8k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 46.8k | *eos = local_state._child_eos; | 729 | 46.8k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 4.04k | return Status::OK(); | 731 | 4.04k | } | 732 | 42.7k | { | 733 | 42.7k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 42.7k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 42.7k | } | 736 | 42.7k | } | 737 | | | 738 | 42.8k | if (!need_more_input_data(state)) { | 739 | 14.8k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 14.8k | bool new_eos = false; | 741 | 14.8k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 14.8k | if (new_eos) { | 743 | 14.6k | *eos = true; | 744 | 14.6k | } else if (!need_more_input_data(state)) { | 745 | 68 | *eos = false; | 746 | 68 | } | 747 | 14.8k | } | 748 | 42.8k | return Status::OK(); | 749 | 42.8k | } |
_ZN5doris17StatefulOperatorXINS_30DistinctStreamingAggLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 485k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 485k | auto& local_state = get_local_state(state); | 723 | 486k | if (need_more_input_data(state)) { | 724 | 486k | local_state._child_block->clear_column_data( | 725 | 486k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 486k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 486k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 486k | *eos = local_state._child_eos; | 729 | 486k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 44.2k | return Status::OK(); | 731 | 44.2k | } | 732 | 442k | { | 733 | 442k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 442k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 442k | } | 736 | 442k | } | 737 | | | 738 | 441k | if (!need_more_input_data(state)) { | 739 | 407k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 407k | bool new_eos = false; | 741 | 407k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 407k | if (new_eos) { | 743 | 406k | *eos = true; | 744 | 406k | } else if (!need_more_input_data(state)) { | 745 | 0 | *eos = false; | 746 | 0 | } | 747 | 407k | } | 748 | 441k | return Status::OK(); | 749 | 441k | } |
_ZN5doris17StatefulOperatorXINS_29NestedLoopJoinProbeLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 71.0k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 71.0k | auto& local_state = get_local_state(state); | 723 | 71.0k | if (need_more_input_data(state)) { | 724 | 58.8k | local_state._child_block->clear_column_data( | 725 | 58.8k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 58.8k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 58.8k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 58.8k | *eos = local_state._child_eos; | 729 | 58.8k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 13.1k | return Status::OK(); | 731 | 13.1k | } | 732 | 45.6k | { | 733 | 45.6k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 45.6k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 45.6k | } | 736 | 45.6k | } | 737 | | | 738 | 57.8k | if (!need_more_input_data(state)) { | 739 | 57.4k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 57.4k | bool new_eos = false; | 741 | 57.4k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 57.4k | if (new_eos) { | 743 | 30.6k | *eos = true; | 744 | 30.6k | } else if (!need_more_input_data(state)) { | 745 | 12.2k | *eos = false; | 746 | 12.2k | } | 747 | 57.4k | } | 748 | 57.8k | return Status::OK(); | 749 | 57.8k | } |
_ZN5doris17StatefulOperatorXINS_23TableFunctionLocalStateEE9get_blockEPNS_12RuntimeStateEPNS_5BlockEPb Line | Count | Source | 721 | 7.54k | Status StatefulOperatorX<LocalStateType>::get_block(RuntimeState* state, Block* block, bool* eos) { | 722 | 7.54k | auto& local_state = get_local_state(state); | 723 | 7.54k | if (need_more_input_data(state)) { | 724 | 7.19k | local_state._child_block->clear_column_data( | 725 | 7.19k | OperatorX<LocalStateType>::_child->row_desc().num_materialized_slots()); | 726 | 7.19k | RETURN_IF_ERROR(OperatorX<LocalStateType>::_child->get_block_after_projects( | 727 | 7.19k | state, local_state._child_block.get(), &local_state._child_eos)); | 728 | 7.19k | *eos = local_state._child_eos; | 729 | 7.19k | if (local_state._child_block->rows() == 0 && !local_state._child_eos) { | 730 | 562 | return Status::OK(); | 731 | 562 | } | 732 | 6.62k | { | 733 | 6.62k | SCOPED_TIMER(local_state.exec_time_counter()); | 734 | 6.62k | RETURN_IF_ERROR(push(state, local_state._child_block.get(), local_state._child_eos)); | 735 | 6.62k | } | 736 | 6.62k | } | 737 | | | 738 | 6.98k | if (!need_more_input_data(state)) { | 739 | 6.98k | SCOPED_TIMER(local_state.exec_time_counter()); | 740 | 6.98k | bool new_eos = false; | 741 | 6.98k | RETURN_IF_ERROR(pull(state, block, &new_eos)); | 742 | 6.98k | if (new_eos) { | 743 | 4.93k | *eos = true; | 744 | 4.93k | } else if (!need_more_input_data(state)) { | 745 | 366 | *eos = false; | 746 | 366 | } | 747 | 6.98k | } | 748 | 6.98k | return Status::OK(); | 749 | 6.98k | } |
|
750 | | |
751 | | template <typename Writer, typename Parent> |
752 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
753 | 62.9k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { |
754 | 62.9k | RETURN_IF_ERROR(Base::init(state, info)); |
755 | 62.9k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), |
756 | 62.9k | "AsyncWriterDependency", true); |
757 | 62.9k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, |
758 | 62.9k | _finish_dependency)); |
759 | | |
760 | 62.9k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( |
761 | 62.9k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); |
762 | 62.9k | return Status::OK(); |
763 | 62.9k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 512 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 512 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 512 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 512 | "AsyncWriterDependency", true); | 757 | 512 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 512 | _finish_dependency)); | 759 | | | 760 | 512 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 512 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 512 | return Status::OK(); | 763 | 512 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 88 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 88 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 88 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 88 | "AsyncWriterDependency", true); | 757 | 88 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 88 | _finish_dependency)); | 759 | | | 760 | 88 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 88 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 88 | return Status::OK(); | 763 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 44.0k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 44.0k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 44.0k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 44.0k | "AsyncWriterDependency", true); | 757 | 44.0k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 44.0k | _finish_dependency)); | 759 | | | 760 | 44.0k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 44.0k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 44.0k | return Status::OK(); | 763 | 44.0k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 8.83k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 8.83k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 8.83k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 8.83k | "AsyncWriterDependency", true); | 757 | 8.83k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 8.83k | _finish_dependency)); | 759 | | | 760 | 8.83k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 8.83k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 8.83k | return Status::OK(); | 763 | 8.83k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 5.14k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 5.14k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 5.14k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 5.14k | "AsyncWriterDependency", true); | 757 | 5.14k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 5.14k | _finish_dependency)); | 759 | | | 760 | 5.14k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 5.14k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 5.14k | return Status::OK(); | 763 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 3.38k | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 3.38k | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 3.38k | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 3.38k | "AsyncWriterDependency", true); | 757 | 3.38k | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 3.38k | _finish_dependency)); | 759 | | | 760 | 3.38k | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 3.38k | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 3.38k | return Status::OK(); | 763 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 160 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 160 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 160 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 160 | "AsyncWriterDependency", true); | 757 | 160 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 160 | _finish_dependency)); | 759 | | | 760 | 160 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 160 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 160 | return Status::OK(); | 763 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 640 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 640 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 640 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 640 | "AsyncWriterDependency", true); | 757 | 640 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 640 | _finish_dependency)); | 759 | | | 760 | 640 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 640 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 640 | return Status::OK(); | 763 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4initEPNS_12RuntimeStateERNS_18LocalSinkStateInfoE Line | Count | Source | 753 | 156 | Status AsyncWriterSink<Writer, Parent>::init(RuntimeState* state, LocalSinkStateInfo& info) { | 754 | 156 | RETURN_IF_ERROR(Base::init(state, info)); | 755 | 156 | _async_writer_dependency = Dependency::create_shared(_parent->operator_id(), _parent->node_id(), | 756 | 156 | "AsyncWriterDependency", true); | 757 | 156 | _writer.reset(new Writer(info.tsink, _output_vexpr_ctxs, _async_writer_dependency, | 758 | 156 | _finish_dependency)); | 759 | | | 760 | 156 | _wait_for_dependency_timer = ADD_TIMER_WITH_LEVEL( | 761 | 156 | common_profile(), "WaitForDependency[" + _async_writer_dependency->name() + "]Time", 1); | 762 | 156 | return Status::OK(); | 763 | 156 | } |
|
764 | | |
765 | | template <typename Writer, typename Parent> |
766 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
767 | 63.1k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { |
768 | 63.1k | RETURN_IF_ERROR(Base::open(state)); |
769 | 63.1k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); |
770 | 578k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { |
771 | 515k | RETURN_IF_ERROR( |
772 | 515k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); |
773 | 515k | } |
774 | 63.1k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); |
775 | 63.1k | return Status::OK(); |
776 | 63.1k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 512 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 512 | RETURN_IF_ERROR(Base::open(state)); | 769 | 512 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 2.76k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 2.25k | RETURN_IF_ERROR( | 772 | 2.25k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 2.25k | } | 774 | 512 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 512 | return Status::OK(); | 776 | 512 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 88 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 88 | RETURN_IF_ERROR(Base::open(state)); | 769 | 88 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 412 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 324 | RETURN_IF_ERROR( | 772 | 324 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 324 | } | 774 | 88 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 88 | return Status::OK(); | 776 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 44.2k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 44.2k | RETURN_IF_ERROR(Base::open(state)); | 769 | 44.2k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 339k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 295k | RETURN_IF_ERROR( | 772 | 295k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 295k | } | 774 | 44.2k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 44.2k | return Status::OK(); | 776 | 44.2k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 8.79k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 8.79k | RETURN_IF_ERROR(Base::open(state)); | 769 | 8.79k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 52.6k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 43.8k | RETURN_IF_ERROR( | 772 | 43.8k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 43.8k | } | 774 | 8.79k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 8.79k | return Status::OK(); | 776 | 8.79k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 5.14k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 5.14k | RETURN_IF_ERROR(Base::open(state)); | 769 | 5.14k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 134k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 129k | RETURN_IF_ERROR( | 772 | 129k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 129k | } | 774 | 5.14k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 5.14k | return Status::OK(); | 776 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 3.38k | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 3.38k | RETURN_IF_ERROR(Base::open(state)); | 769 | 3.38k | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 42.4k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 39.0k | RETURN_IF_ERROR( | 772 | 39.0k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 39.0k | } | 774 | 3.38k | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 3.38k | return Status::OK(); | 776 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 160 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 160 | RETURN_IF_ERROR(Base::open(state)); | 769 | 160 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 480 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 320 | RETURN_IF_ERROR( | 772 | 320 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 320 | } | 774 | 160 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 160 | return Status::OK(); | 776 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 638 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 638 | RETURN_IF_ERROR(Base::open(state)); | 769 | 638 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 4.39k | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 3.75k | RETURN_IF_ERROR( | 772 | 3.75k | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 3.75k | } | 774 | 638 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 638 | return Status::OK(); | 776 | 638 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4openEPNS_12RuntimeStateE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4openEPNS_12RuntimeStateE Line | Count | Source | 767 | 156 | Status AsyncWriterSink<Writer, Parent>::open(RuntimeState* state) { | 768 | 156 | RETURN_IF_ERROR(Base::open(state)); | 769 | 156 | _output_vexpr_ctxs.resize(_parent->cast<Parent>()._output_vexpr_ctxs.size()); | 770 | 786 | for (size_t i = 0; i < _output_vexpr_ctxs.size(); i++) { | 771 | 630 | RETURN_IF_ERROR( | 772 | 630 | _parent->cast<Parent>()._output_vexpr_ctxs[i]->clone(state, _output_vexpr_ctxs[i])); | 773 | 630 | } | 774 | 156 | RETURN_IF_ERROR(_writer->start_writer(state, operator_profile())); | 775 | 156 | return Status::OK(); | 776 | 156 | } |
|
777 | | |
778 | | template <typename Writer, typename Parent> |
779 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
780 | 85.7k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { |
781 | 85.7k | return _writer->sink(block, eos); |
782 | 85.7k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 2.40k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 2.40k | return _writer->sink(block, eos); | 782 | 2.40k | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 112 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 112 | return _writer->sink(block, eos); | 782 | 112 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 58.9k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 58.9k | return _writer->sink(block, eos); | 782 | 58.9k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 10.1k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 10.1k | return _writer->sink(block, eos); | 782 | 10.1k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 7.49k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 7.49k | return _writer->sink(block, eos); | 782 | 7.49k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 5.32k | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 5.32k | return _writer->sink(block, eos); | 782 | 5.32k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 180 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 180 | return _writer->sink(block, eos); | 782 | 180 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 804 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 804 | return _writer->sink(block, eos); | 782 | 804 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE4sinkEPNS_12RuntimeStateEPNS_5BlockEb Line | Count | Source | 780 | 310 | Status AsyncWriterSink<Writer, Parent>::sink(RuntimeState* state, Block* block, bool eos) { | 781 | 310 | return _writer->sink(block, eos); | 782 | 310 | } |
|
783 | | |
784 | | template <typename Writer, typename Parent> |
785 | | requires(std::is_base_of_v<AsyncResultWriter, Writer>) |
786 | 63.2k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { |
787 | 63.2k | if (_closed) { |
788 | 0 | return Status::OK(); |
789 | 0 | } |
790 | 63.2k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); |
791 | 63.2k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); |
792 | | // if the init failed, the _writer may be nullptr. so here need check |
793 | 63.2k | if (_writer) { |
794 | 63.2k | Status st = _writer->get_writer_status(); |
795 | 63.2k | if (exec_status.ok()) { |
796 | 63.0k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() |
797 | 63.0k | : Status::Cancelled("force close")); |
798 | 63.0k | } else { |
799 | 209 | _writer->force_close(exec_status); |
800 | 209 | } |
801 | | // If there is an error in process_block thread, then we should get the writer |
802 | | // status before call force_close. For example, the thread may failed in commit |
803 | | // transaction. |
804 | 63.2k | RETURN_IF_ERROR(st); |
805 | 63.2k | } |
806 | 63.1k | return Base::close(state, exec_status); |
807 | 63.2k | } _ZN5doris15AsyncWriterSinkINS_17VFileResultWriterENS_23ResultFileSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 500 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 500 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 500 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 500 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 500 | if (_writer) { | 794 | 500 | Status st = _writer->get_writer_status(); | 795 | 500 | if (exec_status.ok()) { | 796 | 500 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 500 | : Status::Cancelled("force close")); | 798 | 500 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 500 | RETURN_IF_ERROR(st); | 805 | 500 | } | 806 | 500 | return Base::close(state, exec_status); | 807 | 500 | } |
_ZN5doris15AsyncWriterSinkINS_16VJdbcTableWriterENS_22JdbcTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 88 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 88 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 88 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 88 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 88 | if (_writer) { | 794 | 88 | Status st = _writer->get_writer_status(); | 795 | 88 | if (exec_status.ok()) { | 796 | 88 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 88 | : Status::Cancelled("force close")); | 798 | 88 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 88 | RETURN_IF_ERROR(st); | 805 | 88 | } | 806 | 80 | return Base::close(state, exec_status); | 807 | 88 | } |
_ZN5doris15AsyncWriterSinkINS_13VTabletWriterENS_22OlapTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 44.3k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 44.3k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 44.3k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 44.3k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 44.3k | if (_writer) { | 794 | 44.3k | Status st = _writer->get_writer_status(); | 795 | 44.3k | if (exec_status.ok()) { | 796 | 44.2k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 44.2k | : Status::Cancelled("force close")); | 798 | 44.2k | } else { | 799 | 91 | _writer->force_close(exec_status); | 800 | 91 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 44.3k | RETURN_IF_ERROR(st); | 805 | 44.3k | } | 806 | 44.2k | return Base::close(state, exec_status); | 807 | 44.3k | } |
_ZN5doris15AsyncWriterSinkINS_15VTabletWriterV2ENS_24OlapTableSinkV2OperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 8.83k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 8.83k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 8.83k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 8.83k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 8.83k | if (_writer) { | 794 | 8.83k | Status st = _writer->get_writer_status(); | 795 | 8.83k | if (exec_status.ok()) { | 796 | 8.71k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 8.71k | : Status::Cancelled("force close")); | 798 | 8.71k | } else { | 799 | 116 | _writer->force_close(exec_status); | 800 | 116 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 8.83k | RETURN_IF_ERROR(st); | 805 | 8.83k | } | 806 | 8.83k | return Base::close(state, exec_status); | 807 | 8.83k | } |
_ZN5doris15AsyncWriterSinkINS_16VHiveTableWriterENS_22HiveTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 5.14k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 5.14k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 5.14k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 5.14k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 5.15k | if (_writer) { | 794 | 5.15k | Status st = _writer->get_writer_status(); | 795 | 5.15k | if (exec_status.ok()) { | 796 | 5.14k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 5.14k | : Status::Cancelled("force close")); | 798 | 5.14k | } else { | 799 | 2 | _writer->force_close(exec_status); | 800 | 2 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 5.15k | RETURN_IF_ERROR(st); | 805 | 5.15k | } | 806 | 5.14k | return Base::close(state, exec_status); | 807 | 5.14k | } |
_ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_25IcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 3.38k | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 3.38k | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 3.38k | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 3.38k | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 3.38k | if (_writer) { | 794 | 3.38k | Status st = _writer->get_writer_status(); | 795 | 3.38k | if (exec_status.ok()) { | 796 | 3.38k | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 3.38k | : Status::Cancelled("force close")); | 798 | 3.38k | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 3.38k | RETURN_IF_ERROR(st); | 805 | 3.38k | } | 806 | 3.38k | return Base::close(state, exec_status); | 807 | 3.38k | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_19VIcebergTableWriterENS_30SpillIcebergTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_18VIcebergDeleteSinkENS_26IcebergDeleteSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 160 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 160 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 160 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 160 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 160 | if (_writer) { | 794 | 160 | Status st = _writer->get_writer_status(); | 795 | 160 | if (exec_status.ok()) { | 796 | 160 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 160 | : Status::Cancelled("force close")); | 798 | 160 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 160 | RETURN_IF_ERROR(st); | 805 | 160 | } | 806 | 160 | return Base::close(state, exec_status); | 807 | 160 | } |
_ZN5doris15AsyncWriterSinkINS_17VIcebergMergeSinkENS_25IcebergMergeSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 640 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 640 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 640 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 640 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 640 | if (_writer) { | 794 | 640 | Status st = _writer->get_writer_status(); | 795 | 640 | if (exec_status.ok()) { | 796 | 640 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 640 | : Status::Cancelled("force close")); | 798 | 640 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 640 | RETURN_IF_ERROR(st); | 805 | 640 | } | 806 | 640 | return Base::close(state, exec_status); | 807 | 640 | } |
Unexecuted instantiation: _ZN5doris15AsyncWriterSinkINS_14VMCTableWriterENS_20MCTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE _ZN5doris15AsyncWriterSinkINS_15VTVFTableWriterENS_21TVFTableSinkOperatorXEE5closeEPNS_12RuntimeStateENS_6StatusE Line | Count | Source | 786 | 156 | Status AsyncWriterSink<Writer, Parent>::close(RuntimeState* state, Status exec_status) { | 787 | 156 | if (_closed) { | 788 | 0 | return Status::OK(); | 789 | 0 | } | 790 | 156 | COUNTER_SET(_wait_for_dependency_timer, _async_writer_dependency->watcher_elapse_time()); | 791 | 156 | COUNTER_SET(_wait_for_finish_dependency_timer, _finish_dependency->watcher_elapse_time()); | 792 | | // if the init failed, the _writer may be nullptr. so here need check | 793 | 156 | if (_writer) { | 794 | 156 | Status st = _writer->get_writer_status(); | 795 | 156 | if (exec_status.ok()) { | 796 | 156 | _writer->force_close(state->is_cancelled() ? state->cancel_reason() | 797 | 156 | : Status::Cancelled("force close")); | 798 | 156 | } else { | 799 | 0 | _writer->force_close(exec_status); | 800 | 0 | } | 801 | | // If there is an error in process_block thread, then we should get the writer | 802 | | // status before call force_close. For example, the thread may failed in commit | 803 | | // transaction. | 804 | 156 | RETURN_IF_ERROR(st); | 805 | 156 | } | 806 | 156 | return Base::close(state, exec_status); | 807 | 156 | } |
|
808 | | |
809 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class DataSinkOperatorX<LOCAL_STATE>; |
810 | | DECLARE_OPERATOR(HashJoinBuildSinkLocalState) |
811 | | DECLARE_OPERATOR(ResultSinkLocalState) |
812 | | DECLARE_OPERATOR(JdbcTableSinkLocalState) |
813 | | DECLARE_OPERATOR(MemoryScratchSinkLocalState) |
814 | | DECLARE_OPERATOR(ResultFileSinkLocalState) |
815 | | DECLARE_OPERATOR(OlapTableSinkLocalState) |
816 | | DECLARE_OPERATOR(OlapTableSinkV2LocalState) |
817 | | DECLARE_OPERATOR(HiveTableSinkLocalState) |
818 | | DECLARE_OPERATOR(TVFTableSinkLocalState) |
819 | | DECLARE_OPERATOR(IcebergTableSinkLocalState) |
820 | | DECLARE_OPERATOR(SpillIcebergTableSinkLocalState) |
821 | | DECLARE_OPERATOR(IcebergDeleteSinkLocalState) |
822 | | DECLARE_OPERATOR(IcebergMergeSinkLocalState) |
823 | | DECLARE_OPERATOR(MCTableSinkLocalState) |
824 | | DECLARE_OPERATOR(AnalyticSinkLocalState) |
825 | | DECLARE_OPERATOR(BlackholeSinkLocalState) |
826 | | DECLARE_OPERATOR(SortSinkLocalState) |
827 | | DECLARE_OPERATOR(SpillSortSinkLocalState) |
828 | | DECLARE_OPERATOR(LocalExchangeSinkLocalState) |
829 | | DECLARE_OPERATOR(AggSinkLocalState) |
830 | | DECLARE_OPERATOR(BucketedAggSinkLocalState) |
831 | | DECLARE_OPERATOR(PartitionedAggSinkLocalState) |
832 | | DECLARE_OPERATOR(ExchangeSinkLocalState) |
833 | | DECLARE_OPERATOR(NestedLoopJoinBuildSinkLocalState) |
834 | | DECLARE_OPERATOR(UnionSinkLocalState) |
835 | | DECLARE_OPERATOR(MultiCastDataStreamSinkLocalState) |
836 | | DECLARE_OPERATOR(PartitionSortSinkLocalState) |
837 | | DECLARE_OPERATOR(SetProbeSinkLocalState<true>) |
838 | | DECLARE_OPERATOR(SetProbeSinkLocalState<false>) |
839 | | DECLARE_OPERATOR(SetSinkLocalState<true>) |
840 | | DECLARE_OPERATOR(SetSinkLocalState<false>) |
841 | | DECLARE_OPERATOR(PartitionedHashJoinSinkLocalState) |
842 | | DECLARE_OPERATOR(GroupCommitBlockSinkLocalState) |
843 | | DECLARE_OPERATOR(CacheSinkLocalState) |
844 | | DECLARE_OPERATOR(DictSinkLocalState) |
845 | | DECLARE_OPERATOR(RecCTESinkLocalState) |
846 | | DECLARE_OPERATOR(RecCTEAnchorSinkLocalState) |
847 | | |
848 | | #undef DECLARE_OPERATOR |
849 | | |
850 | | #define DECLARE_OPERATOR(LOCAL_STATE) template class OperatorX<LOCAL_STATE>; |
851 | | DECLARE_OPERATOR(HashJoinProbeLocalState) |
852 | | DECLARE_OPERATOR(OlapScanLocalState) |
853 | | DECLARE_OPERATOR(GroupCommitLocalState) |
854 | | DECLARE_OPERATOR(JDBCScanLocalState) |
855 | | DECLARE_OPERATOR(FileScanLocalState) |
856 | | DECLARE_OPERATOR(AnalyticLocalState) |
857 | | DECLARE_OPERATOR(SortLocalState) |
858 | | DECLARE_OPERATOR(SpillSortLocalState) |
859 | | DECLARE_OPERATOR(LocalMergeSortLocalState) |
860 | | DECLARE_OPERATOR(AggLocalState) |
861 | | DECLARE_OPERATOR(BucketedAggLocalState) |
862 | | DECLARE_OPERATOR(PartitionedAggLocalState) |
863 | | DECLARE_OPERATOR(TableFunctionLocalState) |
864 | | DECLARE_OPERATOR(ExchangeLocalState) |
865 | | DECLARE_OPERATOR(RepeatLocalState) |
866 | | DECLARE_OPERATOR(NestedLoopJoinProbeLocalState) |
867 | | DECLARE_OPERATOR(AssertNumRowsLocalState) |
868 | | DECLARE_OPERATOR(EmptySetLocalState) |
869 | | DECLARE_OPERATOR(UnionSourceLocalState) |
870 | | DECLARE_OPERATOR(MultiCastDataStreamSourceLocalState) |
871 | | DECLARE_OPERATOR(PartitionSortSourceLocalState) |
872 | | DECLARE_OPERATOR(SetSourceLocalState<true>) |
873 | | DECLARE_OPERATOR(SetSourceLocalState<false>) |
874 | | DECLARE_OPERATOR(DataGenLocalState) |
875 | | DECLARE_OPERATOR(SchemaScanLocalState) |
876 | | DECLARE_OPERATOR(MetaScanLocalState) |
877 | | DECLARE_OPERATOR(LocalExchangeSourceLocalState) |
878 | | DECLARE_OPERATOR(PartitionedHashJoinProbeLocalState) |
879 | | DECLARE_OPERATOR(CacheSourceLocalState) |
880 | | DECLARE_OPERATOR(RecCTESourceLocalState) |
881 | | DECLARE_OPERATOR(RecCTEScanLocalState) |
882 | | |
883 | | #ifdef BE_TEST |
884 | | DECLARE_OPERATOR(MockLocalState) |
885 | | DECLARE_OPERATOR(MockScanLocalState) |
886 | | #endif |
887 | | #undef DECLARE_OPERATOR |
888 | | |
889 | | template class StreamingOperatorX<AssertNumRowsLocalState>; |
890 | | template class StreamingOperatorX<SelectLocalState>; |
891 | | |
892 | | template class StatefulOperatorX<HashJoinProbeLocalState>; |
893 | | template class StatefulOperatorX<PartitionedHashJoinProbeLocalState>; |
894 | | template class StatefulOperatorX<RepeatLocalState>; |
895 | | template class StatefulOperatorX<MaterializationLocalState>; |
896 | | template class StatefulOperatorX<StreamingAggLocalState>; |
897 | | template class StatefulOperatorX<DistinctStreamingAggLocalState>; |
898 | | template class StatefulOperatorX<NestedLoopJoinProbeLocalState>; |
899 | | template class StatefulOperatorX<TableFunctionLocalState>; |
900 | | |
901 | | template class PipelineXSinkLocalState<HashJoinSharedState>; |
902 | | template class PipelineXSinkLocalState<PartitionedHashJoinSharedState>; |
903 | | template class PipelineXSinkLocalState<SortSharedState>; |
904 | | template class PipelineXSinkLocalState<SpillSortSharedState>; |
905 | | template class PipelineXSinkLocalState<NestedLoopJoinSharedState>; |
906 | | template class PipelineXSinkLocalState<AnalyticSharedState>; |
907 | | template class PipelineXSinkLocalState<AggSharedState>; |
908 | | template class PipelineXSinkLocalState<BucketedAggSharedState>; |
909 | | template class PipelineXSinkLocalState<PartitionedAggSharedState>; |
910 | | template class PipelineXSinkLocalState<FakeSharedState>; |
911 | | template class PipelineXSinkLocalState<UnionSharedState>; |
912 | | template class PipelineXSinkLocalState<PartitionSortNodeSharedState>; |
913 | | template class PipelineXSinkLocalState<MultiCastSharedState>; |
914 | | template class PipelineXSinkLocalState<SetSharedState>; |
915 | | template class PipelineXSinkLocalState<LocalExchangeSharedState>; |
916 | | template class PipelineXSinkLocalState<BasicSharedState>; |
917 | | template class PipelineXSinkLocalState<DataQueueSharedState>; |
918 | | template class PipelineXSinkLocalState<RecCTESharedState>; |
919 | | |
920 | | template class PipelineXLocalState<HashJoinSharedState>; |
921 | | template class PipelineXLocalState<PartitionedHashJoinSharedState>; |
922 | | template class PipelineXLocalState<SortSharedState>; |
923 | | template class PipelineXLocalState<SpillSortSharedState>; |
924 | | template class PipelineXLocalState<NestedLoopJoinSharedState>; |
925 | | template class PipelineXLocalState<AnalyticSharedState>; |
926 | | template class PipelineXLocalState<AggSharedState>; |
927 | | template class PipelineXLocalState<BucketedAggSharedState>; |
928 | | template class PipelineXLocalState<PartitionedAggSharedState>; |
929 | | template class PipelineXLocalState<FakeSharedState>; |
930 | | template class PipelineXLocalState<UnionSharedState>; |
931 | | template class PipelineXLocalState<DataQueueSharedState>; |
932 | | template class PipelineXLocalState<MultiCastSharedState>; |
933 | | template class PipelineXLocalState<PartitionSortNodeSharedState>; |
934 | | template class PipelineXLocalState<SetSharedState>; |
935 | | template class PipelineXLocalState<LocalExchangeSharedState>; |
936 | | template class PipelineXLocalState<BasicSharedState>; |
937 | | template class PipelineXLocalState<RecCTESharedState>; |
938 | | |
939 | | template class AsyncWriterSink<doris::VFileResultWriter, ResultFileSinkOperatorX>; |
940 | | template class AsyncWriterSink<doris::VJdbcTableWriter, JdbcTableSinkOperatorX>; |
941 | | template class AsyncWriterSink<doris::VTabletWriter, OlapTableSinkOperatorX>; |
942 | | template class AsyncWriterSink<doris::VTabletWriterV2, OlapTableSinkV2OperatorX>; |
943 | | template class AsyncWriterSink<doris::VHiveTableWriter, HiveTableSinkOperatorX>; |
944 | | template class AsyncWriterSink<doris::VIcebergTableWriter, IcebergTableSinkOperatorX>; |
945 | | template class AsyncWriterSink<doris::VIcebergTableWriter, SpillIcebergTableSinkOperatorX>; |
946 | | template class AsyncWriterSink<doris::VIcebergDeleteSink, IcebergDeleteSinkOperatorX>; |
947 | | template class AsyncWriterSink<doris::VIcebergMergeSink, IcebergMergeSinkOperatorX>; |
948 | | template class AsyncWriterSink<doris::VMCTableWriter, MCTableSinkOperatorX>; |
949 | | template class AsyncWriterSink<doris::VTVFTableWriter, TVFTableSinkOperatorX>; |
950 | | |
951 | | #ifdef BE_TEST |
952 | | template class OperatorX<DummyOperatorLocalState>; |
953 | | template class DataSinkOperatorX<DummySinkLocalState>; |
954 | | #endif |
955 | | |
956 | | } // namespace doris |